Skip to content

Commit 96c3565

Browse files
committed
Format with spotless
1 parent 33b57f2 commit 96c3565

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

src/test/java/hudson/plugins/plot/PlotBuilderTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ class PlotBuilderTest {
1212
@Test
1313
void testWithMinimalPipelineArgs(JenkinsRule r) throws Exception {
1414
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
15-
p.setDefinition(new CpsFlowDefinition(
16-
"""
15+
p.setDefinition(new CpsFlowDefinition("""
1716
node { \s
1817
plot csvFileName: 'plot-minimal.csv',
1918
group: 'My Data',
2019
style: 'line'
21-
}""",
22-
true));
20+
}""", true));
2321
r.buildAndAssertSuccess(p);
2422
}
2523

2624
@Test
2725
void testWithXML(JenkinsRule r) throws Exception {
2826
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
29-
p.setDefinition(new CpsFlowDefinition(
30-
"""
27+
p.setDefinition(new CpsFlowDefinition("""
3128
node { \s
3229
def content = '<my_data>'
3330
content += '<test value1="123.456"/>'
@@ -44,16 +41,14 @@ void testWithXML(JenkinsRule r) throws Exception {
4441
nodeType: 'NODESET',
4542
xpath: 'my_data/test/@*']
4643
]
47-
}""",
48-
true));
44+
}""", true));
4945
r.buildAndAssertSuccess(p);
5046
}
5147

5248
@Test
5349
void testWithCSV(JenkinsRule r) throws Exception {
5450
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
55-
p.setDefinition(new CpsFlowDefinition(
56-
"""
51+
p.setDefinition(new CpsFlowDefinition("""
5752
node { \s
5853
def content = 'Avg,Median,90,min,max,samples,errors,error %'
5954
content += '515.33,196,1117,2,16550,97560,360,0.37'
@@ -64,16 +59,14 @@ void testWithCSV(JenkinsRule r) throws Exception {
6459
style: 'line',
6560
yaxis: 'arbitrary',
6661
csvSeries: [[file: 'data.csv']]
67-
}""",
68-
true));
62+
}""", true));
6963
r.buildAndAssertSuccess(p);
7064
}
7165

7266
@Test
7367
void testWithProperties(JenkinsRule r) throws Exception {
7468
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
75-
p.setDefinition(new CpsFlowDefinition(
76-
"""
69+
p.setDefinition(new CpsFlowDefinition("""
7770
node { \s
7871
def content = 'YVALUE=1'
7972
writeFile file: 'data.properties', text: content
@@ -86,8 +79,7 @@ void testWithProperties(JenkinsRule r) throws Exception {
8679
[file: 'data.properties',
8780
label: 'My Label']
8881
]
89-
}""",
90-
true));
82+
}""", true));
9183
r.buildAndAssertSuccess(p);
9284
}
9385
}

0 commit comments

Comments
 (0)