use of eu.ggnet.dwoss.misc.ee.StockTakingOperation.ReaderResult in project dwoss by gg-net.
the class StockTakingOperationTest method testXlsToList.
@Test
public void testXlsToList() {
FileJacket fj = new FileJacket("in", ".xls", new File("target/test-classes/eu/ggnet/dwoss/misc/op/StockTaking.xls"));
@SuppressWarnings("UseInjectionInsteadOfInstantion") StockTakingOperation sto = new StockTakingOperation();
ReaderResult result = sto.xlsToList(fj);
assertArrayEquals(new String[] { "1", "2", "3", "4", "5" }, result.getRefurbisIds().toArray());
assertTrue(result.getErrors().isEmpty());
}
Aggregations