Skip to content

Commit cf8b768

Browse files
committed
Merge branch 'fix-ci' into 2.x
2 parents 60e8cd1 + 87bd98d commit cf8b768

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

integration-test/src/test/java/org/cloudfoundry/uaa/ServerInformationTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
import reactor.test.StepVerifier;
2828

2929
import java.time.Duration;
30+
import java.util.function.Consumer;
31+
32+
import static org.assertj.core.api.Assertions.assertThat;
3033

3134
public final class ServerInformationTest extends AbstractIntegrationTest {
3235

@@ -81,11 +84,15 @@ public void getInfo() {
8184
.build())
8285
.map(response -> response.getLinks().getPassword())
8386
.as(StepVerifier::create)
84-
.expectNext("/forgot_password")
87+
.consumeNextWith(endsWithExpectation("/forgot_password"))
8588
.expectComplete()
8689
.verify(Duration.ofMinutes(5));
8790
}
8891

92+
private static Consumer<String> endsWithExpectation(String suffix) {
93+
return actual -> assertThat(actual).endsWith(suffix);
94+
}
95+
8996
private static Mono<String> getAuthenticationCode(UaaClient uaaClient, String clientId, String clientSecret, String password, String username) {
9097
return requestAuthenticationCode(uaaClient, clientId, clientSecret, password, username)
9198
.map(GetAutoLoginAuthenticationCodeResponse::getCode);

0 commit comments

Comments
 (0)