0 Replies Latest reply on Mar 15, 2006 5:40 AM by superfis

    Simple Seam app and TestNG problem

    superfis

      Hello everyone,

      It's my first post on this forum and I'm comming with question about how to configure TestNG to perform tests correctly. I've created almost the same folders, resources and libs arrangement as in Seam's examples and created one simple Seam statless bean and test for it.
      Every time I start tests I receive:


      [testng] Creating C:\Temp\eclipse-workspace\cinema\working-copy\test-output\All.html
      [testng] Creating C:\Temp\eclipse-workspace\cinema\working-copy\test-output\testng-failed.xml
      [testng] FAILED: testVersion
      [testng] java.lang.NullPointerException
      [testng] at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:159)
      [testng] at pl.squap.cinema.seam.ShowVersionTest.testVersion(ShowVersionTest.java:23)
      [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [testng] at java.lang.reflect.Method.invoke(Method.java:585)
      [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536)
      [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:400)
      [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:680)
      [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92)
      [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
      [testng] at org.testng.TestRunner.run(TestRunner.java:515)
      [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
      [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
      [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:693)
      [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:656)
      [testng] at org.testng.TestNG.run(TestNG.java:424)
      [testng] at org.testng.TestNG.privateMain(TestNG.java:783)
      [testng] at org.testng.TestNG.main(TestNG.java:725)


      Is there an obvious mistake I've made or it's not so simple?
      I'm beginning with Seam (ejb3 and MC also) thuse it's not so simple for me currently.

      Thanks,
      Slawek