[jboss-svn-commits] JBL Code SVN: r7869 - in labs/jbossrules/trunk/drools-repository: . src/main/resources src/test/java/org/drools/resource
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Nov 28 08:15:25 EST 2006
Author: michael.neale at jboss.com
Date: 2006-11-28 08:15:19 -0500 (Tue, 28 Nov 2006)
New Revision: 7869
Modified:
labs/jbossrules/trunk/drools-repository/.classpath
labs/jbossrules/trunk/drools-repository/pom.xml
labs/jbossrules/trunk/drools-repository/src/main/resources/log4j.xml
labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/resource/SvnResourceHandlerTest.java
Log:
JBRULES-572 + fixed problem with running test in maven
Modified: labs/jbossrules/trunk/drools-repository/.classpath
===================================================================
--- labs/jbossrules/trunk/drools-repository/.classpath 2006-11-28 12:54:18 UTC (rev 7868)
+++ labs/jbossrules/trunk/drools-repository/.classpath 2006-11-28 13:15:19 UTC (rev 7869)
@@ -5,17 +5,15 @@
<classpathentry kind="src" path="src/test/resources" output="target/test-classes"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/jsr170/jcr/1.0/jcr-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/tmatesoft/javasvn/1.1-beta5/javasvn-1.1-beta5.jar"/>
- <classpathentry kind="var" path="M2_REPO/xerces/xmlParserAPIs/2.0.2/xmlParserAPIs-2.0.2.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/lucene/lucene/1.4.3/lucene-1.4.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.0/slf4j-log4j12-1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/jackrabbit/jackrabbit-core/1.0.1/jackrabbit-core-1.0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.8/log4j-1.2.8.jar"/>
- <classpathentry kind="var" path="M2_REPO/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/lucene/lucene/1.4.3/lucene-1.4.3.jar"/>
<classpathentry kind="var" path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/derby/derby/10.1.1.0/derby-10.1.1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/jcr/jcr/1.0/jcr-1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.0/slf4j-log4j12-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/derby/derby/10.1.3.1/derby-10.1.3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/jackrabbit/jackrabbit-core/1.1/jackrabbit-core-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar"/>
</classpath>
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-repository/pom.xml
===================================================================
--- labs/jbossrules/trunk/drools-repository/pom.xml 2006-11-28 12:54:18 UTC (rev 7868)
+++ labs/jbossrules/trunk/drools-repository/pom.xml 2006-11-28 13:15:19 UTC (rev 7869)
@@ -27,7 +27,7 @@
<dependency>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-core</artifactId>
- <version>1.0.1</version>
+ <version>1.1</version>
</dependency>
<dependency>
Modified: labs/jbossrules/trunk/drools-repository/src/main/resources/log4j.xml
===================================================================
--- labs/jbossrules/trunk/drools-repository/src/main/resources/log4j.xml 2006-11-28 12:54:18 UTC (rev 7868)
+++ labs/jbossrules/trunk/drools-repository/src/main/resources/log4j.xml 2006-11-28 13:15:19 UTC (rev 7869)
@@ -25,7 +25,7 @@
</appender>
<root>
- <priority value="DEBUG"/>
+ <priority value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</root>
Modified: labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/resource/SvnResourceHandlerTest.java
===================================================================
--- labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/resource/SvnResourceHandlerTest.java 2006-11-28 12:54:18 UTC (rev 7868)
+++ labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/resource/SvnResourceHandlerTest.java 2006-11-28 13:15:19 UTC (rev 7869)
@@ -2,6 +2,7 @@
import java.io.File;
import java.net.URI;
+import java.net.URL;
import junit.framework.TestCase;
@@ -24,7 +25,16 @@
public void setUp() {
// First we need to find the absolute path
- File file = new File ( getClass().getClassLoader().getSystemClassLoader().getResource( "svn_repo" ).getFile() );
+ URL url = getClass().getResource( "/svn_repo" );
+
+// ClassLoader cl = getClass().getClassLoader();
+// assertNotNull( cl );
+// ClassLoader sys = cl.getSystemClassLoader();
+// assertNotNull(sys);
+//
+// URL url = sys.getResource( "svn_repo" );
+ assertNotNull(url);
+ File file = new File ( url.getFile() );
// Now set the two path roots
svnUrl = "file:///" + file.getAbsolutePath().replaceAll( "\\\\", "/" );
@@ -35,9 +45,12 @@
ResourceHandler rHandler = new SvnResourceHandler();
rHandler.setCredentials( "mrtrout",
"drools" );
- boolean authRtnPass = rHandler.authenticate( "file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo" );
- boolean authRtnFail = rHandler.authenticate( "file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo2" );
+
+ boolean authRtnPass = rHandler.authenticate( svnUrl ) ;//"file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo" );
+ boolean authRtnFail = rHandler.authenticate( svnUrl + "2" );//"file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo2" );
+ System.out.println(svnUrl);
+
assertEquals( true,
authRtnPass );
assertEquals( false,
More information about the jboss-svn-commits
mailing list