@Test(expected = NullPointerException.class)
public void testEvaluateExceptionOnListener() throws Throwable {
TestClass2 testObject = new TestClass2();
Method testMethod = TestClass2.class.getMethod("test1");
listener.beforeTestSetUp(testObject, testMethod);
EasyMock.expectLastCall().andThrow(new NullPointerException());
EasyMockUnitils.replay();
new BeforeTestSetUpStatement(testObject, testMethod, listener, statement).evaluate();
}
BeforeTestSetUpStatementTest.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:unitils
作者:
评论列表
文章目录