on 07-05-2004 4:02 PM
I would like to test my classes of my Development components with JUnit. Unfortunately I cant import the junit.jar in my DC project. So is there any other possibility to use JUnit with DCs?
We were able to import external jars by doing the following.
Create a new java DC project.
Expand all the contents of the jar file (winzip) into a folder.
In DC MetaData, set add this folder to packages.
Create a public part.
Select 'Folder Tree' and bind it to the folder that was expanded.
This essentially recreates the jar file for use. Reference it with your other DCs. In the case of the jUnit jar, set it to be a compilation only public part ( not assembly ) and it won't get packaged.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I would like to test my classes of my Development
> components with JUnit. Unfortunately I cant import
> the junit.jar in my DC project.
I have the same question. Although I can manage to add a junit jar file on the Java perspective, "Package Explorer" view and use "organize imports" as expected, when building the DC (on view "Java DC explorer") the compiler cannot find the required lib I just added.
Am I stupid or is the program?
Regards
Klaus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.