Bug 777953 (SOA-483) - jBPM example "mail" - missing import statements, etc.
Summary: jBPM example "mail" - missing import statements, etc.
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-483
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBPM - within SOA
Version: 4.2 GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.3 GA
Assignee: Alejandro Guizar
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-01 02:00 UTC by Len DiMaggio
Modified: 2008-10-28 08:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-28 08:34:25 UTC
Type: Bug


Attachments (Terms of Use)
build.xml.diffs (269 bytes, text/x-diff)
2008-09-24 14:17 UTC, Julian Coleman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 778381 0 medium CLOSED jBPM example "mail" - missing import statements, etc. 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-483 0 None None None Never

Internal Links: 778381

Description Len DiMaggio 2008-04-01 02:00:18 UTC
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

Comment 1 Len DiMaggio 2008-04-01 02:02:09 UTC
Link: Added: This issue is a dependency of JBPM-1155


Comment 2 Len DiMaggio 2008-06-11 17:10:33 UTC
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



Comment 3 Len DiMaggio 2008-09-08 18:34:56 UTC
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

Comment 4 nwallace 2008-09-17 06:35:34 UTC
I've emailed Alejandro so see what's happening with this.

Neil

Comment 5 Alejandro Guizar 2008-09-17 15:18:28 UTC
Which CVS/SVN branch are you working with? I see CVS head in a previous comment, but all files have been deleted there.

Comment 6 nwallace 2008-09-17 15:56:50 UTC
Branch can now be found at 

https://svn.jboss.org/repos/jbpm/jbpm3/branches/jpdl-3.2.2-SOA-4.2/ 


Comment 7 Julian Coleman 2008-09-24 14:16:17 UTC
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.

Comment 8 Julian Coleman 2008-09-24 14:17:08 UTC
Attachment: Added: build.xml.diffs


Comment 9 nwallace 2008-09-25 20:14:43 UTC
Link: Added: This issue related SOA-864


Comment 10 Alejandro Guizar 2008-10-06 19:37:41 UTC
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.

Comment 11 Lukáš Petrovický 2008-10-28 08:34:25 UTC
This seems to have been fixed.


Note You need to log in before you can comment on or make changes to this bug.