Testcase: testAdd(nl.inpact.cms.content.util.UserRoleActionLogTest): Caused an ERROR
null
junitx.ddtunit.data.DDTTestDataException
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:125)
at junitx.ddtunit.data.DataRepository.get(DataRepository.java:107)
at junitx.ddtunit.DDTTestCase.initTestData(DDTTestCase.java:412)
at nl.inpact.cms.content.util.UserRoleActionLogTest.initContext(UserRoleActionLogTest.java:17)
at junitx.ddtunit.DDTTestCase.runBare(DDTTestCase.java:159)
at junitx.ddtunit.DDTTestResult$1.protect(DDTTestResult.java:181)
at junitx.ddtunit.DDTTestResult.runProtected(DDTTestResult.java:199)
at junitx.ddtunit.DDTTestResult.run(DDTTestResult.java:185)
at junitx.ddtunit.DDTTestCase.run(DDTTestCase.java:137)
Caused by: java.lang.NullPointerException
at junitx.ddtunit.data.processing.parser.SAXValidator.<init>(SAXValidator.java:116)
at junitx.ddtunit.data.processing.parser.ParserImpl.parse(ParserImpl.java:165)
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:118)
... 12 more
after setting
maven.junit.fork=no
Testsuite: nl.inpact.cms.content.util.UserRoleActionLogTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.237 sec
Testcase: testAdd(nl.inpact.cms.content.util.UserRoleActionLogTest): Caused an ERROR
null
junitx.ddtunit.data.DDTTestDataException
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:125)
at junitx.ddtunit.data.DataRepository.get(DataRepository.java:107)
at junitx.ddtunit.DDTTestCase.initTestData(DDTTestCase.java:412)
at nl.inpact.cms.content.util.UserRoleActionLogTest.initContext(UserRoleActionLogTest.java:17)
at junitx.ddtunit.DDTTestCase.runBare(DDTTestCase.java:159)
at junitx.ddtunit.DDTTestResult$1.protect(DDTTestResult.java:181)
at junitx.ddtunit.DDTTestResult.runProtected(DDTTestResult.java:199)
at junitx.ddtunit.DDTTestResult.run(DDTTestResult.java:185)
at junitx.ddtunit.DDTTestCase.run(DDTTestCase.java:137)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.NullPointerException
at junitx.ddtunit.data.processing.parser.SAXValidator.<init>(SAXValidator.java:116)
at junitx.ddtunit.data.processing.parser.ParserImpl.parse(ParserImpl.java:165)
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:118)
... 36 more
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Everything works fine when used in a 3.1 Eclikpse environment.
Running the test from a maven test:test goal results in a failure.
What are the settings for xerxes classpath settings in maven test ?
When using
maven.junit.fork=yes
Testsuite: nl.inpact.cms.content.util.UserRoleActionLogTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.923 sec
Testcase: testAdd(nl.inpact.cms.content.util.UserRoleActionLogTest): Caused an ERROR
null
junitx.ddtunit.data.DDTTestDataException
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:125)
at junitx.ddtunit.data.DataRepository.get(DataRepository.java:107)
at junitx.ddtunit.DDTTestCase.initTestData(DDTTestCase.java:412)
at nl.inpact.cms.content.util.UserRoleActionLogTest.initContext(UserRoleActionLogTest.java:17)
at junitx.ddtunit.DDTTestCase.runBare(DDTTestCase.java:159)
at junitx.ddtunit.DDTTestResult$1.protect(DDTTestResult.java:181)
at junitx.ddtunit.DDTTestResult.runProtected(DDTTestResult.java:199)
at junitx.ddtunit.DDTTestResult.run(DDTTestResult.java:185)
at junitx.ddtunit.DDTTestCase.run(DDTTestCase.java:137)
Caused by: java.lang.NullPointerException
at junitx.ddtunit.data.processing.parser.SAXValidator.<init>(SAXValidator.java:116)
at junitx.ddtunit.data.processing.parser.ParserImpl.parse(ParserImpl.java:165)
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:118)
... 12 more
after setting
maven.junit.fork=no
Testsuite: nl.inpact.cms.content.util.UserRoleActionLogTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.237 sec
Testcase: testAdd(nl.inpact.cms.content.util.UserRoleActionLogTest): Caused an ERROR
null
junitx.ddtunit.data.DDTTestDataException
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:125)
at junitx.ddtunit.data.DataRepository.get(DataRepository.java:107)
at junitx.ddtunit.DDTTestCase.initTestData(DDTTestCase.java:412)
at nl.inpact.cms.content.util.UserRoleActionLogTest.initContext(UserRoleActionLogTest.java:17)
at junitx.ddtunit.DDTTestCase.runBare(DDTTestCase.java:159)
at junitx.ddtunit.DDTTestResult$1.protect(DDTTestResult.java:181)
at junitx.ddtunit.DDTTestResult.runProtected(DDTTestResult.java:199)
at junitx.ddtunit.DDTTestResult.run(DDTTestResult.java:185)
at junitx.ddtunit.DDTTestCase.run(DDTTestCase.java:137)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.NullPointerException
at junitx.ddtunit.data.processing.parser.SAXValidator.<init>(SAXValidator.java:116)
at junitx.ddtunit.data.processing.parser.ParserImpl.parse(ParserImpl.java:165)
at junitx.ddtunit.data.DataRepository.restore(DataRepository.java:118)
... 36 more
Problem fixed in cvs head. - Sources are available as daily snapshot from homepage (upper right)
Let me know if this fixes your problem.
By the way if you are intersested in special features let me know. - I am very interseted in the different application fields of datadriven testing.
regards
Jrg Gellien
Hi Frank,
just found the bug.
I notify asap cvs head is fixed.
regards
Jrg Gellien