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

Better readable rule names: readJsonRule

This commit is contained in:
Marcus Holl 2019-01-22 09:30:19 +01:00
parent da1969e089
commit 7ba695e767
4 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@ import static org.junit.Assert.assertThat
class GithubPublishReleaseTest extends BasePiperTest {
private JenkinsStepRule stepRule = new JenkinsStepRule(this)
private JenkinsLoggingRule loggingRule = new JenkinsLoggingRule(this)
private JenkinsReadJsonRule jrjr = new JenkinsReadJsonRule(this)
private JenkinsReadJsonRule readJsonRule = new JenkinsReadJsonRule(this)
private ExpectedException thrown = ExpectedException.none()
@Rule
@ -27,7 +27,7 @@ class GithubPublishReleaseTest extends BasePiperTest {
.getCommonRules(this)
.around(new JenkinsReadYamlRule(this))
.around(loggingRule)
.around(jrjr)
.around(readJsonRule)
.around(stepRule)
.around(thrown)

View File

@ -13,13 +13,13 @@ import static org.junit.Assert.assertTrue
class DlangArtifactVersioningTest extends BasePiperTest{
JenkinsReadJsonRule jrjr = new JenkinsReadJsonRule(this, 'test/resources/versioning/DlangArtifactVersioning/')
JenkinsReadJsonRule readJsonRule = new JenkinsReadJsonRule(this, 'test/resources/versioning/DlangArtifactVersioning/')
JenkinsWriteJsonRule jwjr = new JenkinsWriteJsonRule(this)
@Rule
public RuleChain ruleChain = Rules
.getCommonRules(this)
.around(jrjr)
.around(readJsonRule)
.around(jwjr)
@Test

View File

@ -13,13 +13,13 @@ import static org.junit.Assert.assertTrue
class NpmArtifactVersioningTest extends BasePiperTest{
JenkinsReadJsonRule jrjr = new JenkinsReadJsonRule(this, 'test/resources/versioning/NpmArtifactVersioning/')
JenkinsReadJsonRule readJsonRule = new JenkinsReadJsonRule(this, 'test/resources/versioning/NpmArtifactVersioning/')
JenkinsWriteJsonRule jwjr = new JenkinsWriteJsonRule(this)
@Rule
public RuleChain ruleChain = Rules
.getCommonRules(this)
.around(jrjr)
.around(readJsonRule)
.around(jwjr)
@Test

View File

@ -13,13 +13,13 @@ import static org.junit.Assert.assertTrue
class SbtArtifactVersioningTest extends BasePiperTest{
JenkinsReadJsonRule jrjr = new JenkinsReadJsonRule(this, 'test/resources/versioning/SbtArtifactVersioning/')
JenkinsReadJsonRule readJsonRule = new JenkinsReadJsonRule(this, 'test/resources/versioning/SbtArtifactVersioning/')
JenkinsWriteJsonRule jwjr = new JenkinsWriteJsonRule(this)
@Rule
public RuleChain ruleChain = Rules
.getCommonRules(this)
.around(jrjr)
.around(readJsonRule)
.around(jwjr)
@Test