Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 @Test
 public void testRem() {
   classUnderTest.setListener(mock);
   replay(mock);
   classUnderTest.removeDocument();
 }