Author: mvw
Date: 2008-03-31 08:14:12-0700
New Revision: 14266
Modified:
trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java
Log:
Don't use the InitSubsystem interface, since this subsystem needs to be initialised before the GUI, and using the InitSubsystem interface would mean that someone may be tempted to initialise some UI here, which won't work.
Modified: trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java?view=diff&rev=14266&p1=trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java&p2=trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java&r1=14265&r2=14266
==============================================================================
--- trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java (original)
+++ trunk/src/app/tests/org/argouml/profile/TestSubsystemInit.java 2008-03-31 08:14:12-0700
@@ -24,12 +24,11 @@
package org.argouml.profile;
-import org.argouml.application.api.InitSubsystem;
+import junit.framework.TestCase;
+
import org.argouml.model.InitializeModel;
import org.argouml.profile.init.InitProfileSubsystem;
-import junit.framework.TestCase;
-
/**
* Test cases for the initialization of the profile subsystem.
*
@@ -37,7 +36,7 @@
*/
public class TestSubsystemInit extends TestCase {
- private InitSubsystem initSubsystem;
+ private InitProfileSubsystem initSubsystem;
@Override
protected void setUp() throws Exception {
@@ -54,12 +53,4 @@
initSubsystem.init();
assertNotNull(ProfileFacade.getManager());
}
-
- public void testSettingsTabsEmpty() {
- assertEquals(0, initSubsystem.getSettingsTabs().size());
- }
-
- public void testProjectSettingsTabsEmpty() {
- assertEquals(0, initSubsystem.getProjectSettingsTabs().size());
- }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.