// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static org.apache.poi.ss.usermodel.Row firstRowOf(String file) throws IOException {
//     return firstSheetOf(file).getRow(0);
// }
// 
// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static Sheet firstSheetOf(String file) throws IOException {
//     return getWorkbook(file).getSheetAt(0);
// }
// 
// Path: src/main/java/bad/robot/excel/matchers/RowInSheetMatcher.java
// public static RowInSheetMatcher hasSameRow(Row expected) {
//     return new RowInSheetMatcher(expected);
// }


import org.apache.poi.ss.usermodel.Sheet;
import org.hamcrest.StringDescription;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static bad.robot.excel.WorkbookResource.firstRowOf;
import static bad.robot.excel.WorkbookResource.firstSheetOf;
import static bad.robot.excel.matchers.RowInSheetMatcher.hasSameRow;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
/*
 * 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 RowInSheetMatcherTest {

    private final StringDescription description = new StringDescription();

    private Sheet sheetWithThreeCells;
    private Sheet sheetWithThreeCellsAlternativeValues;
    private Sheet sheetWithTwoCells;

    @Before
    public void loadWorkbooks() throws IOException {
        sheetWithThreeCells = firstSheetOf("rowWithThreeCells.xls");
        sheetWithThreeCellsAlternativeValues = firstSheetOf("rowWithThreeCellsAlternativeValues.xls");
        sheetWithTwoCells = firstSheetOf("rowWithTwoCells.xls");
    }

// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static org.apache.poi.ss.usermodel.Row firstRowOf(String file) throws IOException {
//     return firstSheetOf(file).getRow(0);
// }
// 
// Path: src/test/java/bad/robot/excel/WorkbookResource.java
// public static Sheet firstSheetOf(String file) throws IOException {
//     return getWorkbook(file).getSheetAt(0);
// }
// 
// Path: src/main/java/bad/robot/excel/matchers/RowInSheetMatcher.java
// public static RowInSheetMatcher hasSameRow(Row expected) {
//     return new RowInSheetMatcher(expected);
// }


// Path: src/test/java/bad/robot/excel/matchers/RowInSheetMatcherTest.java
import org.apache.poi.ss.usermodel.Sheet;
import org.hamcrest.StringDescription;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static bad.robot.excel.WorkbookResource.firstRowOf;
import static bad.robot.excel.WorkbookResource.firstSheetOf;
import static bad.robot.excel.matchers.RowInSheetMatcher.hasSameRow;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;

/*
 * 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 RowInSheetMatcherTest {

    private final StringDescription description = new StringDescription();

    private Sheet sheetWithThreeCells;
    private Sheet sheetWithThreeCellsAlternativeValues;
    private Sheet sheetWithTwoCells;

    @Before
    public void loadWorkbooks() throws IOException {
        sheetWithThreeCells = firstSheetOf("rowWithThreeCells.xls");
        sheetWithThreeCellsAlternativeValues = firstSheetOf("rowWithThreeCellsAlternativeValues.xls");
        sheetWithTwoCells = firstSheetOf("rowWithTwoCells.xls");
    }

    @Test