3838import static org .junit .jupiter .api .Assertions .*;
3939import static org .mockito .ArgumentMatchers .any ;
4040import static org .mockito .Mockito .mock ;
41- import static org .mockito .Mockito .when ;
4241
4342class MetricsTest extends BddTest {
4443 @ Test
@@ -168,8 +167,8 @@ void metricAsALambda() {
168167 }
169168
170169 @ Test
171- void showWhatSparkDoes () {
172- HashMap map = Unirest .get (SPARKLE )
170+ void showWhatJavalinDoes () {
171+ HashMap map = Unirest .get (JAVALIN )
173172 .routeParam ("spark" , "joy" )
174173 .queryString ("food" , "hamberders" )
175174 .queryString ("colour" , "red" )
@@ -179,7 +178,7 @@ void showWhatSparkDoes() {
179178 assertEquals ("localhost:4567" , map .get ("host()" ));
180179 assertEquals ("/sparkle/joy/yippy" , map .get ("uri()" )); // this is different from what the Spark doc says.
181180 assertEquals ("http://localhost:4567/sparkle/joy/yippy" , map .get ("url()" ));
182- assertNull ( map .get ("contextPath()" ));
181+ assertEquals ( "" , map .get ("contextPath()" ));
183182 assertEquals ("/sparkle/joy/yippy" , map .get ("pathInfo()" ));
184183 assertEquals ("food=hamberders&colour=red" , map .get ("queryString()" ));
185184 }
0 commit comments