@Test public void testInit() { Command callback = mock(Command.class); tested.init(metadata, callback); verify(stripRegistry, times(1)).get(eq(DefinitionManager.DEFAULT_QUALIFIER), eq(qualifier)); verify(lienzoImageStrips, times(1)).register(eq(STRIPS), eq(callback)); }
@Override public void init(final Metadata metadata, final Command completeCallback) { final Annotation qualifier = definitionUtils.getQualifier(metadata.getDefinitionSetId()); strips = stripRegistry.get(DefinitionManager.DEFAULT_QUALIFIER, qualifier); lienzoImageStrips.register(strips, completeCallback); }
LienzoImageStripLoader implements SessionInitializer { @Override public void init(final Metadata metadata, final Command completeCallback) { final Annotation qualifier = definitionUtils.getQualifier(metadata.getDefinitionSetId()); strips = stripRegistry.get(DefinitionManager.DEFAULT_QUALIFIER, qualifier); lienzoImageStrips.register(strips, completeCallback); } }
LienzoImageStripLoader implements SessionInitializer { @Override public void init(final Metadata metadata, final Command completeCallback) { final Annotation qualifier = definitionUtils.getQualifier(metadata.getDefinitionSetId()); strips = stripRegistry.get(DefinitionManager.DEFAULT_QUALIFIER, qualifier); lienzoImageStrips.register(strips, completeCallback); } protected  LienzoImageStripLoader(); @Inject  LienzoImageStripLoader(final DefinitionUtils definitionUtils,
                                  final ImageStripRegistry stripRegistry,
                                  final LienzoImageStrips lienzoImageStrips); }
LienzoImageStripLoader implements SessionInitializer { @Override public void init(final Metadata metadata, final Command completeCallback) { final Annotation qualifier = definitionUtils.getQualifier(metadata.getDefinitionSetId()); strips = stripRegistry.get(DefinitionManager.DEFAULT_QUALIFIER, qualifier); lienzoImageStrips.register(strips, completeCallback); } protected  LienzoImageStripLoader(); @Inject  LienzoImageStripLoader(final DefinitionUtils definitionUtils,
                                  final ImageStripRegistry stripRegistry,
                                  final LienzoImageStrips lienzoImageStrips); @Override void init(final Metadata metadata,
                     final Command completeCallback); @Override void destroy(); }
LienzoImageStripLoader implements SessionInitializer { @Override public void init(final Metadata metadata, final Command completeCallback) { final Annotation qualifier = definitionUtils.getQualifier(metadata.getDefinitionSetId()); strips = stripRegistry.get(DefinitionManager.DEFAULT_QUALIFIER, qualifier); lienzoImageStrips.register(strips, completeCallback); } protected  LienzoImageStripLoader(); @Inject  LienzoImageStripLoader(final DefinitionUtils definitionUtils,
                                  final ImageStripRegistry stripRegistry,
                                  final LienzoImageStrips lienzoImageStrips); @Override void init(final Metadata metadata,
                     final Command completeCallback); @Override void destroy();  }