Hi Chuck,
On 10/08/2010, at 9:06 AM, Chuck Hill wrote:
> You need to add dir to the junit task. e.g.
>
> <junit dir="${project.working.directory}" ...
>
> Where the directory depends on the project type:
>
> <!-- Initialize properties that depend on build type (build or install)
> with values unique to applications -->
> <target name="set_application_build_properties" depends="load.properties"
> if="is.wo.app" >
> <property name="build.product.dir"
> value="${dest.dir}${file.separator}${build.app.name}.woa"/>
> <property name="installed.product.dir"
> value="${install.dir}${file.separator}${build.app.name}.woa"/>
> <property name="project.working.directory"
> value="${build.product.dir}"/>
> <property name="project.java.dir"
> value="${build.product.dir}${file.separator}Contents${file.separator}Resources${file.separator}Java"/>
>
> </target>
>
>
> <!-- Initialize properties that depend on build type (build or install)
> with values unique to frameworks -->
> <target name="set_framework_build_properties" depends="load.properties"
> if="is.wo.framework" >
> <property name="build.product.dir"
> value="${dest.dir}${file.separator}${project.name}.framework"/>
> <property name="installed.product.dir"
> value="${install.dir}${file.separator}${project.name}.framework"/>
> <!-- Use the installed location as that will be populated for regular
> and install builds -->
> <property name="project.working.directory"
> value="${install.dir}${file.separator}${project.name}.framework${file.separator}Resources${file.separator}Java"/>
> <property name="project.java.dir"
> value="${project.working.directory}"/>
> </target>
I've hard-coded it in there for now:
<junit haltonfailure="false"
dir="dist/PBFModels.framework/Resources/Java"
but it makes no difference. I'm still getting this:
[junit] Testcase:
net.logicsquad.pbf.tests.model.bookings.ClinicalDetailsTest: Caused an
ERROR
[junit] Attempt to insert null into an
com.webobjects.foundation.NSMutableArray.
[junit] java.lang.IllegalArgumentException: Attempt to insert null into an
com.webobjects.foundation.NSMutableArray.
[junit] at
com.webobjects.foundation.NSMutableArray.addObject(NSMutableArray.java:165)
[junit] at
com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:700)
[junit] at
com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)
[junit] at
com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333)
[junit] at
net.logicsquad.webobjects.core.LSEOModelUtils.setUpDatabaseConnectionForModel(Unknown
Source)
[junit] at net.logicsquad.pbf.tests.model.ModelTest.setUp(Unknown
Source)
[junit] at
net.logicsquad.pbf.tests.model.bookings.BookingsModelTest.setUp(Unknown Source)
--
Paul.
http://logicsquad.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]