aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-github/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-auth-github/src')
-rw-r--r--server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubModuleTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubModuleTest.java b/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubModuleTest.java
index 0592b53e50e..f05919bc518 100644
--- a/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubModuleTest.java
+++ b/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GitHubModuleTest.java
@@ -20,18 +20,17 @@
package org.sonar.auth.github;
import org.junit.Test;
-import org.sonar.core.platform.ComponentContainer;
+import org.sonar.core.platform.ListContainer;
import static org.assertj.core.api.Assertions.assertThat;
-import static org.sonar.core.platform.ComponentContainer.COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER;
public class GitHubModuleTest {
@Test
public void verify_count_of_added_components() {
- ComponentContainer container = new ComponentContainer();
+ ListContainer container = new ListContainer();
new GitHubModule().configure(container);
- assertThat(container.size()).isEqualTo(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 13);
+ assertThat(container.getAddedObjects()).hasSize(13);
}
}