ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23935] New: - Timeout on <junit> task -> no ant properties in custom resultformatter
Date Mon, 20 Oct 2003 12:25:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23935>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23935

Timeout on <junit> task -> no ant properties in custom resultformatter

           Summary: Timeout on <junit> task -> no ant properties in custom
                    resultformatter
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: wander@xs4all.nl


<junit fork="yes" timeout="1">
  [...]
  <formatter classname="org.example.MyResultFormatter"/>
  [...]
</junit>

---------------------------------

package org.example;

public class MyResultFormatter implements JUnitResultFormatter {
  [...]
  public void startTestSuite(JUnitTest suite) throws BuildException {
    //Get the ant properties
    Properties antProperties = suite.getProperties();
    String foo = antProperties.getProperty("foo");
    [...]
  }
  [...]
}

Results in a NullPointerException.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message