Fix failing tests.

This commit is contained in:
John Blum
2019-01-29 14:39:16 -08:00
parent 2e263257f2
commit fb6fc6c93c
3 changed files with 8 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ dependencies {
}
// Runtime Test dependency on Spring Cloud Services (SCS) to verify workaround to SCS problem!
testRuntime("io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry:2.0.3.RELEASE") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
// testRuntime("io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry:2.0.3.RELEASE") {
// exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
// }
}

View File

@@ -117,6 +117,9 @@ public class CacheNameAutoConfigurationIntegrationTests extends SpringBootApplic
@SpringBootApplication
@EnableGemFireMockObjects
@UseMemberName("MemberNameTest")
@ComponentScan(excludeFilters = {
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = AnnotationNameAttributeTestConfiguration.class)
})
static class MemberNameAttributeTestConfiguration { }
}

View File

@@ -166,6 +166,8 @@ public class VcapPropertySourceUnitTests {
verify(mockEnvironment, times(1)).getPropertySources();
verify(propertySources, times(1)).get(eq("vcap"));
verify(mockPropertySource, times(1)).getName();
verify(mockPropertySource, times(1))
.containsProperty(eq("vcap.application.name"));
verifyNoMoreInteractions(mockPropertySource);
}
}