[jboss-user] [JBoss Seam] - Question on SeamTest.Script

shogoganet do-not-reply at jboss.com
Sat Aug 19 05:46:37 EDT 2006


  | 7 public class RegistrationTest extends SeamTest {
  | 8
  | 9	@Test(groups = "function")
  | 10	public void testLogin() throws Exception {
  | 11
  | 12		new Script() {}.run();
  | 13	}
  | 14
  | 15}
  | 

It run it on the eclipse with testng plugin, the result is below:


  | java.lang.NullPointerException
  | 	at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:215)
  | 	at guangming.registration.RegisterTest.testLogin(RegisterTest.java:12)
  | 	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:585)
  | 	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
  | 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
  | 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
  | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
  | 	at org.testng.TestRunner.privateRun(TestRunner.java:687)
  | 	at org.testng.TestRunner.run(TestRunner.java:567)
  | 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:242)
  | 	at org.testng.SuiteRunner.run(SuiteRunner.java:148)
  | 	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
  | 	at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
  | 	at org.testng.TestNG.run(TestNG.java:613)
  | 	at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:85)
  | 	at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:127)
  | 

I need some body's help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966227#3966227

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966227



More information about the jboss-user mailing list