Skip to content

Commit e57773d

Browse files
committed
Spotless
1 parent 37b139f commit e57773d

12 files changed

Lines changed: 113 additions & 297 deletions

File tree

lib/src/test/java/com/cloudbees/groovy/cps/ContinuableTest.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
public class ContinuableTest extends AbstractGroovyCpsTest {
2323
@Test
2424
public void resumeAndSuspend() throws Throwable {
25-
Script s = getCsh().parse(
26-
"""
25+
Script s = getCsh().parse("""
2726
int x = 1;
2827
x = Continuable.suspend(x+1)
2928
return x+1;
@@ -43,8 +42,7 @@ public void resumeAndSuspend() throws Throwable {
4342

4443
@Test
4544
public void serializeComplexContinuable() throws Throwable {
46-
Script s = getCsh().parse(
47-
"""
45+
Script s = getCsh().parse("""
4846
def foo(int x) {
4947
return Continuable.suspend(x);
5048
}
@@ -76,8 +74,7 @@ def plus3(int x) {
7674

7775
@Test
7876
public void howComeBindingIsSerializable() throws Throwable {
79-
Script s = getCsh().parse(
80-
"""
77+
Script s = getCsh().parse("""
8178
Continuable.suspend(42);
8279
return value;
8380
""");
@@ -143,8 +140,7 @@ public static class ThisObjectIsNotSerializable {}
143140
*/
144141
@Test
145142
public void stackTrace() throws Throwable {
146-
Script s = getCsh().parse(
147-
"""
143+
Script s = getCsh().parse("""
148144
def x(i,v) {
149145
if (i>0)
150146
y(i-1,v);

0 commit comments

Comments
 (0)