Without using PowerMockito and using Mockito-Core (version of mockito doesnt support with powermockito and i cannot change mockito version), How can i verify that a call to a static method have been made ?
try(mockedStatic<Property> mockedStatic = Mockito.mockStatic(Property.class)){
mockedStatic.when(
() ->
Property.getProperty("Config")).thenReturn(true);
injectMockedClass.mymethod(attribute) //The Actual Call
}
This is how i have mocked the Static Class. How can i verify the getProperty() method of static Property class was called?