// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static org.apache.poi.ss.usermodel.Cell getCellForCoordinate(Coordinate coordinate, Workbook workbook) throws IOException {
//     org.apache.poi.ss.usermodel.Row row = getRowForCoordinate(coordinate, workbook);
//     return row.getCell(coordinate.getColumn().value());
// }
// 
// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static Workbook getWorkbook(String file) throws IOException {
//     InputStream stream = WorkbookResource.class.getResourceAsStream(file);
//     return new PoiWorkbookReader().read(stream);
// }
// 
// Path: src/main/java/bad/robot/excel/sheet/Coordinate.java
// public static Coordinate coordinate(ExcelColumnIndex column, Integer row) {
//     return new Coordinate(ColumnIndex.column(column), RowIndex.row(row), sheet(1));
// }


import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
import bad.robot.excel.cell.*;
import org.apache.poi.ss.usermodel.Workbook;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static bad.robot.excel.WorkbookResource.getCellForCoordinate;
import static bad.robot.excel.WorkbookResource.getWorkbook;
import static bad.robot.excel.column.ExcelColumnIndex.B;
import static bad.robot.excel.column.ExcelColumnIndex.C;
import static bad.robot.excel.matchers.CellType.adaptPoi;
import static bad.robot.excel.sheet.Coordinate.coordinate;
import static org.hamcrest.MatcherAssert.assertThat;
/*
 * Copyright (c) 2012-2013, bad robot (london) ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package bad.robot.excel.matchers;




public class CellTypeTest {

    private Workbook workbook;

    @Before
    public void loadWorkbook() throws IOException {
        workbook = getWorkbook("cellTypes.xls");
    }

// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static org.apache.poi.ss.usermodel.Cell getCellForCoordinate(Coordinate coordinate, Workbook workbook) throws IOException {
//     org.apache.poi.ss.usermodel.Row row = getRowForCoordinate(coordinate, workbook);
//     return row.getCell(coordinate.getColumn().value());
// }
// 
// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static Workbook getWorkbook(String file) throws IOException {
//     InputStream stream = WorkbookResource.class.getResourceAsStream(file);
//     return new PoiWorkbookReader().read(stream);
// }
// 
// Path: src/main/java/bad/robot/excel/sheet/Coordinate.java
// public static Coordinate coordinate(ExcelColumnIndex column, Integer row) {
//     return new Coordinate(ColumnIndex.column(column), RowIndex.row(row), sheet(1));
// }


// Path: src/test/java/bad/robot/excel/matchers/CellTypeTest.java
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
import bad.robot.excel.cell.*;
import org.apache.poi.ss.usermodel.Workbook;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static bad.robot.excel.WorkbookResource.getCellForCoordinate;
import static bad.robot.excel.WorkbookResource.getWorkbook;
import static bad.robot.excel.column.ExcelColumnIndex.B;
import static bad.robot.excel.column.ExcelColumnIndex.C;
import static bad.robot.excel.matchers.CellType.adaptPoi;
import static bad.robot.excel.sheet.Coordinate.coordinate;
import static org.hamcrest.MatcherAssert.assertThat;

/*
 * Copyright (c) 2012-2013, bad robot (london) ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package bad.robot.excel.matchers;




public class CellTypeTest {

    private Workbook workbook;

    @Before
    public void loadWorkbook() throws IOException {
        workbook = getWorkbook("cellTypes.xls");
    }

    @Test