@Test public void checkRightDelegates() { final WiresShapeControlImpl delegate = tested.getDelegate(); final WiresParentPickerControlImpl parentPickerControl = (WiresParentPickerControlImpl) delegate.getParentPickerControl(); final WiresShapeLocationControlImpl shapeLocationControl = parentPickerControl.getShapeLocationControl(); assertTrue(shapeLocationControl instanceof CaseManagementShapeLocationControl); final WiresContainmentControl containmentControl = delegate.getContainmentControl(); assertTrue(containmentControl instanceof CaseManagementContainmentControl); assertNull(delegate.getDockingControl()); }
@Override public WiresShapeControlImpl getDelegate() { return shapeControl; }
CaseManagementShapeControl extends DelegateWiresShapeControl { @Override public WiresShapeControlImpl getDelegate() { return shapeControl; } }
CaseManagementShapeControl extends DelegateWiresShapeControl { @Override public WiresShapeControlImpl getDelegate() { return shapeControl; } CaseManagementShapeControl(final WiresShape shape,
                                      final CaseManagementContainmentStateHolder state); }
CaseManagementShapeControl extends DelegateWiresShapeControl { @Override public WiresShapeControlImpl getDelegate() { return shapeControl; } CaseManagementShapeControl(final WiresShape shape,
                                      final CaseManagementContainmentStateHolder state); @Override WiresShapeControlImpl getDelegate(); }
CaseManagementShapeControl extends DelegateWiresShapeControl { @Override public WiresShapeControlImpl getDelegate() { return shapeControl; } CaseManagementShapeControl(final WiresShape shape,
                                      final CaseManagementContainmentStateHolder state); @Override WiresShapeControlImpl getDelegate();  }