From f81b83169a7bbe1d43cda8d197c454574ea1ecd1 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Tue, 22 Jan 2019 09:33:12 +0100 Subject: [PATCH] Better readable rule names: readFileRule --- .../sap/piper/versioning/DockerArtifactVersioningTest.groovy | 4 ++-- .../sap/piper/versioning/GolangArtifactVersioningTest.groovy | 4 ++-- .../com/sap/piper/versioning/PipArtifactVersioningTest.groovy | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/groovy/com/sap/piper/versioning/DockerArtifactVersioningTest.groovy b/test/groovy/com/sap/piper/versioning/DockerArtifactVersioningTest.groovy index bf4911719..5a068f3d1 100644 --- a/test/groovy/com/sap/piper/versioning/DockerArtifactVersioningTest.groovy +++ b/test/groovy/com/sap/piper/versioning/DockerArtifactVersioningTest.groovy @@ -20,7 +20,7 @@ class DockerArtifactVersioningTest extends BasePiperTest{ 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) JenkinsLoggingRule loggingRule = new JenkinsLoggingRule(this) ExpectedException thrown = ExpectedException.none() @@ -28,7 +28,7 @@ class DockerArtifactVersioningTest extends BasePiperTest{ @Rule public RuleChain ruleChain = Rules .getCommonRules(this) - .around(jrfr) + .around(readFileRule) .around(writeFileRule) .around(loggingRule) .around(thrown) diff --git a/test/groovy/com/sap/piper/versioning/GolangArtifactVersioningTest.groovy b/test/groovy/com/sap/piper/versioning/GolangArtifactVersioningTest.groovy index d9a2672dc..09ab46c6c 100644 --- a/test/groovy/com/sap/piper/versioning/GolangArtifactVersioningTest.groovy +++ b/test/groovy/com/sap/piper/versioning/GolangArtifactVersioningTest.groovy @@ -12,13 +12,13 @@ import static org.junit.Assert.assertEquals 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) @Rule public RuleChain ruleChain = Rules .getCommonRules(this) - .around(jrfr) + .around(readFileRule) .around(writeFileRule) @Test diff --git a/test/groovy/com/sap/piper/versioning/PipArtifactVersioningTest.groovy b/test/groovy/com/sap/piper/versioning/PipArtifactVersioningTest.groovy index a8b42d990..752c8ed0e 100644 --- a/test/groovy/com/sap/piper/versioning/PipArtifactVersioningTest.groovy +++ b/test/groovy/com/sap/piper/versioning/PipArtifactVersioningTest.groovy @@ -12,13 +12,13 @@ import static org.junit.Assert.assertEquals 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) @Rule public RuleChain ruleChain = Rules .getCommonRules(this) - .around(jrfr) + .around(readFileRule) .around(writeFileRule) @Test