Search in sources :

Example 1 with Version

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));
}
Also used : Version(io.javaoperatorsdk.operator.api.config.Version) ConfigurationService(io.javaoperatorsdk.operator.api.config.ConfigurationService) Date(java.util.Date) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ConfigurationService (io.javaoperatorsdk.operator.api.config.ConfigurationService)1 Version (io.javaoperatorsdk.operator.api.config.Version)1 Date (java.util.Date)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1