You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2005/03/23 19:26:46 UTC

cvs commit: xml-security/src_unitTests/org/apache/xml/security/test/utils/resolver ResourceResolverSpiTest.java

raul        2005/03/23 10:26:46

  Modified:    src_unitTests/org/apache/xml/security/test/utils/resolver
                        ResourceResolverSpiTest.java
  Log:
  Empty of methods as expandSystemId was removed.
  
  Revision  Changes    Path
  1.7       +1 -57     xml-security/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverSpiTest.java
  
  Index: ResourceResolverSpiTest.java
  ===================================================================
  RCS file: /home/cvs/xml-security/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverSpiTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ResourceResolverSpiTest.java	8 Feb 2004 06:08:22 -0000	1.6
  +++ ResourceResolverSpiTest.java	23 Mar 2005 18:26:46 -0000	1.7
  @@ -23,7 +23,6 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
  -import org.apache.xml.security.utils.resolver.ResourceResolverSpi;
   
   
   /**
  @@ -72,62 +71,7 @@
         // junit.swingui.TestRunner.main(testCaseName);
      }
   
  -   /**
  -    * Method testExpandSystemId_1
  -    *
  -    * @throws Exception
  -    */
  -   public static void testExpandSystemId_1() throws Exception {
  -
  -      String systemId = "http://www.w3.org/1.xml";
  -      String currentSystemId = "http://localhost/file.txt";
  -      String expected = "http://www.w3.org/1.xml";
  -      String result = ResourceResolverSpi.expandSystemId(systemId,
  -                         currentSystemId);
  -      String description = "systemId='" + systemId + "' currentSystemId='"
  -                           + currentSystemId + "' expected='" + expected
  -                           + "' but was: " + result;
  -
  -      assertTrue(description, result.equals(expected));
  -   }
  -
  -   /**
  -    * Method testExpandSystemId_2
  -    *
  -    * @throws Exception
  -    */
  -   public static void testExpandSystemId_2() throws Exception {
   
  -      String systemId = "1.xml";
  -      String currentSystemId = "http://www.w3.org/file.xml";
  -      String expected = "http://www.w3.org/1.xml";
  -      String result = ResourceResolverSpi.expandSystemId(systemId,
  -                         currentSystemId);
  -      String description = "systemId='" + systemId + "' currentSystemId='"
  -                           + currentSystemId + "' expected='" + expected
  -                           + "' but was: " + result;
  -
  -      assertTrue(description, result.equals(expected));
  -   }
  -
  -   /**
  -    * Method testExpandSystemId_3
  -    *
  -    * @throws Exception
  -    */
  -   public static void _testExpandSystemId_3() throws Exception {
  -
  -      String systemId = "1.xml";
  -      String currentSystemId = "file:/Y:\\dir\\3.xml";
  -      String expected = "file:/Y:/dir/1.xml";
  -      String result = ResourceResolverSpi.expandSystemId(systemId,
  -                         currentSystemId);
  -      String description = "systemId='" + systemId + "' currentSystemId='"
  -                           + currentSystemId + "' expected='" + expected
  -                           + "' but was: " + result;
  -
  -      assertTrue(description, result.equals(expected));
  -   }
   
      static {
         org.apache.xml.security.Init.init();