AppFormerJsActivityLoader implements PlaceManagerImpl.AppFormerActivityLoader { public boolean triggerLoadOfMatchingEditors(final Path path, final Runnable successCallback) { if (path == null || path.toURI() == null) { return false; } final List<Promise<Void>> loadingMatchingEditors = loadMatchingEditors(path.toURI()); if (loadingMatchingEditors.size() <= 0) { return false; } finishLoadingMatchingEditors(loadingMatchingEditors, successCallback); return true; } @Inject  AppFormerJsActivityLoader(final Promises promises,
                                     final ActivityManager activityManager,
                                     final ActivityBeansCache activityBeansCache,
                                     final PlaceManager placeManager,
                                     final LazyLoadingScreen lazyLoadingScreen,
                                     final Event<ActivityLazyLoaded> activityLazyLoadedEvent,
                                     final @Shadowed Instance<JsWorkbenchEditorActivity> jsWorkbenchEditorActivityInstance,
                                     final AppFormerComponentsRegistry appFormerComponentsRegistry); void init(final String gwtModuleName); void onComponentLoaded(final Object jsObject); native String extractComponentId(final Object object); boolean triggerLoadOfMatchingEditors(final Path path,
                                                final Runnable successCallback);  }
@Test public void triggerLoadOfMatchingEditors_nullPath() { assertFalse(appFormerJsActivityLoader.triggerLoadOfMatchingEditors(null, null)); }
@Test public void triggerLoadOfMatchingEditors_nullPathURI() { assertFalse(appFormerJsActivityLoader.triggerLoadOfMatchingEditors(new PathFactory.PathImpl("foo.txt", null), null)); }