File tree 1 file changed +2
-4
lines changed
vaadin-authentication/src/test/java/io/imunity/vaadin/auth/server
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -44,26 +44,24 @@ void shouldHandleRequestDispatcherType()
44
44
{
45
45
when (request .getDispatcherType ()).thenReturn (DispatcherType .REQUEST );
46
46
when (request .getRequestURI ()).thenReturn ("/context/test/path" );
47
- when (request .getContextPath ()).thenReturn ("/context" );
48
47
when (request .getQueryString ()).thenReturn ("param1=value1" );
49
48
when (request .getParameterMap ()).thenReturn (Map .of ("param1" , new String []{"value1" }));
50
49
51
50
String result = ProxyAuthenticationFilter .getCurrentRelativeURL (request );
52
51
53
- assertEquals ("/test/path?param1=value1" , result );
52
+ assertEquals ("/context/ test/path?param1=value1" , result );
54
53
}
55
54
56
55
@ Test
57
56
void shouldHandleNullQueryString ()
58
57
{
59
58
when (request .getDispatcherType ()).thenReturn (DispatcherType .REQUEST );
60
59
when (request .getRequestURI ()).thenReturn ("/context/test/path" );
61
- when (request .getContextPath ()).thenReturn ("/context" );
62
60
when (request .getQueryString ()).thenReturn (null );
63
61
64
62
String result = ProxyAuthenticationFilter .getCurrentRelativeURL (request );
65
63
66
- assertEquals ("/test/path" , result );
64
+ assertEquals ("/context/ test/path" , result );
67
65
}
68
66
69
67
@ Test
You can’t perform that action at this time.
0 commit comments