File tree 1 file changed +3
-2
lines changed
flow-server/src/test/java/com/vaadin/flow/server/frontend
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .io .File ;
4
4
import java .io .IOException ;
5
+ import java .net .URL ;
5
6
import java .nio .charset .StandardCharsets ;
6
7
import java .nio .file .Files ;
7
8
import java .nio .file .Path ;
@@ -238,8 +239,8 @@ public void noPackageLockExists_hillaUsed_jarHybridDevBundleLockIsCopied()
238
239
FileUtils .write (jarHybridPackageLock , jarHybridPackageLockContent );
239
240
240
241
Mockito .when (options .getClassFinder ()
241
- .loadClass ("com. vaadin. hilla. EndpointController" ))
242
- .thenReturn (Object . class );
242
+ .getResource ("com/ vaadin/ hilla/ EndpointController.class " ))
243
+ .thenReturn (new URL ( "file://something" ) );
243
244
Mockito .when (options .getClassFinder ()
244
245
.getResource (DEV_BUNDLE_JAR_PATH + Constants .PACKAGE_LOCK_JSON ))
245
246
.thenReturn (jarPackageLock .toURI ().toURL ());
You can’t perform that action at this time.
0 commit comments