1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +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 { class GithubPublishReleaseTest extends BasePiperTest {
private JenkinsStepRule stepRule = new JenkinsStepRule(this) private JenkinsStepRule stepRule = new JenkinsStepRule(this)
private JenkinsLoggingRule loggingRule = new JenkinsLoggingRule(this) private JenkinsLoggingRule loggingRule = new JenkinsLoggingRule(this)
private JenkinsReadJsonRule jrjr = new JenkinsReadJsonRule(this) private JenkinsReadJsonRule readJsonRule = new JenkinsReadJsonRule(this)
private ExpectedException thrown = ExpectedException.none() private ExpectedException thrown = ExpectedException.none()
@Rule @Rule
@ -27,7 +27,7 @@ class GithubPublishReleaseTest extends BasePiperTest {
.getCommonRules(this) .getCommonRules(this)
.around(new JenkinsReadYamlRule(this)) .around(new JenkinsReadYamlRule(this))
.around(loggingRule) .around(loggingRule)
.around(jrjr) .around(readJsonRule)
.around(stepRule) .around(stepRule)
.around(thrown) .around(thrown)

View File

@ -13,13 +13,13 @@ import static org.junit.Assert.assertTrue
class DlangArtifactVersioningTest extends BasePiperTest{ 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) JenkinsWriteJsonRule jwjr = new JenkinsWriteJsonRule(this)
@Rule @Rule
public RuleChain ruleChain = Rules public RuleChain ruleChain = Rules
.getCommonRules(this) .getCommonRules(this)
.around(jrjr) .around(readJsonRule)
.around(jwjr) .around(jwjr)
@Test @Test

View File

@ -13,13 +13,13 @@ import static org.junit.Assert.assertTrue
class NpmArtifactVersioningTest extends BasePiperTest{ 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) JenkinsWriteJsonRule jwjr = new JenkinsWriteJsonRule(this)
@Rule @Rule
public RuleChain ruleChain = Rules public RuleChain ruleChain = Rules
.getCommonRules(this) .getCommonRules(this)
.around(jrjr) .around(readJsonRule)
.around(jwjr) .around(jwjr)
@Test @Test

View File

@ -13,13 +13,13 @@ import static org.junit.Assert.assertTrue
class SbtArtifactVersioningTest extends BasePiperTest{ 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) JenkinsWriteJsonRule jwjr = new JenkinsWriteJsonRule(this)
@Rule @Rule
public RuleChain ruleChain = Rules public RuleChain ruleChain = Rules
.getCommonRules(this) .getCommonRules(this)
.around(jrjr) .around(readJsonRule)
.around(jwjr) .around(jwjr)
@Test @Test