testMethods.add("gDummyTest");
ArrayList<String> ignoredTestMethods = new ArrayList<String>(2);
ignoredTestMethods.add("ignore2");
ignoredTestMethods.add("ignore1");
ClassMethods cm2 = new ClassMethods(Const.NAME_DUMMYTEST,
Const.CLASSPATH + Const.DIRSEP, testMethods, ignoredTestMethods);
ArrayList<String> expTestMethods = new ArrayList<String>(3);
expTestMethods.add("dummyTest");
expTestMethods.add("gDummyTest");
expTestMethods.add("zDummyTest");
ArrayList<String> expIgnoredTestMethods = new ArrayList<String>(2);
expIgnoredTestMethods.add("ignore1");
expIgnoredTestMethods.add("ignore2");
assertEquals(3, cm2.getTestMethods().size());
assertEquals(2, cm2.getIgnoredTestMethods().size());
assertEquals(expTestMethods, cm2.getTestMethods());
assertEquals(expIgnoredTestMethods, cm2.getIgnoredTestMethods());
}