Skip to content

Commit ee573ca

Browse files
committed
Expect to fail for a case not covered yet
1 parent 080aa67 commit ee573ca

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

src/test/java/org/openrewrite/java/migrate/lombok/NormalizeSetterTest.java

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -487,17 +487,15 @@ public void setBa(long ba) {
487487
* If existing method names need to be rotated in a loop the recipe should still work.
488488
* For now this is not planned.
489489
*/
490-
490+
@ExpectedToFail("Not implemented yet")
491491
@Test
492492
void shouldWorkOnCircleCasesButDoesntYet() {
493493
rewriteRun(// language=java
494494
java(
495495
"""
496-
497496
class A {
498497
499498
int foo;
500-
501499
int bar;
502500
503501
public void setBar(int bar) {
@@ -508,27 +506,24 @@ public void setFoo(int foo) {
508506
this.bar = foo;
509507
}
510508
509+
}
510+
""",
511+
"""
512+
class A {
513+
514+
int foo;
515+
int bar;
516+
517+
public void setFoo(int foo) {
518+
this.foo = foo;
519+
}
520+
521+
public void setBar(int bar) {
522+
this.bar = bar;
523+
}
524+
511525
}
512526
"""
513-
// ,
514-
// """
515-
//
516-
// class A {
517-
//
518-
// int foo;
519-
//
520-
// int bar;
521-
//
522-
// public void setFoo(int foo) {
523-
// this.foo = foo;
524-
// }
525-
//
526-
// public void setBar(int bar) {
527-
// this.bar = bar;
528-
// }
529-
//
530-
// }
531-
// """
532527
)
533528
);
534529
}

0 commit comments

Comments
 (0)