You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by jb...@apache.org on 2004/12/26 00:53:50 UTC

svn commit: r123349 - /webservices/scout/trunk/modules/scout/scout.iml /webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java

Author: jboynes
Date: Sat Dec 25 15:53:48 2004
New Revision: 123349

URL: http://svn.apache.org/viewcvs?view=rev&rev=123349
Log:
fix test case failures due to new implmentations
Modified:
   webservices/scout/trunk/modules/scout/scout.iml
   webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java

Modified: webservices/scout/trunk/modules/scout/scout.iml
Url: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/scout.iml?view=diff&rev=123349&p1=webservices/scout/trunk/modules/scout/scout.iml&r1=123348&p2=webservices/scout/trunk/modules/scout/scout.iml&r2=123349
==============================================================================
--- webservices/scout/trunk/modules/scout/scout.iml	(original)
+++ webservices/scout/trunk/modules/scout/scout.iml	Sat Dec 25 15:53:48 2004
@@ -103,6 +103,7 @@
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="library" name="junit-3.8.1" level="application" />
     <orderEntryProperties />
   </component>
 </module>

Modified: webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java
Url: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java?view=diff&rev=123349&p1=webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java&r1=123348&p2=webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java&r2=123349
==============================================================================
--- webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java	(original)
+++ webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java	Sat Dec 25 15:53:48 2004
@@ -32,6 +32,9 @@
 import org.apache.ws.scout.registry.infomodel.ServiceImpl;
 import org.apache.ws.scout.registry.infomodel.TelephoneNumberImpl;
 import org.apache.ws.scout.registry.infomodel.UserImpl;
+import org.apache.ws.scout.registry.infomodel.PersonNameImpl;
+import org.apache.ws.scout.registry.infomodel.SlotImpl;
+import org.apache.ws.scout.registry.infomodel.SpecificationLinkImpl;
 
 import javax.xml.registry.InvalidRequestException;
 import javax.xml.registry.JAXRException;
@@ -134,12 +137,7 @@
     }
 
     public void testCreateObjectPersonName() throws JAXRException {
-        try {
-            manager.createObject(LifeCycleManager.PERSON_NAME);
-            fail();
-        } catch (UnsupportedCapabilityException e) {
-            // OK
-        }
+        assertEquals(PersonNameImpl.class, manager.createObject(LifeCycleManager.PERSON_NAME).getClass());
     }
 
     public void testCreateObjectPostalAddress() throws JAXRException {
@@ -177,21 +175,11 @@
     }
 
     public void testCreateObjectSlot() throws JAXRException {
-        try {
-            manager.createObject(LifeCycleManager.SLOT);
-            fail();
-        } catch (UnsupportedCapabilityException e) {
-            // OK
-        }
+        assertEquals(SlotImpl.class, manager.createObject(LifeCycleManager.SLOT).getClass());
     }
 
     public void testCreateObjectSpecificationLink() throws JAXRException {
-        try {
-            manager.createObject(LifeCycleManager.SPECIFICATION_LINK);
-            fail();
-        } catch (UnsupportedCapabilityException e) {
-            // OK
-        }
+        assertEquals(SpecificationLinkImpl.class, manager.createObject(LifeCycleManager.SPECIFICATION_LINK).getClass());
     }
 
     public void testCreateObjectTelephoneNumber() throws JAXRException {

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


Re: svn commit: r123349 - /webservices/scout/trunk/modules/scout/scout.iml /webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java

Posted by Jeremy Boynes <jb...@gluecode.com>.
This diff fixes a build failure I was having with the 
LifeCycleManagerTest failing - I don't see how it could have built 
before, am I missing something?

--
Jeremy


jboynes@apache.org wrote:
> Author: jboynes
> Date: Sat Dec 25 15:53:48 2004
> New Revision: 123349
> 
> URL: http://svn.apache.org/viewcvs?view=rev&rev=123349
> Log:
> fix test case failures due to new implmentations
> Modified:
>    webservices/scout/trunk/modules/scout/scout.iml
>    webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java
> 
> Modified: webservices/scout/trunk/modules/scout/scout.iml
> Url: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/scout.iml?view=diff&rev=123349&p1=webservices/scout/trunk/modules/scout/scout.iml&r1=123348&p2=webservices/scout/trunk/modules/scout/scout.iml&r2=123349
> ==============================================================================
> --- webservices/scout/trunk/modules/scout/scout.iml	(original)
> +++ webservices/scout/trunk/modules/scout/scout.iml	Sat Dec 25 15:53:48 2004
> @@ -103,6 +103,7 @@
>          <SOURCES />
>        </library>
>      </orderEntry>
> +    <orderEntry type="library" name="junit-3.8.1" level="application" />
>      <orderEntryProperties />
>    </component>
>  </module>
> 
> Modified: webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java
> Url: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java?view=diff&rev=123349&p1=webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java&r1=123348&p2=webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java&r2=123349
> ==============================================================================
> --- webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java	(original)
> +++ webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/LifeCycleManagerTest.java	Sat Dec 25 15:53:48 2004
> @@ -32,6 +32,9 @@
>  import org.apache.ws.scout.registry.infomodel.ServiceImpl;
>  import org.apache.ws.scout.registry.infomodel.TelephoneNumberImpl;
>  import org.apache.ws.scout.registry.infomodel.UserImpl;
> +import org.apache.ws.scout.registry.infomodel.PersonNameImpl;
> +import org.apache.ws.scout.registry.infomodel.SlotImpl;
> +import org.apache.ws.scout.registry.infomodel.SpecificationLinkImpl;
>  
>  import javax.xml.registry.InvalidRequestException;
>  import javax.xml.registry.JAXRException;
> @@ -134,12 +137,7 @@
>      }
>  
>      public void testCreateObjectPersonName() throws JAXRException {
> -        try {
> -            manager.createObject(LifeCycleManager.PERSON_NAME);
> -            fail();
> -        } catch (UnsupportedCapabilityException e) {
> -            // OK
> -        }
> +        assertEquals(PersonNameImpl.class, manager.createObject(LifeCycleManager.PERSON_NAME).getClass());
>      }
>  
>      public void testCreateObjectPostalAddress() throws JAXRException {
> @@ -177,21 +175,11 @@
>      }
>  
>      public void testCreateObjectSlot() throws JAXRException {
> -        try {
> -            manager.createObject(LifeCycleManager.SLOT);
> -            fail();
> -        } catch (UnsupportedCapabilityException e) {
> -            // OK
> -        }
> +        assertEquals(SlotImpl.class, manager.createObject(LifeCycleManager.SLOT).getClass());
>      }
>  
>      public void testCreateObjectSpecificationLink() throws JAXRException {
> -        try {
> -            manager.createObject(LifeCycleManager.SPECIFICATION_LINK);
> -            fail();
> -        } catch (UnsupportedCapabilityException e) {
> -            // OK
> -        }
> +        assertEquals(SpecificationLinkImpl.class, manager.createObject(LifeCycleManager.SPECIFICATION_LINK).getClass());
>      }
>  
>      public void testCreateObjectTelephoneNumber() throws JAXRException {
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: scout-dev-help@ws.apache.org


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