Unit testing ObjC/Java classes
Unit testing ObjC/Java classes
- Subject: Unit testing ObjC/Java classes
- From: "Andres Valenciano" <email@hidden>
- Date: Mon, 3 Apr 2006 17:56:02 -0600
Hi,
The instructions in http://developer.apple.com/tools/unittest.html
work great for testing ObjC code, but I am having a "little" trouble
trying to test an ObjC class that uses a Cocoa/Java class.
My steps:
1. Without adding the .jar files the Test target build result is:
"Build failed (1 error)". With no detail messages.
2. Modifying the Info.plist for the Test target I added the same keys
that the application target has:
<key>NSJavaNeeded</key>
<string>YES</string>
<key>NSJavaPath</key>
<array>
<string>myjar1.jar</string>
<string>myjar2.jar</string>
</array>
<key>NSJavaRoot</key>
<string>Contents/Resources</string>
And added the two jars to the "Copy Bundle Resources" group for the Test target.
Result: the same,"Build failed (1 error)". With no detail messages.
I must be missing some step here. Any suggestion would be appreciated, thanks.
Andres
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden