Skip to content

Commit cefcd2a

Browse files
committed
ci: simplify LogCacheTest
1 parent 2eb1010 commit cefcd2a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

integration-test/src/test/java/org/cloudfoundry/logcache/v1/LogCacheTest.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,27 @@
2929
import org.cloudfoundry.ApplicationUtils;
3030
import org.cloudfoundry.CloudFoundryVersion;
3131
import org.cloudfoundry.IfCloudFoundryVersion;
32+
import org.junit.jupiter.api.BeforeEach;
3233
import org.junit.jupiter.api.Disabled;
3334
import org.junit.jupiter.api.Test;
34-
import org.springframework.beans.factory.InitializingBean;
3535
import org.springframework.beans.factory.annotation.Autowired;
3636
import reactor.core.publisher.Mono;
3737
import reactor.test.StepVerifier;
3838

3939
@IfCloudFoundryVersion(greaterThanOrEqualTo = CloudFoundryVersion.PCF_2_9)
40-
public class LogCacheTest extends AbstractIntegrationTest implements InitializingBean {
40+
public class LogCacheTest extends AbstractIntegrationTest {
4141

4242
@Autowired LogCacheClient logCacheClient;
4343

44-
45-
@Autowired private Mono<ApplicationUtils.ApplicationMetadata> testLogCacheApp;
46-
4744
private ApplicationUtils.ApplicationMetadata testLogCacheAppMetadata;
4845

4946
@Autowired private TestLogCacheEndpoints testLogCacheEndpoints;
5047

5148
private final Random random = new SecureRandom();
5249

53-
@Override
54-
public void afterPropertiesSet() {
55-
this.testLogCacheAppMetadata = this.testLogCacheApp.block();
50+
@BeforeEach
51+
void setUp(@Autowired Mono<ApplicationUtils.ApplicationMetadata> testLogCacheApp) {
52+
this.testLogCacheAppMetadata = testLogCacheApp.block();
5653
}
5754

5855
@Test

0 commit comments

Comments
 (0)