File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
vaadin-spring/src/test/java/com/vaadin/flow/spring/instantiator Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
import javax .servlet .ServletConfig ;
19
19
import javax .servlet .ServletContext ;
20
20
import javax .servlet .ServletException ;
21
-
22
21
import java .util .Collections ;
23
22
import java .util .List ;
24
23
import java .util .Locale ;
48
47
import com .vaadin .flow .function .DeploymentConfiguration ;
49
48
import com .vaadin .flow .i18n .I18NProvider ;
50
49
import com .vaadin .flow .server .ServiceInitEvent ;
51
- import com .vaadin .flow .server .StaticFileServer ;
52
50
import com .vaadin .flow .server .StaticFileHandlerFactory ;
51
+ import com .vaadin .flow .server .StaticFileServer ;
53
52
import com .vaadin .flow .server .VaadinService ;
54
53
import com .vaadin .flow .server .VaadinServiceInitListener ;
55
54
import com .vaadin .flow .server .VaadinServletService ;
@@ -186,6 +185,9 @@ protected DeploymentConfiguration createDeploymentConfiguration(
186
185
ServletConfig config = Mockito .mock (ServletConfig .class );
187
186
ServletContext servletContext = Mockito .mock (ServletContext .class );
188
187
188
+ Mockito .when (servletContext .getClassLoader ())
189
+ .thenReturn (servlet .getClass ().getClassLoader ());
190
+
189
191
ApplicationConfiguration appConfig = Mockito
190
192
.mock (ApplicationConfiguration .class );
191
193
Mockito .when (appConfig .getPropertyNames ())
You can’t perform that action at this time.
0 commit comments