You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rajas kumar <pr...@yahoo.com> on 2004/10/31 07:43:19 UTC

problem in unitest case reprot generation.

I am facing a problem while generating unit testcase reprots. While generating unittest case reports it generates unit test case report properly for the first file only. It generates 
null pointer exception for the other files. i need help in this issue.
 
<sourceDirectory>${basesrc}/src</sourceDirectory>
     
          <unitTestSourceDirectory>${basesrc}/test</unitTestSourceDirectory>
                <unitTest>
                   <includes>
                              <include>**/*.java</include> 
                              
                      </includes>
                                             
                        </unitTest>   
 
 
Its working fine: I am getting report for this file only all other files in this folder gives excpeion. 
 
Testsuite: com.cfm.pcm.core.logging.TestCFMLoggerForAccessTime
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.125 sec
Testcase: testWriteToAccessTimeLog(com.cfm.pcm.core.logging.TestCFMLoggerForAccessTime): FAILED
The. Functionality of creating number of AccessTime log files is failed expected:<SUCCESS> but was:<FAILED>
junit.framework.ComparisonFailure: The. Functionality of creating number of AccessTime log files is failed expected:<SUCCESS> but was:<FAILED>
 at com.cfm.pcm.core.logging.TestCFMLoggerForAccessTime.testWriteToAccessTimeLog(TestCFMLoggerForAccessTime.java:86)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
 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:78)
 at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99)
 at com.werken.werkz.Goal.fire(Goal.java:639)
 at com.werken.werkz.Goal.attain(Goal.java:575)
 at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
 at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
 at org.apache.maven.cli.App.doMain(App.java:466)
 at org.apache.maven.cli.App.main(App.java:1117)
 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)
 
 
 
Wrong result which i am getting. It working fine with jbuilder.
 
 
Testsuite: com.cfm.pcm.core.logging.TestCFMLoggerForDebugLog
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.157 sec
Testcase: testWriteToDebugLog(com.cfm.pcm.core.logging.TestCFMLoggerForDebugLog): Caused an ERROR
null
java.lang.NullPointerException
 at com.cfm.pcm.core.logging.TestCFMLoggerForDebugLog.testWriteToDebugLog(TestCFMLoggerForDebugLog.java:81)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
 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:78)
 at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99)
 at com.werken.werkz.Goal.fire(Goal.java:639)
 at com.werken.werkz.Goal.attain(Goal.java:575)
 at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
 at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
 at org.apache.maven.cli.App.doMain(App.java:466)
 at org.apache.maven.cli.App.main(App.java:1117)
 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)

 
 
 
 
 

		
---------------------------------
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.