having problems trying to run by unit test with Ant, my test class uses Jmock;
@RunWith(JMock.class)
and annotations to identify each test method. When i attempt to build with ant (1.7.1) i get a
[junit] No tests found in MyTestClass 开发者_开发知识库
[junit] junit.framework.AssertionFailedError: No tests found
Any suggestions?
What version of JUnit are you using? It looks like 3.8 to me (although I could be mistaken) but the package structure for JUnit 4.x is: org.junit and not junit.framework
The @RunWith runner as defined by the JMock guys is only valid with JUnit 4.x
If you're using JUnit 3, you should inherit from MockObjectTestCase instead of using the Runner
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论