junit 사용중 다음과 같은 오류가 발생.
junit.framework.AssertionFailedError: No tests found in com.mydomain.TestJunit
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
테스트 메소드명은 test로 시작되어야 한다.
'Dev Story > dev' 카테고리의 다른 글
[java] Convert bytes, hex, hex string, string (0) | 2013.03.11 |
---|---|
[java] java.security.InvalidKeyException: Illegal key size or default parameters (0) | 2013.03.08 |
Web Stress Tool (0) | 2013.02.20 |
[postgresql] extension dblink (0) | 2013.02.16 |
[iBATIS] DTD 오류 내용 총정리 (0) | 2013.02.14 |