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 - Factor Ant support out of org.netbeans.modules.junit
Summary: Factor Ant support out of org.netbeans.modules.junit
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: ARCH
Depends on:
Blocks: 166379 206441
  Show dependency tree
 
Reported: 2011-12-29 13:05 UTC by Jesse Glick
Modified: 2015-09-17 15:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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