@Test public void testExceptionHandlingWithReflection() throws Exception { DefaultPackagingService service = new DefaultPackagingService(); service.jcrPackageManagerClazz = FailingJcrPackageManager.class; new OakMachine.Builder().build().adminInitAndInspect(session -> { JcrPackageManager manager = service.getPackageManager(session); assertTrue(manager instanceof JcrPackageManagerImpl); }); }
@Override public PackageManager getPackageManager() { return PackagingService.getPackageManager(); }
DefaultPackagingService implements Packaging { @Override public PackageManager getPackageManager() { return PackagingService.getPackageManager(); } }
DefaultPackagingService implements Packaging { @Override public PackageManager getPackageManager() { return PackagingService.getPackageManager(); } @SuppressWarnings("WeakerAccess")  DefaultPackagingService();   DefaultPackagingService(final @NotNull ClassLoader classLoader); }
DefaultPackagingService implements Packaging { @Override public PackageManager getPackageManager() { return PackagingService.getPackageManager(); } @SuppressWarnings("WeakerAccess")  DefaultPackagingService();   DefaultPackagingService(final @NotNull ClassLoader classLoader); @Override PackageManager getPackageManager(); @Override JcrPackageManager getPackageManager(final Session session); @Override JcrPackageDefinition createPackageDefinition(final Node defNode); @Override JcrPackage open(final Node node, final boolean allowInvalid); }
DefaultPackagingService implements Packaging { @Override public PackageManager getPackageManager() { return PackagingService.getPackageManager(); } @SuppressWarnings("WeakerAccess")  DefaultPackagingService();   DefaultPackagingService(final @NotNull ClassLoader classLoader); @Override PackageManager getPackageManager(); @Override JcrPackageManager getPackageManager(final Session session); @Override JcrPackageDefinition createPackageDefinition(final Node defNode); @Override JcrPackage open(final Node node, final boolean allowInvalid);  }