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.
Summary: | j2ee/ddapi test failures | ||
---|---|---|---|
Product: | javaee | Reporter: | Erno Mononen <emononen> |
Component: | EJB | Assignee: | Erno Mononen <emononen> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | TEST |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 93294 |
Description
Erno Mononen
2007-02-02 21:04:48 UTC
I'm sorry for so late answer. I found the problem. test/build.xml contains: <target name="init" depends="default.init"> <delete file="${basedir}/unit/data/web.xml"/> <delete file="${basedir}/unit/data/invalid/web.xml"/> <copy file="${basedir}/unit/data/web_org.xml" tofile="${basedir}/unit/data/web.xml"/> <copy file="${basedir}/unit/data/invalid/web_org.xml" tofile="${basedir}/unit/data/invalid/web.xml"/> </target> You depends on nbcvs structure, therefore it doesn't work. Please initialize temporary files in code of TestCases. You can you NbTestCase.getDataDir() to access to copy of unit/data or use NbTestCase.getWorkdir() to access to temporary files. The workdir is stored after test execution and you can see it in html result. Thanks for looking into this, should be fixed in trunk now. http://j2ee.netbeans.org/source/browse/j2ee/ddapi/test/build.xml?r1=1.2&r2=1.3 http://j2ee.netbeans.org/source/browse/j2ee/ddapi/test/unit/src/org/netbeans/ modules/j2ee/dd/api/web/DDApiTest.java?r1=1.5&r2=1.6 |