I created modifications to  org.appfuse.dao.BaseDaoTestCase (Replaced
org.springframework.beans.BeanUtils with
org.apache.commons.beanutils.BeanUtils and fixed the 'populate' issue based
on http://www.mail-archive.com/[email protected]/msg04233.html) so
I can use a properties file in my tests.

When I compile and test my PersonDaoTest, my IDE refers to the class in
appfuse-hibernate-2.0-m5.jar which is in my local repository and is
referenced via the Maven2Dependencies library - hence failing my test. I
tried to follow Michael Horwitz - how to modify core classes but I could not
overide the Maven2Dependencies reference (I performed some various
replacements of the dependency exclusions of appfuse-hibernate artifactId in
my pom - but it made no difference)

I finally compiled my modified java file and manually replaced the .class
file in the appfuse-hibernate-2.0-m5.jar in the repository - and repeated
the process with the source jar. Only then I passed the test. However this
seems very cumbersome. I am sure there are other ways to control the
dependency and make MyEclipse and Maven 'see' the class I want it to, rather
than the .jar in the repository.

Does any body know how?
-- 
View this message in context: 
http://www.nabble.com/Appfuse2-appfuse-basic-struts-on-MyEclipse%3A-How-Can-I-modify-org.appfuse.dao.BaseDaoTestCase-tf4475085s2369.html#a12759520
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to