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:
parent
e4c3228e25
commit
f81b83169a
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user