See
http://hudson.qa.jboss.com/hudson/job/drools/1692/changes
Changes:
[KrisVerlaenen] docs
[john.graham(a)jboss.org] Initial commit of org.eclipse.webdav plug-in
[KrisVerlaenen] docs
------------------------------------------
[...truncated 26402 lines...]
rule "Your Second Rule"
#include attributes such as "salience" here...
when
#conditions
then
#actions
end
#created on: Oct 30, 2006
package test
rule "Your First Rule"
when
#conditions
then
#actions
end
rule "Your Second Rule"
#include attributes such as "salience" here...
when
#conditions
then
#actions
end
#This is a starter DSL to show off some of the features. Make sure you change it to be
what you need !.
[when]There is an Instance with field of "{value}"=i:
Instance(field=="{value}")
[when]Instance is at least {number} and field is "{value}"=i: Instance(number
> {number}, location=="{value}")
[then]Log : "{message}"=System.out.println("{message}");
[then]Set field of instance to "{value}"=i.setField("{value}");
[then]Create instance : "{value}"=assert(new Instance("{value}"));
[when]There is no current Instance with field : "{value}"=not Instance(field ==
"{value}")
[then]Report error : "{error}"=System.err.println("{error}");
[then]Retract the fact : '{variable}'=retract({variable}); //this would retract
bound variable {variable}
#This is a starter DSL to show off some of the features. Make sure you change it to be
what you need !.
[when]There is an Instance with field of "{value}"=i:
Instance(field=="{value}")
[when]Instance is at least {number} and field is "{value}"=i: Instance(number
> {number}, location=="{value}")
[then]Log : "{message}"=System.out.println("{message}");
[then]Set field of instance to "{value}"=i.setField("{value}");
[then]Create instance : "{value}"=assert(new Instance("{value}"));
[when]There is no current Instance with field : "{value}"=not Instance(field ==
"{value}")
[then]Report error : "{error}"=System.err.println("{error}");
[then]Retract the fact : '{variable}'=retract({variable}); //this would retract
bound variable {variable}
This is a rules function
This is a rules function
This is a test rule
This is a test rule
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.255 sec
Running org.drools.repository.ScalabilityTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.drools.repository.security.AccessControlTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.776 sec
Running org.drools.scm.svn.SvnActionFactoryTest
org.tmatesoft.svn.core.SVNException: svn: Path 'folder1' not present
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.io.fs.FSCommitEditor.openDir(FSCommitEditor.java:115)
at org.drools.scm.svn.SvnActionFactory.openDirectories(SvnActionFactory.java:631)
at
org.drools.scm.svn.SvnActionFactory$AddDirectory.applyAction(SvnActionFactory.java:333)
at org.drools.scm.CompositeScmAction.applyAction(CompositeScmAction.java:33)
at org.drools.scm.svn.SvnActionFactory.execute(SvnActionFactory.java:265)
at
org.drools.scm.svn.SvnActionFactoryTest.testCannotAddDirectoryWithNoParent(SvnActionFactoryTest.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
org.tmatesoft.svn.core.SVNException: svn: File already exists: filesystem
'/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/test-classes/copy_svn_repo_empty/db',
transaction '1-1', path '/folder1'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.io.fs.FSCommitter.makeDir(FSCommitter.java:166)
at org.tmatesoft.svn.core.internal.io.fs.FSCommitEditor.addDir(FSCommitEditor.java:164)
at
org.drools.scm.svn.SvnActionFactory$AddDirectory.applyAction(SvnActionFactory.java:340)
at org.drools.scm.CompositeScmAction.applyAction(CompositeScmAction.java:33)
at org.drools.scm.svn.SvnActionFactory.execute(SvnActionFactory.java:265)
at
org.drools.scm.svn.SvnActionFactoryTest.testCannotAddDuplicateDirectories(SvnActionFactoryTest.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.36 sec
Running org.drools.repository.CategoryItemTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.487 sec
Running org.drools.scm.svn.SvnLogTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.423 sec
Running org.drools.repository.remoteapi.ResponseTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
Running org.drools.repository.ArchiveItemTest
Content of rule item named 'testArchiveBooleanFlag':
Content:
------
Archived: true
------
Date Effective: null
Date Expired: null
------
Rule state: Draft
------
Rule tags:
--------------
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.246 sec
Running org.drools.repository.AssetItemTest
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.354 sec
Running org.drools.repository.remoteapi.RestAPITest
2008-06-24T10:23:16,1
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.443 sec
Running org.drools.repository.RulesRepositoryTest
defaultPackage
folder1
folder1.folder1_1
folder1.folder1_1.folder1_1_1
folder1.folder1_2
folder2.folder2_1
folder3.folder3_1.folder3_1_1.folder3_1_1_1
testAddFiles.package
testListPackagesblah
testListPackages2blah1
testListPackages2blah3
testListPackages2blah7
testPagination
testDublinCore
testRestGetBasics
testRestPost
testPostNewPackage
testRestPut
testRestDelete
1
1
Clearing rules repository
Clearing rules repository
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.462 sec
Running org.drools.repository.PackageItemTest
2
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.078 sec
Running org.drools.repository.migration.MigrateDroolsPackageTest
AUTO MIGRATION: Performing drools.package migration...
AUTO MIGRATION: drools.package migration completed.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.611 sec
Results :
Tests run: 121, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-sources.jar
[INFO] Preparing source:test-jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:test-jar {execution: default}]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-test-sources.jar
[INFO] [jar:test-jar {execution: default}]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-tests.jar
[INFO] [install:install]
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT.jar
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-sources.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT-sources.jar
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-test-sources.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT-test-sources.jar
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-tests.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Drools :: Guvnor
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 212 source files to
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 53 source files to
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/target/test-classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/src/test/java/org/drools/guvnor/server/contenthandler/FactModelContentHandlerTest.java:[79,10]
cannot find symbol
symbol : method
assembleDRL(<nulltype>,org.drools.repository.AssetItem,java.lang.StringBuffer)
location: class org.drools.guvnor.server.contenthandler.FactModelContentHandler
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/src/test/java/org/drools/guvnor/server/contenthandler/FactModelContentHandlerTest.java:[97,10]
cannot find symbol
symbol : method
compile(org.drools.guvnor.server.builder.BRMSPackageBuilder,org.drools.repository.AssetItem,<nulltype>)
location: class org.drools.guvnor.server.contenthandler.FactModelContentHandler
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 minutes 59 seconds
[INFO] Finished at: Tue Jun 24 10:24:09 EDT 2008
[INFO] Final Memory: 36M/101M
[INFO] ------------------------------------------------------------------------
Terminating xvnc
[drools] $ vncserver -kill :10
Killing Xvnc process ID 7212
ERROR: No artifacts found that match the file pattern
"trunk/target/,rules-ouput/". Configuration error?
ERROR: 'trunk/target/' doesn't match anything, but '' does. Perhaps
that's what you mean?
Recording test results