Skip to content

Commit 7bea7de

Browse files
committed
fix test
1 parent 32ba3ef commit 7bea7de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flow-server/src/test/java/com/vaadin/flow/server/frontend/BundleUtilsTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.File;
44
import java.io.IOException;
5+
import java.net.URL;
56
import java.nio.charset.StandardCharsets;
67
import java.nio.file.Files;
78
import java.nio.file.Path;
@@ -238,8 +239,8 @@ public void noPackageLockExists_hillaUsed_jarHybridDevBundleLockIsCopied()
238239
FileUtils.write(jarHybridPackageLock, jarHybridPackageLockContent);
239240

240241
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"));
243244
Mockito.when(options.getClassFinder()
244245
.getResource(DEV_BUNDLE_JAR_PATH + Constants.PACKAGE_LOCK_JSON))
245246
.thenReturn(jarPackageLock.toURI().toURL());

0 commit comments

Comments
 (0)