@Test public void onAssetDeleted() { Asset asset = mock(Asset.class); AssetDeletedEvent event = mock(AssetDeletedEvent.class); when(event.getAsset()).thenReturn(asset); when(event.isLocal()).thenReturn(true); handler.on(event); verify(browseNodeManager).deleteAssetNode(asset); }
@Subscribe @AllowConcurrentEvents public void on(final AssetCreatedEvent event) { handle(event, e -> browseNodeManager.createFromAsset(e.getRepositoryName(), e.getAsset())); }
OrientBrowseNodeEventHandler implements EventAware, EventAware.Asynchronous { @Subscribe @AllowConcurrentEvents public void on(final AssetCreatedEvent event) { handle(event, e -> browseNodeManager.createFromAsset(e.getRepositoryName(), e.getAsset())); } }
OrientBrowseNodeEventHandler implements EventAware, EventAware.Asynchronous { @Subscribe @AllowConcurrentEvents public void on(final AssetCreatedEvent event) { handle(event, e -> browseNodeManager.createFromAsset(e.getRepositoryName(), e.getAsset())); } @Inject  OrientBrowseNodeEventHandler(final OrientBrowseNodeManager browseNodeManager); }
OrientBrowseNodeEventHandler implements EventAware, EventAware.Asynchronous { @Subscribe @AllowConcurrentEvents public void on(final AssetCreatedEvent event) { handle(event, e -> browseNodeManager.createFromAsset(e.getRepositoryName(), e.getAsset())); } @Inject  OrientBrowseNodeEventHandler(final OrientBrowseNodeManager browseNodeManager); @Subscribe @AllowConcurrentEvents void on(final AssetCreatedEvent event); @Subscribe @AllowConcurrentEvents void on(final AssetUpdatedEvent event); @Subscribe void on(final AssetDeletedEvent event); @Subscribe void on(final ComponentDeletedEvent event); @Subscribe @AllowConcurrentEvents void on(final ConfigurationDeletedEvent event); }
OrientBrowseNodeEventHandler implements EventAware, EventAware.Asynchronous { @Subscribe @AllowConcurrentEvents public void on(final AssetCreatedEvent event) { handle(event, e -> browseNodeManager.createFromAsset(e.getRepositoryName(), e.getAsset())); } @Inject  OrientBrowseNodeEventHandler(final OrientBrowseNodeManager browseNodeManager); @Subscribe @AllowConcurrentEvents void on(final AssetCreatedEvent event); @Subscribe @AllowConcurrentEvents void on(final AssetUpdatedEvent event); @Subscribe void on(final AssetDeletedEvent event); @Subscribe void on(final ComponentDeletedEvent event); @Subscribe @AllowConcurrentEvents void on(final ConfigurationDeletedEvent event);  }