|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2002-2018 the original author or authors.
|
|
|
+ * Copyright 2002-2019 the original author or authors.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,18 +16,17 @@
|
|
|
|
|
|
package org.springframework.security.oauth2.client.registration;
|
|
|
|
|
|
-import static org.assertj.core.api.Assertions.assertThat;
|
|
|
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
|
|
+import org.junit.Before;
|
|
|
+import org.junit.Test;
|
|
|
+import reactor.test.StepVerifier;
|
|
|
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
-import org.junit.Before;
|
|
|
-import org.junit.Test;
|
|
|
-
|
|
|
-import reactor.test.StepVerifier;
|
|
|
+import static org.assertj.core.api.Assertions.assertThat;
|
|
|
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
|
|
|
|
|
/**
|
|
|
* @author Rob Winch
|
|
@@ -107,7 +106,6 @@ public class InMemoryReactiveClientRegistrationRepositoryTests {
|
|
|
|
|
|
@Test
|
|
|
public void iteratorWhenContainsGithubThenContains() {
|
|
|
- assertThat(this.repository.iterator())
|
|
|
- .containsOnly(this.registration);
|
|
|
+ assertThat(this.repository).containsOnly(this.registration);
|
|
|
}
|
|
|
}
|