svn commit: r12791 - trunk/tests/org/argouml/model/InitializeModel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-06-08 08:47:35-0700
New Revision: 12791

Modified:
   trunk/tests/org/argouml/model/InitializeModel.java

Log:
Test with same property-specified model subsystem as used by main application

Modified: trunk/tests/org/argouml/model/InitializeModel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/model/InitializeModel.java?view=diff&rev=12791&p1=trunk/tests/org/argouml/model/InitializeModel.java&p2=trunk/tests/org/argouml/model/InitializeModel.java&r1=12790&r2=12791
==============================================================================
--- trunk/tests/org/argouml/model/InitializeModel.java	(original)
+++ trunk/tests/org/argouml/model/InitializeModel.java	2007-06-08 08:47:35-0700
@@ -32,6 +32,14 @@
  * @author lito
  */
 public final class InitializeModel {
+    
+    /**
+     * The default model implementation to start.
+     */
+    private static final String DEFAULT_MODEL_IMPLEMENTATION =
+        "org.argouml.model.mdr.MDRModelImplementation";
+
+
     /**
      * This is never instantiated.
      */
@@ -42,7 +50,11 @@
      * Initialize the Model subsystem with the default ModelImplementation.
      */
     public static void initializeDefault() {
-        initializeMDR();
+        String className =
+            System.getProperty(
+                    "argouml.model.implementation",
+                    DEFAULT_MODEL_IMPLEMENTATION);
+        initializeModelImplementation(className);
     }
 
     /**
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.