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 124452 - enterprise/libs/xmlunit module misses junit classes
Summary: enterprise/libs/xmlunit module misses junit classes
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-26 10:40 UTC by Jaroslav Tulach
Modified: 2008-01-10 11:54 UTC (History)
1 user (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 Jaroslav Tulach 2007-12-26 10:40:31 UTC
If I run:
ant gen-sigtest -Dsigtest.jar=/home/jarda/sigtestdev.jar
in enterprise/libs/xmlunit (I can email sigtestdev.jar to everyone interested), I'll get:

  [sigtest] Found in total: 15340 classes
  [sigtest] Fatal error: class junit.framework.Assert not found
  [sigtest] Fatal error: class junit.framework.TestCase not found
  [sigtest] Selected by -Package: 41 classes
  [sigtest] Written to sigfile: 54 classes(and 3 inner classes)
  [sigtest] STATUS:Failed.2 errors

It seems to me that there should be separate libs/junit4 module which this one would depend on. Can that be fixed? 
Meanwhile I disabled the sigtest generation (enable as soon this issue is resolved):
enterprise/libs/xmlunit/nbproject/project.properties,v  <--  project.properties
new revision: 1.8; previous revision: 1.7
Comment 1 Vladimir Yaroslavskiy 2007-12-26 14:41:34 UTC
Could you please explain to me what is wrong?
Where is the problem if class junit.framework.Assert and
junit.framework.TestCase not found?
How can junit4 help in this case?
Comment 2 Jaroslav Tulach 2007-12-26 22:33:44 UTC
This module is unusable of its own. It needs junit4 or junit3 on classpath, otherwise its classes cannot be loaded. As 
the sigtest finds out.

Maybe its classes are never loaded!? However then it is questionable why it has public/friend packages. In such case 
remove them.

If the module is really used, then please find a way to set its classpath, so all its classes can be loaded. E.g. 
depend on lib/junit4, when it is created.
Comment 3 Vladimir Yaroslavskiy 2008-01-10 11:54:31 UTC
Fixed: library xmlunit has been removed.