SSH整合开发的时候 好像出了个单元测试错误,求救,表都创建不出来,求大神!!! EmployeeTest.setUpBeforeClass (1)
Unrooted Tests
initializationError(org.junit.runner.manipulation.Filter) java.lang.Exception: No tests found matching Method setUpBeforeClass(junit.test.EmployeeTest) from org.junit.internal.requests.ClassRequest@bdab91
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:37)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestMethodReference.<init>(JUnit4TestMethodReference.java:25)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:54)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
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)
sshjunit单元测试
------解决方案-------------------- 方法上没有加@Test? ------解决方案-------------------- “Could not find a getter for grender in class cn.totyu.bean.Employee”
这里都告诉你了啊,缺少get方法
------解决方案-------------------- 方法看看。。。。 ------解决方案-------------------- Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for grender in class cn.totyu.bean.Employee
在类Employee中,你没有为grender设置get方法,或者你设置了,没有符合getter方法的规范。 ------解决方案-------------------- Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for grender in class cn.totyu.bean.Employee