File tree Expand file tree Collapse file tree
model/utils/src/test/java/io/sundr/model/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package io .sundr .model .utils ;
1919
20+ import static org .junit .Assert .assertEquals ;
21+
22+ import org .junit .Test ;
23+
2024import io .sundr .model .Field ;
2125import io .sundr .model .FieldBuilder ;
2226import io .sundr .model .Method ;
2327import io .sundr .model .MethodBuilder ;
2428import io .sundr .model .TypeDef ;
2529import io .sundr .model .TypeDefBuilder ;
26- import org .junit .Test ;
27-
28- import static org .junit .Assert .assertEquals ;
29-
3030
3131public class GetterTest {
32-
32+
3333 @ Test
3434 public void recordGetterWithSameSuffix () {
3535 TypeDef rec = new TypeDefBuilder (TypeDef .forName ("java.lang.Record" )).build ();
3636
3737 Field f1 = new FieldBuilder ().withName ("field" ).withTypeRef (Types .BOOLEAN_REF ).build ();
3838 Field f2 = new FieldBuilder ().withName ("unfield" ).withTypeRef (Types .BOOLEAN_REF ).build ();
39-
39+
4040 Method m1 = new MethodBuilder ().withName ("field" ).withReturnType (Types .BOOLEAN_REF ).build ();
4141 Method m2 = new MethodBuilder ().withName ("unfield" ).withReturnType (Types .BOOLEAN_REF ).build ();
4242
@@ -45,7 +45,7 @@ public void recordGetterWithSameSuffix() {
4545 .withFields (f1 , f2 )
4646 .withMethods (m2 , m1 )
4747 .build ();
48-
48+
4949 assertEquals (m1 , Getter .find (type , f1 ));
5050 assertEquals (m2 , Getter .find (type , f2 ));
5151 }
You can’t perform that action at this time.
0 commit comments