tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agr...@apache.org
Subject svn commit: r551562 - /incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/api/DataObject/DataObjectTest.java
Date Thu, 28 Jun 2007 14:01:08 GMT
Author: agrove
Date: Thu Jun 28 07:01:07 2007
New Revision: 551562

URL: http://svn.apache.org/viewvc?view=rev&rev=551562
Log:
reverted DataObjectTest to it's original approach of using a unique type name for each test
to avoid clashes if the tests are run against an application's default context

Modified:
    incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/api/DataObject/DataObjectTest.java

Modified: incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/api/DataObject/DataObjectTest.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/api/DataObject/DataObjectTest.java?view=diff&rev=551562&r1=551561&r2=551562
==============================================================================
--- incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/api/DataObject/DataObjectTest.java
(original)
+++ incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/api/DataObject/DataObjectTest.java
Thu Jun 28 07:01:07 2007
@@ -47,6 +47,7 @@
 public class DataObjectTest extends CTSTestCase  {
 
     private boolean debug = false;
+    private static int uniqueNumber = 1;
     
     @Before
     public void setUp() throws Exception {
@@ -298,15 +299,15 @@
             assertFalse("No exception expected: received " + e.toString(), true);
         }
     }
-    
-    /*
-     * KG -- keeping an indirection  here temporarily since I think we can dispense with
the need for
-     * a unique property name now that we use a fresh HelperContext per test method.  TODO
Remove this
-     * method when sure.
+
+    /**
+     * Creates a unique type name for each test so that the types won't clash if an implementation
+     * provides its default HelperContext when running the tests.
+     * 
+     * @return
      */
     private String getTypeName() {
-      // return CTSUtil.createUniqueName();
-      return "T1";
+      return "DataObjectTestType" + (++uniqueNumber);
     }
 
     @Override



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message