[hornetq-commits] JBoss hornetq SVN: r11461 - 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 3 11:40:41 EDT 2011


Author: borges
Date: 2011-10-03 11:40:40 -0400 (Mon, 03 Oct 2011)
New Revision: 11461

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-09-30 20:42:55 UTC (rev 11460)
+++ trunk/tests/unit-tests/src/test/java/org/hornetq/tests/unit/core/config/impl/ConfigurationValidationTest.java	2011-10-03 15:40:40 UTC (rev 11461)
@@ -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