JAVA Unit Test Mock framework
EasyMock
TestClassA {
void setup() {
//Create mock
ClassBeingMocked mock1 = EasyMock.createMock(ClassBeingMocked);
}
void testMethod() {
//Setup expectations
EasyMock.expect(mock1.getA...
原创
2018-10-30 15:23:40 ·
207 阅读 ·
0 评论