I am trying to follow the instructions in the QuickStart and facing issues
in mvn test-compile mentioned in 'Create a DAO Interface and implementation'
at http://appfuse.org/display/APF/Using+Hibernate. Below are the errors I am
getting. It's not able to find the @Test and @ExpectedException. I searched
the archive but did not find that this topic has been discussed previously.
Any help is appreciated.

 

====

[INFO] [compiler:testCompile {execution: default-testCompile}]

[INFO] Compiling 1 source file to
D:\Work\Downloads\TOTAL\Source\myproject1\targ

et\test-classes

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Compilation failure

 

D:\Work\Downloads\TOTAL\Source\myproject1\src\test\java\org\appfuse\tutorial
\dao

\PersonDaoTest.java:[15,5] cannot find symbol

symbol  : class Test

location: class org.appfuse.tutorial.dao.PersonDaoTest

 

D:\Work\Downloads\TOTAL\Source\myproject1\src\test\java\org\appfuse\tutorial
\dao

\PersonDaoTest.java:[21,5] cannot find symbol

symbol  : class Test

location: class org.appfuse.tutorial.dao.PersonDaoTest

 

D:\Work\Downloads\TOTAL\Source\myproject1\src\test\java\org\appfuse\tutorial
\dao

\PersonDaoTest.java:[22,5] cannot find symbol

symbol  : class ExpectedException

location: class org.appfuse.tutorial.dao.PersonDaoTest

 

 

[INFO]
------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 7 seconds

[INFO] Finished at: Tue Dec 01 14:20:11 IST 2009

[INFO] Final Memory: 30M/54M

[INFO]
------------------------------------------------------------------------

D:\Work\Downloads\TOTAL\Source\myproject1>

 

 


Disclaimer:
This e-mail may contain Privileged/Confidential information and is intended 
only for the individual(s) named. Any review, retransmission, dissemination or 
other use of, or taking of any action in reliance upon this information by 
persons or entities other than the intended recipient is prohibited. Please 
notify the sender, if you have received this e-mail by mistake and delete it 
from your system. Information in this message that does not relate to the 
official business of the company shall be understood as neither given nor 
endorsed by it. E-mail transmission cannot be guaranteed to be secure or 
error-free. The sender does not accept liability for any errors or omissions in 
the contents of this message which arise as a result of e-mail transmission. If 
verification is required please request a hard-copy version. Visit us at 
http://www.harbingergroup.com/

Reply via email to