Skip to content

Commit

Permalink
Merge pull request #63 from justinedelson/issue/fix-intellij-test
Browse files Browse the repository at this point in the history
fix test failure in IntelliJ
  • Loading branch information
adamcin committed Aug 26, 2020
2 parents 00f124f + b332e86 commit 3b62d63
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.apache.jackrabbit.vault.fs.io.Archive;
import org.apache.jackrabbit.vault.packaging.InstallContext;
import org.apache.jackrabbit.vault.packaging.InstallHookProcessor;
import org.apache.jackrabbit.vault.packaging.JcrPackage;
import org.apache.jackrabbit.vault.packaging.JcrPackageManager;
import org.apache.jackrabbit.vault.packaging.PackageException;
import org.apache.jackrabbit.vault.packaging.PackageId;
Expand Down Expand Up @@ -803,10 +804,11 @@ public void testProcessInstallableQueue_singleSubpackageInstallable() throws Exc
}
}).when(installWatcher).dequeueInstallable();

final JcrPackage jcrPackage = mock(JcrPackage.class);
final CompletableFuture<EmbeddedPackageInstallable> openedSlot = new CompletableFuture<>();
doAnswer(call -> {
openedSlot.complete(call.getArgument(0));
return null;
return (Fun.ThrowingSupplier<JcrPackage>) () -> jcrPackage;
}).when(installWatcher).open(installable);

new OakMachine.Builder()
Expand Down

0 comments on commit 3b62d63

Please sign in to comment.