This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206783

Summary: Factor Ant support out of org.netbeans.modules.junit
Product: java Reporter: Jesse Glick <jglick>
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal CC: mjanicek, mkleint
Priority: P3 Keywords: ARCH
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 166379, 206441    

Description Jesse Glick 2011-12-29 13:05:28 UTC
Investigating bug #206441 I found that maven.junit had to simply copy numerous node classes from junit, with the predictable subtle differences in behavior. The reason is that org.netbeans.modules.junit.output hardcodes support for Ant sessions but also includes the standard test node implementations, tied to the Ant implementation. I consider this an architectural defect.

You need to make JUnitTestRunnerNodeFactory into some kind of friend API that maven.junit can reuse, so that it need only supply JUnitOutputProcessorFactory (+ JUnitOutputListenerProvider) and perhaps a few minor customizations; then factor JUnitAntLogger and related classes in org.netbeans.modules.junit.output, plus all of org.netbeans.modules.junit.output.antutils, into a new module junit.ant (removing the o.apache.tools.ant.module dep from junit itself).

This will also be useful for permitting an alternate JavaRunner.QUICK_TEST impl based on extexecution rather than Ant.
Comment 1 Theofanis Oikonomou 2015-09-17 15:03:51 UTC
This should be more or less be fixed by http://hg.netbeans.org/main-silver/rev/a7f1d7823bf6. So closing this one. Thank you