package petstore.test; import junit.framework.Test; import junit.framework.TestSuite; import airliftj.test.app.BaseAppLayerComponentTestSuite; /** * Intended to contain all tests for all queries used in the Petsore Application, * mostly queries used in Components. *
* Notes: * * * Based on pre-existing Query tester. * * @author milan zimmermann */ public class TestPetstore { public static Test suite() { return suiteDo(); } /** * Core of the test. One TestSuite should be added for each Component tested . * * For example, appLayerTestSuite.addTest(new TestSuite(TestShiftTypeEditorComponent.class)). * @return */ private static Test suiteDo() { // A extension of JUnit TestSuite needs to be added here. // One such extension is BaseAppLayerComponentTestSuite. // This class takes care of creating and initializing the AppSession // and activating new Conversation within the AppSession. BaseAppLayerComponentTestSuite appLayerTestSuite = new BaseAppLayerComponentTestSuite(); // Next, add a TestCase extension for each Component tested. // below, can NOT simply appLayerTestSuite.addTest(new TestPetstorePerson())); appLayerTestSuite.addTest(new TestSuite(TestPetstorePerson.class)); //appLayerTestSuite.addTest(new TestSuite(TestShiftTypeEditorComponent.class)); // etc - one for each Component return appLayerTestSuite; } }