[jboss-cvs] jboss-seam/src/test/integration/src/org/jboss/seam/test/integration ...
Norman Richards
norman.richards at jboss.com
Mon Oct 15 18:08:08 EDT 2007
User: nrichards
Date: 07/10/15 18:08:08
Modified: src/test/integration/src/org/jboss/seam/test/integration
testng.xml
Added: src/test/integration/src/org/jboss/seam/test/integration
BusinessProcessTest.java
Log:
/JBSEAM-2047
Revision Changes Path
1.6 +6 -0 jboss-seam/src/test/integration/src/org/jboss/seam/test/integration/testng.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: testng.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/test/integration/src/org/jboss/seam/test/integration/testng.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- testng.xml 13 Oct 2007 16:08:40 -0000 1.5
+++ testng.xml 15 Oct 2007 22:08:08 -0000 1.6
@@ -43,4 +43,10 @@
<class name="org.jboss.seam.test.integration.ConversationTest" />
</classes>
</test>
+
+ <test name="Seam Core - Integration: BPM">
+ <classes>
+ <class name="org.jboss.seam.test.integration.BusinessProcessTest" />
+ </classes>
+ </test>
</suite>
1.1 date: 2007/10/15 22:08:08; author: nrichards; state: Exp;jboss-seam/src/test/integration/src/org/jboss/seam/test/integration/BusinessProcessTest.java
Index: BusinessProcessTest.java
===================================================================
package org.jboss.seam.test.integration;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.bpm.CreateProcess;
import org.jboss.seam.mock.SeamTest;
import org.testng.annotations.Test;
public class BusinessProcessTest
extends SeamTest
{
@Test
public void noProcessDefinition()
throws Exception
{
new FacesRequest() {
@Override
protected void invokeApplication() throws Exception {
try {
invokeAction("#{bpmTest.startInvalid}");
assert false;
} catch (Exception e) {
// expected
}
}
}.run();
}
@Test
public void noVariableStart()
throws Exception
{
new FacesRequest() {
@Override
protected void invokeApplication() throws Exception {
try {
invokeAction("#{bpmTest.startOne}");
} catch (Exception e) {
assert false;
}
}
}.run();
}
@Name("bpmTest")
static public class ProcessComponent {
@CreateProcess(definition="NoSuchProcess")
public void startInvalid() {
}
@CreateProcess(definition="TestProcess1")
public void startOne() {
}
}
}
More information about the jboss-cvs-commits
mailing list