1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

Better readable rule names: readFileRule

This commit is contained in:
Marcus Holl 2019-01-22 09:33:12 +01:00
parent e4c3228e25
commit f81b83169a
3 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ class DockerArtifactVersioningTest extends BasePiperTest{
String passedDir String passedDir
JenkinsReadFileRule jrfr = new JenkinsReadFileRule(this, 'test/resources/versioning/DockerArtifactVersioning') JenkinsReadFileRule readFileRule = new JenkinsReadFileRule(this, 'test/resources/versioning/DockerArtifactVersioning')
JenkinsWriteFileRule writeFileRule = new JenkinsWriteFileRule(this) JenkinsWriteFileRule writeFileRule = new JenkinsWriteFileRule(this)
JenkinsLoggingRule loggingRule = new JenkinsLoggingRule(this) JenkinsLoggingRule loggingRule = new JenkinsLoggingRule(this)
ExpectedException thrown = ExpectedException.none() ExpectedException thrown = ExpectedException.none()
@ -28,7 +28,7 @@ class DockerArtifactVersioningTest extends BasePiperTest{
@Rule @Rule
public RuleChain ruleChain = Rules public RuleChain ruleChain = Rules
.getCommonRules(this) .getCommonRules(this)
.around(jrfr) .around(readFileRule)
.around(writeFileRule) .around(writeFileRule)
.around(loggingRule) .around(loggingRule)
.around(thrown) .around(thrown)

View File

@ -12,13 +12,13 @@ import static org.junit.Assert.assertEquals
class GolangArtifactVersioningTest extends BasePiperTest{ class GolangArtifactVersioningTest extends BasePiperTest{
JenkinsReadFileRule jrfr = new JenkinsReadFileRule(this, 'test/resources/versioning/GolangArtifactVersioning/') JenkinsReadFileRule readFileRule = new JenkinsReadFileRule(this, 'test/resources/versioning/GolangArtifactVersioning/')
JenkinsWriteFileRule writeFileRule = new JenkinsWriteFileRule(this) JenkinsWriteFileRule writeFileRule = new JenkinsWriteFileRule(this)
@Rule @Rule
public RuleChain ruleChain = Rules public RuleChain ruleChain = Rules
.getCommonRules(this) .getCommonRules(this)
.around(jrfr) .around(readFileRule)
.around(writeFileRule) .around(writeFileRule)
@Test @Test

View File

@ -12,13 +12,13 @@ import static org.junit.Assert.assertEquals
class PipArtifactVersioningTest extends BasePiperTest{ class PipArtifactVersioningTest extends BasePiperTest{
JenkinsReadFileRule jrfr = new JenkinsReadFileRule(this, 'test/resources/versioning/PipArtifactVersioning/') JenkinsReadFileRule readFileRule = new JenkinsReadFileRule(this, 'test/resources/versioning/PipArtifactVersioning/')
JenkinsWriteFileRule writeFileRule = new JenkinsWriteFileRule(this) JenkinsWriteFileRule writeFileRule = new JenkinsWriteFileRule(this)
@Rule @Rule
public RuleChain ruleChain = Rules public RuleChain ruleChain = Rules
.getCommonRules(this) .getCommonRules(this)
.around(jrfr) .around(readFileRule)
.around(writeFileRule) .around(writeFileRule)
@Test @Test