* {@link com.antoinelavail.wuv.sixthsense_java.classes.GeometricRecognizer#assembleBatch(java.lang.String[])}
* .
*/
@Test
public void testAssembleBatch() {
GeometricRecognizer geo = new GeometricRecognizer();
String[] filenames = { "/resources/gestures/clock1.xml", "/resources/gestures/clock2.xml",
"/resources/gestures/draw1.xml", "/resources/gestures/draw2.xml",
"/resources/gestures/menu1.xml", "/resources/gestures/menu2.xml",
"/resources/gestures/photo1.xml", "/resources/gestures/photo2.xml",
"/resources/gestures/weather1.xml", "/resources/gestures/weather2.xml", };
assertEquals(5, geo.assembleBatch(filenames).size());
assertEquals("draw", geo.assembleBatch(filenames).get(0).getName());
assertEquals("photo", geo.assembleBatch(filenames).get(1).getName());
assertEquals("clock", geo.assembleBatch(filenames).get(2).getName());
assertEquals("menu", geo.assembleBatch(filenames).get(3).getName());
assertEquals("weather", geo.assembleBatch(filenames).get(4).getName());
String[] filenames2 = { "/resources/gestures/clock1.xml", "/resources/gestures/clock2.xml",
"/resources/gestures/draw1.xml" };
assertNull(geo.assembleBatch(filenames2));
try {
geo.assembleBatch(null);
} catch (NullPointerException e) {
// Pass
}
String[] filenames3 = { "nullxmlfile" };
assertNull(geo.assembleBatch(filenames3));
}