Predefined order of tests

cusax-fix
Damian Minkov 20 years ago
parent f20525d84e
commit 4e7ad6d71c

@ -95,7 +95,7 @@ public void start(BundleContext bundleContext) throws Exception
//First test account installation so that the service that has been
//installed by it gets tested by the rest of the tests.
addTestSuite(TestAccountInstallation.class);
addTest(TestAccountInstallation.suite());
//This must remain second as that's where the protocol would be made
//to login/authenticate/signon its service provider.
@ -111,7 +111,7 @@ public void start(BundleContext bundleContext) throws Exception
//This must remain last since it tests account uninstallation and
//the accounts we use for testing won't be available after that.
addTestSuite(TestAccountUninstallation.class);
addTest(TestAccountUninstallation.suite());
bundleContext.registerService(getClass().getName(), this, properties);

@ -45,6 +45,19 @@ protected void tearDown() throws Exception
super.tearDown();
}
public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTest(
new TestAccountInstallation("testRegisterUrongUsername"));
suite.addTest(
new TestAccountInstallation("testRegisterUrongPassword"));
suite.addTest(
new TestAccountInstallation("testInstallAccount"));
return suite;
}
/**
* We try to register with wrong uin which must fire event with status
* AUTHENTICATION_FAILED. As the uin is new (not existing and not registered)

@ -60,6 +60,18 @@ protected void tearDown() throws Exception
super.tearDown();
}
public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTest(
new TestAccountUninstallation("testMultipleLogins"));
suite.addTest(
new TestAccountUninstallation("testUninstallAccount"));
return suite;
}
/**
* Registers listener who will wait for Inregistered event.
* Than log in The tester with uin that is already logged in

Loading…
Cancel
Save