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.
*
*
hibernate.properties
. Take care this is not your life database
* when running this test.
* 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;
}
}