@Test public void testDoInit() { when(editor.isCacheable()).thenReturn(true); cache.putExpressionGrid(UUID, Optional.of(editor)); assertThat(cache.getContent()).isNotEmpty(); cache.doInit(); assertThat(cache.getContent()).isEmpty(); }
@Override protected void doInit() { cache = new HashMap<>(); }
ExpressionGridCacheImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionGridCache { @Override protected void doInit() { cache = new HashMap<>(); } }
ExpressionGridCacheImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionGridCache { @Override protected void doInit() { cache = new HashMap<>(); } ExpressionGridCacheImpl(); }
ExpressionGridCacheImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionGridCache { @Override protected void doInit() { cache = new HashMap<>(); } ExpressionGridCacheImpl(); @Override Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>> getExpressionGrid(final String nodeUUID); @Override void putExpressionGrid(final String nodeUUID,
                                  final Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>> gridWidget); @Override void removeExpressionGrid(final String nodeUUID); }
ExpressionGridCacheImpl extends AbstractCanvasControl<AbstractCanvas> implements ExpressionGridCache { @Override protected void doInit() { cache = new HashMap<>(); } ExpressionGridCacheImpl(); @Override Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>> getExpressionGrid(final String nodeUUID); @Override void putExpressionGrid(final String nodeUUID,
                                  final Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>> gridWidget); @Override void removeExpressionGrid(final String nodeUUID);  }