Hide Forgot
Date of First Response: 2008-09-17 02:35:34 project_key: SOA -->Need to add import statements to MailTest.java: import org.jbpm.graph.def.ProcessDefinition; import org.jbpm.graph.exe.ProcessInstance; import org.jbpm.JbpmConfiguration; import org.jbpm.JbpmContext; import junit.framework.TestCase; --> And extends clause: public class MailTest extends TestCase { --> And create this dir - to build test with ant [ldimaggi@ldimaggi mail]$ mkdir src/test [ldimaggi@ldimaggi mail]$ mkdir src/test/java
Link: Added: This issue is a dependency of JBPM-1155
Unchanged in SOA-P CP02 and jBPM cvs head: [ldimaggi@ldimaggi examples]$ pwd /opt/CP02/jboss-soa-p-standalone.4.2.0/jbpm-jpdl/examples [ldimaggi@ldimaggi examples]$ find . -name MailTest.java -ls 7771123 8 -rw-r--r-- 1 ldimaggi ldimaggi 2454 Nov 14 2006 ./mail/src/main/java/org/jbpm/mail/MailTest.java /opt/jbpm.3/jpdl/examples [ldimaggi@ldimaggi examples]$ find . -name MailTest.java -ls 3016749 8 -rw-rw-r-- 1 ldimaggi ldimaggi 2454 Nov 14 2006 ./mail/src/main/java/org/jbpm/mail/MailTest.java
Getting closer - the test source is correct, but the test needs to have these directories created before the test can be run: ant test src/test src/test/java
I've emailed Alejandro so see what's happening with this. Neil
Which CVS/SVN branch are you working with? I see CVS head in a previous comment, but all files have been deleted there.
Branch can now be found at https://svn.jboss.org/repos/jbpm/jbpm3/branches/jpdl-3.2.2-SOA-4.2/
Re: "but the test needs to have these directories created". The build.xml (actually ../example.base.build.xml) assumes that we will have src/main and also src/test directories. In this case, we don't have them, so I think the attached patch would be neater. However, with that patch, the tests run but I'm not sure if anything useful is produced - target/test.results/index.html shows 0 tests.
Attachment: Added: build.xml.diffs
Link: Added: This issue related SOA-864
The MailTest source file is in the src/main directory and does not extend TestCase. Instead of accepting the proposed fix I will restructure the example so that the sample process is in the src/main directory and the test code is in src/test. This should produce the expected test results.
This seems to have been fixed.