AbstractComponent implements Cloneable { protected void initialize() { performInitialization(); getCapability(Initializer.class).setInitialized(); }  static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass); AbstractComponent getWorkUnitDelegate(); String getComponentTypeID(); Set<ViewInfo> getViewInfos(ViewType type); String getId(); String getComponentId(); void setId(String id); boolean isLeaf(); synchronized void setOwner(String owner); final synchronized String getOriginalOwner(); synchronized String getOwner(); synchronized String getCreator(); synchronized Date getCreationDate(); final void addDelegateComponent(AbstractComponent childComponent); final void componentSaved(); Collection<AbstractComponent> getReferencingComponents(); final boolean canBeDeleted(); final boolean addDelegateComponents(Collection<AbstractComponent> childComponents); final boolean addDelegateComponents(int childIndex,
                    Collection<AbstractComponent> childComponents); final void removeDelegateComponent(AbstractComponent childComponent); synchronized void removeDelegateComponents(Collection<AbstractComponent> childComponents); synchronized String getDisplayName(); String getExtendedDisplayName(); synchronized String getExternalKey(); synchronized void setExternalKey(String key); synchronized void setDisplayName(String name); void setAndUpdateDisplayName(String name); void setAndUpdateOwner(String name); final void open(); final void open(GraphicsConfiguration graphicsConfig); final T getCapability(Class<T> capability); final List<T> getCapabilities(Class<T> capability); boolean isDirty(); synchronized boolean isStale(); void save(); @Override AbstractComponent clone(); int getVersion(); T getAsset(Class<T> assetClass); @Deprecated final javax.swing.ImageIcon getIcon(); @Deprecated static javax.swing.ImageIcon getIconForComponentType(String className); synchronized void resetComponentProperties(ResetPropertiesTransaction txn); void addViewManifestation(View viewManifestation); Set<View> getAllViewManifestations(); synchronized List<AbstractComponent> getComponents(); static AbstractComponent getComponentById(String id); List<PropertyDescriptor> getFieldDescriptors(); final static AbstractComponent NULL_COMPONENT; }
@Test public void testInitialize() { AbstractComponent comp = new BaseComponentSub2(); Assert.assertNull(comp.getId()); comp.initialize(); Assert.assertTrue(comp.getCapability(ComponentInitializer.class).isInitialized()); Assert.assertNotNull(comp.getId()); }