Dear All:
While utilizing Junit task to run TestCase in ANT , occur following error , The Test Cases work fine While running in Eclipse as Junit Test .
Below are error trace and Ant task code:
error trace:
quote:
java 代码
- jtest:
- [junit] Running com.reyes.business.DefaultBookingServiceTest
- [junit] Testsuite: com.reyes.business.DefaultBookingServiceTest
- [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
- [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
- [junit] Null Test: Caused an ERROR
- [junit] com.reyes.business.DefaultBookingServiceTest
- [junit] java.lang.ClassNotFoundException: com.reyes.business.DefaultBookingServiceTest
- [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
- [junit] at java.security.AccessController.doPrivileged(Native Method)
- [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
- [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
- [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
- [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
- [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
- [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
- [junit] at java.lang.Class.forName0(Native Method)
- [junit] at java.lang.Class.forName(Class.java:247)
- [junit] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
- [junit] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
- [junit] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
- [junit] Test com.reyes.business.DefaultBookingServiceTest FAILED
ANT target code:
quote:
xml 代码
- <!---->-- =================================
- target: jtest
- ================================= -->
- <target name="jtest" depends="compile" description="--> description">
- <junit printsummary="on" fork="false" haltonfailure="false" failureproperty="tests.failed" showoutput="true">
- <classpath refid="master-classpath" />
- <formatter type="brief" usefile="false" />
- <batchtest>
- <fileset dir="${build.dir}">
- <include name="**/*Test.*" />
- <!---->fileset>
- <!---->batchtest>
- <!---->junit>
- <!---->target>
Thank you for anyone give me help or where to find the solution
分享到:
相关推荐
EB tester fault localization algorithm for combinational circuits by utilizing fault simulation and test pattern sequence for EB tester EB Tester Fault Localization Algorithm for Combinational ...
信息安全_数据安全_Use Case Development Utilizing a 安全对抗 移动安全 渗透测试 安全防护 业务风控
This ocx allows you to encrypt strings while utilizing a password shift method.
As consumers continue to demand more functionality in smaller, more energy efficient devices, power optimization rules a hardware designer’s life. It typically takes multiple iterations over weeks of...
In this fast-paced book on the Docker open standards platform for developing, packaging and running portable distributed applications, Deepak Vorhadiscusses how to build, ship and run applications on ...
Part of the beauty of Nmap is its ability to create IP packets from scratch and send them out utilizing unique methodologies to perform the above-mentioned types of scans and more. This book provides...
Disturbances that spread plant-wide in a chemical process pose challenges to maintenance staff. Connections within the plant and the presence of multiple causal paths mean it is not straightforward to...
discusses how to build, ship and run applications on any platform such as a PC, the cloud, data center or a virtual machine. He describes how to install and create Docker images. and the advantages ...
Evader Utilizing Underwater.pdf
Then he addresses the use of Docker in the Hadoop ecosystem with complete chapters on utilizing not only Hadoop, but Hive, HBase, Sqoop, Kafka, Solr and Spark., What You Will Learn, How to install a ...
discusses how to build, ship and run applications on any platform such as a PC, the cloud, data center or a virtual machine. He describes how to install and create Docker images. and the advantages ...
utilizing-autoruns-catch-malware
tested, student-centered methodology uses a strong focus on problem-solving and full-code examples to vividly demonstrate the how and why of applying programming concepts and utilizing C++ to work ...
Utilizing these patterns, architects, analysts, engineers, and managers can leverage decades of hard-earned knowledge to achieve far better results, far more quickly. <br>The authors carefully ...
Utilizing the classic pattern format, he explains each agile solution in its proper context, revealing why it works—and how to make the most of it. The pattern reference prepares you to Understand ...
Utilizing Mark Zack’s The Ultimate Python Quick start Guide - From Beginner to Expert (Hands on Projects, Machine Learning, Learn Coding Fast), you will be able to transcend yourself into: ...
On a Linux machine, one must simply invoke the script in a terminal, stating a site to test: motoma@rocksalt:/home/motoma$ python pyloris-3.0.py motomastyle.com On Mac OS X, one invokes PyLoris the ...
Android on x86: an Introduction to Optimizing for Intel® ... This book provides the most useful information to help you get the job done quickly while utilizing best practices.,解压密码 share.weimo.info
Utilizing your Native American Studies_2011.ppt
Utilizing DSP for IP Telephony Applications inMobile Terminals--etd