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
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)

View File

@ -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

View File

@ -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