Search in sources :

Example 1 with ReaderResult

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());
}
Also used : ReaderResult(eu.ggnet.dwoss.misc.ee.StockTakingOperation.ReaderResult) FileJacket(eu.ggnet.dwoss.util.FileJacket) File(java.io.File) Test(org.junit.Test)

Aggregations

ReaderResult (eu.ggnet.dwoss.misc.ee.StockTakingOperation.ReaderResult)1 FileJacket (eu.ggnet.dwoss.util.FileJacket)1 File (java.io.File)1 Test (org.junit.Test)1