This tutorial has been updated for 2.1. If you're using 2.0.x, please
look at previous revisions of the page or look at the PDF
documentation for your release number.
Matt
On Dec 1, 2009, at 3:53 AM, "Vikas Bansal"
<bans...@harbingergroup.com> wrote:
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. B
elow are the errors I am getting. It’s not able to find the @Test an
d @ExpectedException. I searched the archive but did not find that t
his 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, d
issemination or other use of, or taking of any action in reliance
upon this
information by persons or entities other than the intended recipient
is proh
ibited. Please notify the sender, if you have received this e-mail
by mistak
e 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 neithe
r given nor endorsed by it. E-mail transmission cannot be guaranteed
to be s
ecure 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/