use of io.javaoperatorsdk.operator.api.config.Version in project java-operator-sdk by java-operator-sdk.
the class CustomResourceSelectorTest method setUpResources.
@SuppressWarnings("unchecked")
@BeforeEach
void setUpResources() {
configurationService = spy(ConfigurationService.class);
when(configurationService.checkCRDAndValidateLocalModel()).thenReturn(false);
when(configurationService.getVersion()).thenReturn(new Version("1", "1", new Date()));
when(configurationService.getConfigurationFor(any(MyController.class))).thenReturn(new MyConfiguration(configurationService, null));
}
Aggregations