[hornetq-commits] JBoss hornetq SVN: r11554 - trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/config/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Oct 17 07:07:39 EDT 2011


Author: borges
Date: 2011-10-17 07:07:39 -0400 (Mon, 17 Oct 2011)
New Revision: 11554

Modified:
   trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/config/impl/ConfigurationValidationTest.java
Log:
FIX: Correct the reference path of searched resource.

When using Ant the classpath would be manually modified to include the
"schema" folder. In practice, leaving "schema/" out tests only for the
manual classpath modification.

Modified: trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/config/impl/ConfigurationValidationTest.java
===================================================================
--- trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/config/impl/ConfigurationValidationTest.java	2011-10-17 09:13:09 UTC (rev 11553)
+++ trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/config/impl/ConfigurationValidationTest.java	2011-10-17 11:07:39 UTC (rev 11554)
@@ -24,7 +24,7 @@
  * A ConfigurationValidationTr
  *
  * @author jmesnil
- * 
+ *
  * Created 22 janv. 2009 14:53:19
  *
  *
@@ -51,7 +51,7 @@
       String xml = "<configuration xmlns='urn:hornetq'>" + "</configuration>";
       Element element = XMLUtil.stringToElement(xml);
       Assert.assertNotNull(element);
-      XMLUtil.validate(element, "hornetq-configuration.xsd");
+      XMLUtil.validate(element, "schema/hornetq-configuration.xsd");
    }
 
    public void testFullConfiguration() throws Exception



More information about the hornetq-commits mailing list