use of org.eclipse.core.runtime.FileLocator in project powermock by powermock.
the class PrepareForTestSignedTest method shouldBeAbleMockSignedClasses.
@Test
public void shouldBeAbleMockSignedClasses() {
FileLocator fileLocator = mock(FileLocator.class);
mockStatic(SomeClassUseSignedClasses.class);
when(SomeClassUseSignedClasses.getFileLocator()).thenReturn(fileLocator);
assertThat(SomeClassUseSignedClasses.getFileLocator()).isNotNull();
}
Aggregations