Fix failing tests due to required Pool bean definitions as of SD(G) Lovelace-RC1.
This commit is contained in:
@@ -26,6 +26,7 @@ import org.junit.Test;
|
||||
|
||||
import org.apache.geode.cache.RegionShortcut;
|
||||
import org.apache.geode.cache.client.ClientRegionShortcut;
|
||||
import org.apache.geode.cache.client.Pool;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
@@ -173,6 +174,16 @@ public class ConfigurerBasedGemFireHttpSessionConfigurationIntegrationTests {
|
||||
)
|
||||
static class TestConfiguration {
|
||||
|
||||
@Bean("Car")
|
||||
Pool mockCarPool() {
|
||||
return mock(Pool.class);
|
||||
}
|
||||
|
||||
@Bean("Dead")
|
||||
Pool mockDeadPool() {
|
||||
return mock(Pool.class);
|
||||
}
|
||||
|
||||
@Bean("TestSessionSerializer")
|
||||
Object testSessionSerializer() {
|
||||
return mock(SessionSerializer.class);
|
||||
|
||||
@@ -26,6 +26,7 @@ import org.junit.Test;
|
||||
|
||||
import org.apache.geode.cache.RegionShortcut;
|
||||
import org.apache.geode.cache.client.ClientRegionShortcut;
|
||||
import org.apache.geode.cache.client.Pool;
|
||||
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
||||
@@ -159,6 +160,16 @@ public class PropertyBasedGemFireHttpSessionConfigurationIntegrationTests {
|
||||
)
|
||||
static class TestConfiguration {
|
||||
|
||||
@Bean("Dead")
|
||||
Pool mockDeadPool() {
|
||||
return mock(Pool.class);
|
||||
}
|
||||
|
||||
@Bean("Swimming")
|
||||
Pool mockSwimmingPool() {
|
||||
return mock(Pool.class);
|
||||
}
|
||||
|
||||
@Bean("MockSessionSerializer")
|
||||
Object mockSessionSerializer() {
|
||||
return mock(SessionSerializer.class);
|
||||
|
||||
Reference in New Issue
Block a user