Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Dec 23, 2024
1 parent 32ba3ef commit 7bea7de
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -238,8 +239,8 @@ public void noPackageLockExists_hillaUsed_jarHybridDevBundleLockIsCopied()
FileUtils.write(jarHybridPackageLock, jarHybridPackageLockContent);

Mockito.when(options.getClassFinder()
.loadClass("com.vaadin.hilla.EndpointController"))
.thenReturn(Object.class);
.getResource("com/vaadin/hilla/EndpointController.class"))
.thenReturn(new URL("file://something"));
Mockito.when(options.getClassFinder()
.getResource(DEV_BUNDLE_JAR_PATH + Constants.PACKAGE_LOCK_JSON))
.thenReturn(jarPackageLock.toURI().toURL());
Expand Down

0 comments on commit 7bea7de

Please sign in to comment.