What are the errors from your tests? Look in target/surefire-reports
for *.txt files or use "mvn test -Dsurefire.useFile=false".

Matt

On 11/2/07, rfusaro <[EMAIL PROTECTED]> wrote:
>
> I have changed the directory structure of the archetype appfuse-modular-jsf
> so that I have 3 projects to bring into eclipse for doing maven builds. I
> have created a parent pom project at the same directory level as the core
> and the web projects. Now the hibernate and dao test report errors.
>
> In the parent pom I changed the modules section to reflect that they were on
> the same directory level.
>     <modules>
>         <module>../kdoccore</module>
>         <module>../contactsweb</module>
>     </modules>
>
> In the web and core poms I changed it to the following:
>     <parent>
>         <groupId>gov.ks.doc.contacts</groupId>
>         <artifactId>contactsbuild</artifactId>
>         <version>1.0-SNAPSHOT</version>
>         <relativePath>../contactsbuild/pom.xml</relativePath>
>     </parent>
>
> When I run mvn package or test the following tests each report an error.
>
> Tests in error:
>
> testColumnMapping(gov.ks.doc.contacts.dao.hibernate.HibernateConfigurationTest)
>   testGetRoles(gov.ks.doc.contacts.dao.LookupDaoTest)
>   testGetUserInvalid(gov.ks.doc.contacts.dao.UserDaoTest)
>   testGetUser(gov.ks.doc.contacts.dao.UserDaoTest)
>   testUpdateUser(gov.ks.doc.contacts.dao.UserDaoTest)
>   testAddUserRole(gov.ks.doc.contacts.dao.UserDaoTest)
>   testAddAndRemoveUser(gov.ks.doc.contacts.dao.UserDaoTest)
>   testUserExists(gov.ks.doc.contacts.dao.UserDaoTest)
>   testUserNotExists(gov.ks.doc.contacts.dao.UserDaoTest)
>   testCRUD(gov.ks.doc.contacts.dao.UniversalDaoTest)
>   testGetRoleInvalid(gov.ks.doc.contacts.dao.RoleDaoTest)
>   testGetRole(gov.ks.doc.contacts.dao.RoleDaoTest)
>   testUpdateRole(gov.ks.doc.contacts.dao.RoleDaoTest)
>   testAddAndRemoveRole(gov.ks.doc.contacts.dao.RoleDaoTest)
>
> When I put the core and web projects back under the parent pom directory the
> tests work.
>
> I want to be able to deploy the web project to tomcat from eclipse using
> maven. It's my understanding that eclipse can not correctly identify a sub
> project as a tomcat project.
>
> What do I need to do so that these tests work. The following is an example
> of the messages maven prints out for that test.
>
> Running gov.ks.doc.contacts.dao.hibernate.HibernateConfigurationTest
> INFO - AbstractSingleSpringContextTests.loadContextLocations(177) | Loading
> context for locations:
> classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/application
> Context*.xml
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.328 sec
> <<< FAILURE!
>
> Thanks in advance for any help .... Rick
> --
> View this message in context: 
> http://www.nabble.com/Archetype-appfuse-modular-jsf---test-HibernateConfigurationTest-reports-error-tf4737408s2369.html#a13547547
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to