示例#1
0
 @Test
 public void testCallArgumentInstance() {
   File file = mock(File.class);
   ClassUnderTest underTest = new ClassUnderTest();
   PowerMockito.when(file.exists()).thenReturn(true);
   Assert.assertTrue(underTest.callArgumentInstance(file));
 }
 @Test
 public void testRem() {
   classUnderTest.setListener(mock);
   replay(mock);
   classUnderTest.removeDocument();
 }