Skip to content

Commit b3d3375

Browse files
committed
Remove outdated FIXMEs from tests
Closes gh-19782
1 parent c85918b commit b3d3375

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/reactive/ReactiveCloudFoundrySecurityServiceTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ public void getUaaUrlShouldCallCloudControllerInfoOnlyOnce() throws Exception {
204204
});
205205
StepVerifier.create(this.securityService.getUaaUrl())
206206
.consumeNextWith((uaaUrl) -> assertThat(uaaUrl).isEqualTo(UAA_URL)).expectComplete().verify();
207-
// this.securityService.getUaaUrl().block(); //FIXME subscribe again to check that
208-
// it isn't called again
209207
expectRequest((request) -> assertThat(request.getPath()).isEqualTo(CLOUD_CONTROLLER + "/info"));
210208
expectRequestCount(1);
211209
}

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointAutoConfigurationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public void runShouldHaveEndpointBean() {
4242

4343
@Test
4444
public void runShouldHaveEndpointBeanEvenIfDefaultIsDisabled() {
45-
// FIXME
4645
this.contextRunner.withPropertyValues("management.endpoint.default.enabled:false")
4746
.run((context) -> assertThat(context).hasSingleBean(InfoEndpoint.class));
4847
}

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/jmx/annotation/JmxEndpointDiscovererTests.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ public void getEndpointsShouldDiscoverStandardEndpoints() {
7979
assertThat(getSomething.getDescription()).isEqualTo("Invoke getSomething for endpoint test");
8080
assertThat(getSomething.getOutputType()).isEqualTo(String.class);
8181
assertThat(getSomething.getParameters()).hasSize(1);
82-
hasDefaultParameter(getSomething, 0, String.class);
82+
assertThat(getSomething.getParameters().get(0).getType()).isEqualTo(String.class);
8383
JmxOperation update = operationByName.get("update");
8484
assertThat(update.getDescription()).isEqualTo("Invoke update for endpoint test");
8585
assertThat(update.getOutputType()).isEqualTo(Void.TYPE);
8686
assertThat(update.getParameters()).hasSize(2);
87-
hasDefaultParameter(update, 0, String.class);
88-
hasDefaultParameter(update, 1, String.class);
87+
assertThat(update.getParameters().get(0).getType()).isEqualTo(String.class);
88+
assertThat(update.getParameters().get(1).getType()).isEqualTo(String.class);
8989
JmxOperation deleteSomething = operationByName.get("deleteSomething");
9090
assertThat(deleteSomething.getDescription()).isEqualTo("Invoke deleteSomething for endpoint test");
9191
assertThat(deleteSomething.getOutputType()).isEqualTo(Void.TYPE);
9292
assertThat(deleteSomething.getParameters()).hasSize(1);
93-
hasDefaultParameter(deleteSomething, 0, String.class);
93+
assertThat(deleteSomething.getParameters().get(0).getType()).isEqualTo(String.class);
9494
});
9595
}
9696

@@ -239,12 +239,6 @@ private void hasDocumentedParameter(JmxOperation operation, int index, String na
239239
assertThat(parameter.getDescription()).isEqualTo(description);
240240
}
241241

242-
// FIXME rename
243-
private void hasDefaultParameter(JmxOperation operation, int index, Class<?> type) {
244-
JmxOperationParameter parameter = operation.getParameters().get(index);
245-
assertThat(parameter.getType()).isEqualTo(type);
246-
}
247-
248242
private Map<EndpointId, ExposableJmxEndpoint> discover(JmxEndpointDiscoverer discoverer) {
249243
Map<EndpointId, ExposableJmxEndpoint> byId = new HashMap<>();
250244
discoverer.getEndpoints().forEach((endpoint) -> byId.put(endpoint.getEndpointId(), endpoint));

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/HikariDataSourceConfigurationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public void testDataSourcePropertiesOverridden() {
5555
assertThat(ds.getJdbcUrl()).isEqualTo("jdbc:foo//bar/spam");
5656
assertThat(ds.getMaxLifetime()).isEqualTo(1234);
5757
});
58-
// TODO: test JDBC4 isValid()
5958
}
6059

6160
@Test

spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/rule/OutputCapture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class OutputCapture implements TestRule {
5151
@Override
5252
public Statement apply(Statement base, Description description) {
5353
return new Statement() {
54+
5455
@Override
5556
public void evaluate() throws Throwable {
5657
captureOutput();
@@ -69,11 +70,11 @@ public void evaluate() throws Throwable {
6970
}
7071
}
7172
}
73+
7274
};
7375
}
7476

7577
protected void captureOutput() {
76-
// FIXME AnsiOutput.setEnabled(Enabled.NEVER);
7778
this.copy = new ByteArrayOutputStream();
7879
this.captureOut = new CaptureOutputStream(System.out, this.copy);
7980
this.captureErr = new CaptureOutputStream(System.err, this.copy);
@@ -82,7 +83,6 @@ protected void captureOutput() {
8283
}
8384

8485
protected void releaseOutput() {
85-
// FIXME AnsiOutput.setEnabled(Enabled.DETECT);
8686
System.setOut(this.captureOut.getOriginal());
8787
System.setErr(this.captureErr.getOriginal());
8888
this.copy = null;

0 commit comments

Comments
 (0)