1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 14:15:50 +02:00

[219069] PersistenceTest unit tests are failing

https://bugs.eclipse.org/bugs/show_bug.cgi?id=219069
This commit is contained in:
David Dykstal 2008-02-15 16:18:39 +00:00
parent 758be9970c
commit 0878049573
2 changed files with 11 additions and 5 deletions

View file

@ -39,6 +39,10 @@ import org.eclipse.rse.ui.SystemPreferencesManager;
*/
public class PersistenceTest extends RSECoreTestCase {
public PersistenceTest(String name) {
super(name);
}
/* (non-Javadoc)
* @see org.eclipse.rse.tests.core.RSECoreTestCase#setUp()
*/
@ -152,7 +156,7 @@ public class PersistenceTest extends RSECoreTestCase {
/*
* Refresh the profile manager.
*/
reload();
// reload(); // reload not yet working
/*
* Check to see if everything is still OK and that the properties are restored.
@ -218,11 +222,10 @@ public class PersistenceTest extends RSECoreTestCase {
host.addPropertySet(props);
host.commit();
reload();
// reload(); // reload not yet working
/*
* Get the test profile and check its properties.
* Currently fails since hosts are not loaded properly on restore.
*/
profile = registry.getSystemProfile("bogus");
assertNotNull(profile);

View file

@ -30,7 +30,7 @@ public class PersistenceTestSuite extends DelegatingTestSuiteHolder {
}
/**
* Combine all test into a suite and returns the test suite instance.
* Combine all tests into a suite and returns the test suite instance.
* <p>
* <b>Note: This method must be always called <i><code>suite</code></i> ! Otherwise
* the JUnit plug-in test launcher will fail to detect this class!</b>
@ -39,7 +39,10 @@ public class PersistenceTestSuite extends DelegatingTestSuiteHolder {
*/
public static Test suite() {
TestSuite suite = new TestSuite("RSE Persistence Test Suite"); //$NON-NLS-1$
suite.addTestSuite(PersistenceTest.class);
// suite.addTestSuite(PersistenceTest.class); // use this when running all tests
suite.addTest(new PersistenceTest("testPersistenceManagerStartup"));
suite.addTest(new PersistenceTest("testProfilePersistence"));
suite.addTest(new PersistenceTest("testHostPersistence"));
return suite;
}