You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hl...@apache.org on 2005/05/26 05:08:39 UTC

cvs commit: jakarta-hivemind/framework/src/test/org/apache/hivemind/parse TestXmlResourceProcessor.java

hlship      2005/05/25 20:08:39

  Modified:    framework/src/test/hivemind/test/parse
                        TestDescriptorParser.java
               framework/src/java/org/apache/hivemind/ant
                        RegistrySerializer.java
               framework/src/test/org/apache/hivemind/parse
                        TestXmlResourceProcessor.java
  Log:
  Fix some tests that failed to compile or work.
  
  Revision  Changes    Path
  1.36      +1 -1      jakarta-hivemind/framework/src/test/hivemind/test/parse/TestDescriptorParser.java
  
  Index: TestDescriptorParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/test/hivemind/test/parse/TestDescriptorParser.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- TestDescriptorParser.java	25 May 2005 09:55:23 -0000	1.35
  +++ TestDescriptorParser.java	26 May 2005 03:08:39 -0000	1.36
  @@ -546,7 +546,7 @@
   
           List rules = em.getRules();
   
  -        PushContentRule rule = (PushContentRule) rules.get(0);
  +        assertTrue(rules.get(0) instanceof PushContentRule);
       }
   
       /** @since 1.1 */
  
  
  
  1.15      +1 -2      jakarta-hivemind/framework/src/java/org/apache/hivemind/ant/RegistrySerializer.java
  
  Index: RegistrySerializer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/ant/RegistrySerializer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- RegistrySerializer.java	25 May 2005 09:55:23 -0000	1.14
  +++ RegistrySerializer.java	26 May 2005 03:08:39 -0000	1.15
  @@ -580,8 +580,7 @@
                   rule.setAttribute("attribute", par.getAttributeName());
               }
               else if (r instanceof PushContentRule)
  -            {
  -                PushContentRule pcr = (PushContentRule) r;
  +            {              
                   rule = _document.createElement("push-content");
               }
               else if (r instanceof ReadAttributeRule)
  
  
  
  1.7       +2 -2      jakarta-hivemind/framework/src/test/org/apache/hivemind/parse/TestXmlResourceProcessor.java
  
  Index: TestXmlResourceProcessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/test/org/apache/hivemind/parse/TestXmlResourceProcessor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestXmlResourceProcessor.java	28 Apr 2005 07:42:10 -0000	1.6
  +++ TestXmlResourceProcessor.java	26 May 2005 03:08:39 -0000	1.7
  @@ -16,8 +16,8 @@
   
   import hivemind.test.FrameworkTestCase;
   
  +import java.net.ConnectException;
   import java.net.URL;
  -import java.net.UnknownHostException;
   
   import org.apache.hivemind.ApplicationRuntimeException;
   import org.apache.hivemind.Resource;
  @@ -35,7 +35,7 @@
           Resource[] missingResources = new Resource[]
           { new FileResource("foo"), new URLResource(new URL("file://MissingFile")) };
           Class[] exceptionTypes = new Class[]
  -        { NullPointerException.class, UnknownHostException.class };
  +        { NullPointerException.class, ConnectException.class };
   
           for (int i = 0; i < missingResources.length; i++)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org