11package io .sundr .adapter .source ;
22
3- import static org .junit .Assert .*;
3+ import static org .junit .jupiter . api . Assertions .*;
44
55import java .util .Optional ;
66
7- import org .junit .Test ;
7+ import org .junit .jupiter . api . Test ;
88
99import io .sundr .adapter .api .AdapterContext ;
1010import io .sundr .adapter .source .utils .Sources ;
@@ -27,11 +27,11 @@ public void testPropertyResolution() {
2727 .filter (m -> "testMethod" .equals (m .getName ()))
2828 .findFirst ();
2929
30- assertTrue ("testMethod should exist" , testMethod . isPresent () );
30+ assertTrue (testMethod . isPresent (), "testMethod should exist" );
3131
3232 UnresolvedContextRefLocator locator = UnresolvedContextRefLocator .forType (typeDef );
33- assertFalse ("All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs (),
34- locator .hasUnresolvedContextRefs ());
33+ assertFalse (locator .hasUnresolvedContextRefs (),
34+ "All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs ());
3535 }
3636
3737 @ Test
@@ -42,11 +42,11 @@ public void testMethodArgumentResolution() {
4242 .filter (m -> "testMethod" .equals (m .getName ()))
4343 .findFirst ();
4444
45- assertTrue ("testMethod should exist" , testMethod . isPresent () );
45+ assertTrue (testMethod . isPresent (), "testMethod should exist" );
4646
4747 UnresolvedContextRefLocator locator = UnresolvedContextRefLocator .forType (typeDef );
48- assertFalse ("All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs (),
49- locator .hasUnresolvedContextRefs ());
48+ assertFalse (locator .hasUnresolvedContextRefs (),
49+ "All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs ());
5050
5151 }
5252
@@ -58,10 +58,10 @@ public void testLocalVariableResolution() {
5858 .filter (m -> "testMethod" .equals (m .getName ()))
5959 .findFirst ();
6060
61- assertTrue ("testMethod should exist" , testMethod . isPresent () );
61+ assertTrue (testMethod . isPresent (), "testMethod should exist" );
6262 UnresolvedContextRefLocator locator = UnresolvedContextRefLocator .forType (typeDef );
63- assertFalse ("All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs (),
64- locator .hasUnresolvedContextRefs ());
63+ assertFalse (locator .hasUnresolvedContextRefs (),
64+ "All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs ());
6565
6666 }
6767
@@ -73,10 +73,10 @@ public void testStaticMethodResolution() {
7373 .filter (m -> "testMethod" .equals (m .getName ()))
7474 .findFirst ();
7575
76- assertTrue ("testMethod should exist" , testMethod . isPresent () );
76+ assertTrue (testMethod . isPresent (), "testMethod should exist" );
7777 UnresolvedContextRefLocator locator = UnresolvedContextRefLocator .forType (typeDef );
78- assertFalse ("All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs (),
79- locator .hasUnresolvedContextRefs ());
78+ assertFalse (locator .hasUnresolvedContextRefs (),
79+ "All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs ());
8080 }
8181
8282 @ Test
@@ -87,11 +87,11 @@ public void testStaticMethodFromSamePackage() {
8787 .filter (m -> "testMethod" .equals (m .getName ()))
8888 .findFirst ();
8989
90- assertTrue ("testMethod should exist" , testMethod . isPresent () );
90+ assertTrue (testMethod . isPresent (), "testMethod should exist" );
9191
9292 UnresolvedContextRefLocator locator = UnresolvedContextRefLocator .forType (typeDef );
93- assertFalse ("All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs (),
94- locator .hasUnresolvedContextRefs ());
93+ assertFalse (locator .hasUnresolvedContextRefs (),
94+ "All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs ());
9595 }
9696
9797 @ Test
@@ -102,10 +102,10 @@ public void testContextRefToPropertyRefResolution() {
102102 .filter (m -> "testMethod" .equals (m .getName ()))
103103 .findFirst ();
104104
105- assertTrue ("testMethod should exist" , testMethod . isPresent () );
105+ assertTrue (testMethod . isPresent (), "testMethod should exist" );
106106 UnresolvedContextRefLocator locator = UnresolvedContextRefLocator .forType (typeDef );
107- assertFalse ("All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs (),
108- locator .hasUnresolvedContextRefs ());
107+ assertFalse (locator .hasUnresolvedContextRefs (),
108+ "All ContextRef objects should be resolved, but found: " + locator .getUnresolvedContextRefs ());
109109 }
110110
111111 private TypeDef parseTypeDefFromResource (String resourceName ) {
0 commit comments