michalbali / droolsbook

Automatically exported from code.google.com/p/droolsbook
8 stars 6 forks source link

Chapter 3 validation project - ValidationTest fail while test with Drools 5.1.0.CR1 #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First of all, I created Drools Project with Drools Eclipse Plugin instead of 
using Maven.

Then, I copy all banking core source files and validation source files to the 
src directory of the project. The following libraries configured in project 
build path:
-Drools Library: All jar files from  Drools 5.1.0.CR1 binary 
(drools-5.1.0.CR1-bin.zip)
-JUnit 4
-Joda Time 1.6
-Common Lang 2.4

While I execute ValidationTest, all tests failed except accountOwnerRequired 
test.

Below is exception stack trace for addressRequired test:
java.lang.NullPointerException
    at org.drools.command.runtime.BatchExecutionCommand.execute(BatchExecutionCommand.java:142)
    at org.drools.command.runtime.BatchExecutionCommand.execute(BatchExecutionCommand.java:64)
    at org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:239)
    at droolsbook.bank.service.impl.ValidationTest.assertReportContains(ValidationTest.java:97)
    at droolsbook.bank.service.impl.ValidationTest.addressRequired(ValidationTest.java:150)
    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:597)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Please advice.

Original issue reported on code.google.com by limchee...@ymail.com on 29 Jul 2010 at 3:09

GoogleCodeExporter commented 9 years ago
The code hasn't been migrated to Drools 5.1.0 yet.

Original comment by michalb...@gmail.com on 1 Aug 2010 at 3:48

GoogleCodeExporter commented 9 years ago
Thanks for fast response. Do you have any plan (specific date) when are you 
going to migrated it to support Drools 5.1.0? 

Original comment by limchee...@ymail.com on 5 Aug 2010 at 8:33

GoogleCodeExporter commented 9 years ago
I think you can close this issue as it is solved with 5.1.0 final. You can find 
out more information at 
http://lists.jboss.org/pipermail/rules-users/2010-August/015720.html

Original comment by mr.limch...@gmail.com on 17 Aug 2010 at 4:48