Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Make the tests prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tasomaniac committed Dec 5, 2018
1 parent b8a9e87 commit e475b22
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,7 @@ class FindbugsIntegrationTest {
@Test
void shouldBeUpToDateWhenCheckTaskRunsAgain() {
def project = projectRule.newProject()
.withSourceSet('debug', SOURCES_WITH_LOW_VIOLATION, SOURCES_WITH_MEDIUM_VIOLATION)
.withSourceSet('release', SOURCES_WITH_HIGH_VIOLATION)
.withPenalty('''{
maxErrors = 10
maxWarnings = 10
}''')
.withSourceSet('main', SOURCES_WITH_LOW_VIOLATION)
.withToolsConfig('findbugs {}')

project.build('check')
Expand All @@ -382,12 +377,7 @@ class FindbugsIntegrationTest {
@Test
void shouldNotGenerateHtmlWhenDisabled() {
def result = projectRule.newProject()
.withSourceSet('debug', SOURCES_WITH_LOW_VIOLATION, SOURCES_WITH_MEDIUM_VIOLATION)
.withSourceSet('release', SOURCES_WITH_HIGH_VIOLATION)
.withPenalty('''{
maxErrors = 10
maxWarnings = 10
}''')
.withSourceSet('main', SOURCES_WITH_LOW_VIOLATION)
.withToolsConfig('''findbugs {
htmlReportEnabled false
}''')
Expand Down

0 comments on commit e475b22

Please sign in to comment.