parent
62f5e44324
commit
43aee1bddd
|
@ -107,7 +107,7 @@ public class ArtifactoryService {
|
||||||
ResponseEntity<BuildInfoResponse> entity = this.restTemplate
|
ResponseEntity<BuildInfoResponse> entity = this.restTemplate
|
||||||
.getForEntity(BUILD_INFO_URL + buildName + "/" + buildNumber, BuildInfoResponse.class);
|
.getForEntity(BUILD_INFO_URL + buildName + "/" + buildNumber, BuildInfoResponse.class);
|
||||||
BuildInfoResponse.Status status = entity.getBody().getBuildInfo().getStatuses()[0];
|
BuildInfoResponse.Status status = entity.getBody().getBuildInfo().getStatuses()[0];
|
||||||
logger.debug("Reutned repository " + status.getRepository() + " expecting " + targetRepo);
|
logger.debug("Returned repository " + status.getRepository() + " expecting " + targetRepo);
|
||||||
return status.getRepository().equals(targetRepo);
|
return status.getRepository().equals(targetRepo);
|
||||||
}
|
}
|
||||||
catch (HttpClientErrorException ex) {
|
catch (HttpClientErrorException ex) {
|
||||||
|
|
|
@ -2972,7 +2972,7 @@ class ExampleIntegrationTests {
|
||||||
This will start up a docker container running Neo4j (if Docker is running locally) before any of the tests are run.
|
This will start up a docker container running Neo4j (if Docker is running locally) before any of the tests are run.
|
||||||
In most cases, you will need to configure the application using details from the running container, such as container IP or port.
|
In most cases, you will need to configure the application using details from the running container, such as container IP or port.
|
||||||
|
|
||||||
This can be done with a static `@DynamicPropertySource` method that allows adding adding dynamic property values to the Spring Environment.
|
This can be done with a static `@DynamicPropertySource` method that allows adding dynamic property values to the Spring Environment.
|
||||||
|
|
||||||
[source,java,indent=0,subs="verbatim,quotes,attributes"]
|
[source,java,indent=0,subs="verbatim,quotes,attributes"]
|
||||||
----
|
----
|
||||||
|
|
|
@ -136,7 +136,7 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doClose() {
|
protected void doClose() {
|
||||||
if (this.isActive()) {
|
if (isActive()) {
|
||||||
AvailabilityChangeEvent.publish(this, ReadinessState.REFUSING_TRAFFIC);
|
AvailabilityChangeEvent.publish(this, ReadinessState.REFUSING_TRAFFIC);
|
||||||
}
|
}
|
||||||
super.doClose();
|
super.doClose();
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doClose() {
|
protected void doClose() {
|
||||||
if (this.isActive()) {
|
if (isActive()) {
|
||||||
AvailabilityChangeEvent.publish(this, ReadinessState.REFUSING_TRAFFIC);
|
AvailabilityChangeEvent.publish(this, ReadinessState.REFUSING_TRAFFIC);
|
||||||
}
|
}
|
||||||
super.doClose();
|
super.doClose();
|
||||||
|
|
|
@ -105,7 +105,7 @@ class AvailabilityChangeEventTests {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
String getDescription() {
|
String getDescription() {
|
||||||
return "I have aslo been overridden";
|
return "I have also been overridden";
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue