@Test public void testNameAssociation() throws Exception { AssociationEnd associationEnd = Mockito.mock(AssociationEnd.class); Mockito.when( plugin.nameAssociation(Mockito.any(AssociationEnd.class), Mockito.any(AssociationEnd.class), Mockito.any(Xsd2UmlHostedPlugin.class))).thenReturn("test"); Assert.assertEquals("test", pluginForEdFi.nameAssociation(associationEnd, associationEnd, plugin)); }
@Override public String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host) { return host.nameAssociation(lhs, rhs, host); }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host) { return host.nameAssociation(lhs, rhs, host); } }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host) { return host.nameAssociation(lhs, rhs, host); } Xsd2UmlPluginForEdFi(); }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host) { return host.nameAssociation(lhs, rhs, host); } Xsd2UmlPluginForEdFi(); @Override List<TagDefinition> declareTagDefinitions(final Xsd2UmlPluginHost host); @Override String getAssociationEndTypeName(final ClassType classType, final Attribute attribute,
            final Xsd2UmlPluginHost host); @Override boolean isAssociationEnd(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host); @Override String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host); @Override String nameFromSchemaAttributeName(final QName name); @Override String nameFromSchemaElementName(final QName name); @Override List<TaggedValue> tagsFromAppInfo(final XmlSchemaAppInfo appInfo, final Xsd2UmlPluginHost host); }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host) { return host.nameAssociation(lhs, rhs, host); } Xsd2UmlPluginForEdFi(); @Override List<TagDefinition> declareTagDefinitions(final Xsd2UmlPluginHost host); @Override String getAssociationEndTypeName(final ClassType classType, final Attribute attribute,
            final Xsd2UmlPluginHost host); @Override boolean isAssociationEnd(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host); @Override String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host); @Override String nameFromSchemaAttributeName(final QName name); @Override String nameFromSchemaElementName(final QName name); @Override List<TaggedValue> tagsFromAppInfo(final XmlSchemaAppInfo appInfo, final Xsd2UmlPluginHost host);  }