[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1371) Unable to use TestNG groups with SeamTest

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Mar 10 08:37:58 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-1371?page=all ]

Pete Muir updated JBSEAM-1371:
------------------------------

    Fix Version/s: 2.1.0.GA
      Description: 
testng xml in build.xml
++++++++++++++++++++++++++++++
<testng outputdir="${basedir}/test-report" groups="SomeGroups">
                        <classfileset dir="classes" includes="**/*.class" />
                        <classpath path="${test.dir}" />
                        <classpath path="${embedded-ejb3.dir}" />
                        <classpath refid="build.classpath" />
</testng>
++++++++++++++++++++++++++++++

EmptyTest.java
++++++++++++++++++++++++++++++
public class EmptyTest extends SeamTest {

	@Test(groups = {"SomeGroups"})
	public void testNothing() throws Exception {
		new FacesRequest() {
			@Override
			protected void invokeApplication() throws Exception {
				assert true;
			}
		}.run();
	}

	@Test
	public void testNothingAgain() throws Exception {
		assert true;
	}
}
++++++++++++++++++++++++++++++

command:
++++++++++++++++++++++++++++++
ant test
++++++++++++++++++++++++++++++


Exception:
++++++++++++++++++++++++++++++
[testng] java.lang.NullPointerException
[testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:418)
[testng] at com.mydomain.convotest.EmptyTest.testNothing(EmptyTest.java:10)
..
++++++++++++++++++++++++++++++ 

  was:

testng xml in build.xml
++++++++++++++++++++++++++++++
<testng outputdir="${basedir}/test-report" groups="SomeGroups">
                        <classfileset dir="classes" includes="**/*.class" />
                        <classpath path="${test.dir}" />
                        <classpath path="${embedded-ejb3.dir}" />
                        <classpath refid="build.classpath" />
</testng>
++++++++++++++++++++++++++++++

EmptyTest.java
++++++++++++++++++++++++++++++
public class EmptyTest extends SeamTest {

	@Test(groups = {"SomeGroups"})
	public void testNothing() throws Exception {
		new FacesRequest() {
			@Override
			protected void invokeApplication() throws Exception {
				assert true;
			}
		}.run();
	}

	@Test
	public void testNothingAgain() throws Exception {
		assert true;
	}
}
++++++++++++++++++++++++++++++

command:
++++++++++++++++++++++++++++++
ant test
++++++++++++++++++++++++++++++


Exception:
++++++++++++++++++++++++++++++
[testng] java.lang.NullPointerException
[testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:418)
[testng] at com.mydomain.convotest.EmptyTest.testNothing(EmptyTest.java:10)
..
++++++++++++++++++++++++++++++ 

         Assignee: Pete Muir

> Unable to use TestNG groups with SeamTest
> -----------------------------------------
>
>                 Key: JBSEAM-1371
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1371
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Test Harness
>    Affects Versions: 1.2.1.GA
>            Reporter: Samuel Mendenhall
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 2.1.0.GA
>
>
> testng xml in build.xml
> ++++++++++++++++++++++++++++++
> <testng outputdir="${basedir}/test-report" groups="SomeGroups">
>                         <classfileset dir="classes" includes="**/*.class" />
>                         <classpath path="${test.dir}" />
>                         <classpath path="${embedded-ejb3.dir}" />
>                         <classpath refid="build.classpath" />
> </testng>
> ++++++++++++++++++++++++++++++
> EmptyTest.java
> ++++++++++++++++++++++++++++++
> public class EmptyTest extends SeamTest {
> 	@Test(groups = {"SomeGroups"})
> 	public void testNothing() throws Exception {
> 		new FacesRequest() {
> 			@Override
> 			protected void invokeApplication() throws Exception {
> 				assert true;
> 			}
> 		}.run();
> 	}
> 	@Test
> 	public void testNothingAgain() throws Exception {
> 		assert true;
> 	}
> }
> ++++++++++++++++++++++++++++++
> command:
> ++++++++++++++++++++++++++++++
> ant test
> ++++++++++++++++++++++++++++++
> Exception:
> ++++++++++++++++++++++++++++++
> [testng] java.lang.NullPointerException
> [testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:418)
> [testng] at com.mydomain.convotest.EmptyTest.testNothing(EmptyTest.java:10)
> ..
> ++++++++++++++++++++++++++++++ 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list