public static TestSuite suite() { TestSuite result = new TestSuite(); result.addTestSuite(TestArrayBunchCME.class); result.addTestSuite(TestSetBunchCME.class); result.addTestSuite(TestHashedBunchCME.class); return result; }
/** * Creates a test suite containing tests of this class in a specific order. We'll first execute * tests beginning with the "test" prefix and then go to ordered tests.We first execture tests for * receiving messagese, so that a volatile contact is created for the sender. we'll then be able * to retrieve this volatile contact and send them a message on our turn. We need to do things * this way as the contact corresponding to the tester agent has been removed in the previous test * and we no longer have it in our contact list. * * @return Test a testsuite containing all tests to execute. */ public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new TestOperationSetBasicInstantMessaging("prepareContactList")); suite.addTestSuite(TestOperationSetBasicInstantMessaging.class); // the following 2 need to be run in the specified order. suite.addTest(new TestOperationSetBasicInstantMessaging("firstTestReceiveMessage")); suite.addTest(new TestOperationSetBasicInstantMessaging("thenTestSendMessage")); return suite; }
/** * Creates a test suite containing all tests of this class followed by test methods that we want * executed in a specified order. * * @return the Test suite to run */ public static Test suite() { TestSuite suite = new TestSuite(); // the following 2 need to be run in the specified order. // (postTestRemoveGroup() needs the group created from // postTestCreateGroup() ) suite.addTest(new TestOperationSetPersistentPresence("postTestCreateGroup")); // rename suite.addTest(new TestOperationSetPersistentPresence("postTestRenameGroup")); suite.addTest(new TestOperationSetPersistentPresence("postTestRemoveGroup")); // create the contact list suite.addTest(new TestOperationSetPersistentPresence("prepareContactList")); suite.addTestSuite(TestOperationSetPersistentPresence.class); return suite; }