Skip to content

Commit

Permalink
fixed junit test
Browse files Browse the repository at this point in the history
issue imixs#366
  • Loading branch information
rsoika committed Apr 20, 2018
1 parent 7287650 commit a99976d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void teardown() {

}

@SuppressWarnings("unused")
@SuppressWarnings({ "unused", "unchecked" })
@Test
public void testSimple() throws ParseException,
ParserConfigurationException, SAXException, IOException, ModelException {
Expand Down Expand Up @@ -78,11 +78,11 @@ public void testSimple() throws ParseException,

Assert.assertNotNull(dataObjects);
Assert.assertEquals(1,dataObjects.size());
String[] data=(String[]) dataObjects.get(0);
List<String> data=(List<String>) dataObjects.get(0);
Assert.assertNotNull(data);
Assert.assertEquals(2,data.length);
Assert.assertEquals("Invoice Template",data[0]);
Assert.assertEquals("Some data ...",data[1]);
Assert.assertEquals(2,data.size());
Assert.assertEquals("Invoice Template",data.get(0));
Assert.assertEquals("Some data ...",data.get(1));


}
Expand Down

0 comments on commit a99976d

Please sign in to comment.