Skip to content

Commit

Permalink
Taught these tests to expect the additional extension count. The adde…
Browse files Browse the repository at this point in the history
…d extension is the new "Filenames to ignore when counting lines of code" setting. I failed to include this file in the initial commit of this feature.
  • Loading branch information
gjd6640 committed Jul 8, 2017
1 parent 47b471b commit 3da9320
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public class XmlPluginTest {
@Test
public void count_extensions_for_sonarqube_server_6_0() throws Exception {
Plugin.Context context = setupContext(SonarRuntimeImpl.forSonarQube(Version.create(6, 0), SonarQubeSide.SERVER));
assertThat(context.getExtensions()).as("Number of extensions for SQ 6.0").hasSize(5);
assertThat(context.getExtensions()).as("Number of extensions for SQ 6.0").hasSize(6);
}

@Test
public void count_extensions_for_sonarqube_server_6_2() throws Exception {
Plugin.Context context = setupContext(SonarRuntimeImpl.forSonarQube(Version.create(6, 2), SonarQubeSide.SERVER));
assertThat(context.getExtensions()).as("Number of extensions for SQ 6.2").hasSize(5);
assertThat(context.getExtensions()).as("Number of extensions for SQ 6.2").hasSize(6);
}

private Plugin.Context setupContext(SonarRuntime runtime) {
Expand Down

0 comments on commit 3da9320

Please sign in to comment.