@Test public void testRemoveFromLienzo() { tested.removeFromLienzo(STRIP_NAME); verify(imageStrips, times(1)).remove(STRIP_NAME); reset(imageStrips); tested.removeFromLienzo(STRIP_NAME); verify(imageStrips, never()).remove(STRIP_NAME); }
void removeFromLienzo(final String name) { Optional.ofNullable(imageStrips.get(name)) .ifPresent(imageStrip -> imageStrips.remove(name)); }
LienzoImageStrips { void removeFromLienzo(final String name) { Optional.ofNullable(imageStrips.get(name)) .ifPresent(imageStrip -> imageStrips.remove(name)); } }
LienzoImageStrips { void removeFromLienzo(final String name) { Optional.ofNullable(imageStrips.get(name)) .ifPresent(imageStrip -> imageStrips.remove(name)); } LienzoImageStrips();   LienzoImageStrips(final ImageStrips imageStrips); }
LienzoImageStrips { void removeFromLienzo(final String name) { Optional.ofNullable(imageStrips.get(name)) .ifPresent(imageStrip -> imageStrips.remove(name)); } LienzoImageStrips();   LienzoImageStrips(final ImageStrips imageStrips); void register(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips,
                         final Command callback); void remove(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips); @PreDestroy void destroy(); }
LienzoImageStrips { void removeFromLienzo(final String name) { Optional.ofNullable(imageStrips.get(name)) .ifPresent(imageStrip -> imageStrips.remove(name)); } LienzoImageStrips();   LienzoImageStrips(final ImageStrips imageStrips); void register(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips,
                         final Command callback); void remove(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips); @PreDestroy void destroy();  }