continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Drolshammer <drols...@idi.ntnu.no>
Subject JUnit tests in intellij
Date Mon, 23 Jul 2007 20:40:19 GMT
Hi!
I'm having problems running junit tests in IntelliJ. Almost all tests 
fail in IntelliJ, while only three fail when run in console with mvn 
-Denv=test test.

Is there anything special I need to setup to get this to work?
(Junit tests run cleanly in another project...)

I'd really appreciate some help here, developing without junit support 
in the IDE is not very enticing.


The error message below is output to the intellij console for each test.


org.jpox.metadata.InvalidMetaDataException: Error in MetaData for field 
"projectGroup" in class "Project" : this is declared as 
org.apache.maven.continuum.model.project.ProjectGroup with 
"persistence-modifier=none" yet has either "default-fetch-group=true" or 
"primary-key=true" specified! These should be false.
	at 
org.jpox.metadata.AbstractPropertyMetaData.populate(AbstractPropertyMetaData.java:820)
	at 
org.jpox.metadata.ClassMetaData.populatePropertyMetaData(ClassMetaData.java:434)
	at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:251)
	at 
org.jpox.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:1060)
	at 
org.jpox.metadata.JDOMetaDataManager.loadMetaDataForClass(JDOMetaDataManager.java:608)
	at 
org.jpox.metadata.JDOMetaDataManager.getMetaDataForClassInternal(JDOMetaDataManager.java:313)
	at 
org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:377)
	at 
org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:348)
	at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.getReferencedClasses(RDBMSManager.java:2881)
	at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTables(RDBMSManager.java:2795)
	at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate(RDBMSManager.java:3309)
	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManager.java:2554)
	at 
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager.java:2406)
	at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:821)
	at org.jpox.SchemaTool.createSchemaTables(SchemaTool.java:344)
	at 
org.apache.maven.continuum.AbstractContinuumTest.getStore(AbstractContinuumTest.java:167)
	at 
org.apache.maven.continuum.AbstractContinuumTest.setUp(AbstractContinuumTest.java:65)
	at 
org.apache.maven.continuum.buildcontroller.DefaultBuildControllerTest.setUp(DefaultBuildControllerTest.java:48)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)



-- 
Regards
Erik Drolshammer

Mime
View raw message