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