@Test public void testGetMongoName() throws Exception { final Multiplicity multiplicity = new Multiplicity(new Range(Occurs.ZERO, Occurs.ONE)); final List<TaggedValue> taggedValueList = new ArrayList<TaggedValue>(); final Identifier id = Identifier.fromString("1234"); taggedValueList.add(new TaggedValue("CollectionName", id)); final AssociationEnd mockEnd = new AssociationEnd(multiplicity, "MockEnd", true, taggedValueList, Identifier.random(), "AssocEnd"); final ModelIndex mockIndex = Mockito.mock(ModelIndex.class); final TagDefinition trueTagDef = new TagDefinition(id, TagName.MONGO_NAME, multiplicity); Mockito.when(mockIndex.getTagDefinition(id)).thenReturn(trueTagDef); Assert.assertEquals("CollectionName", PluginHelpers.getMongoName(mockEnd, mockIndex)); }
public static final String getMongoName(final Feature feature, final ModelIndex model) { return TaggedValueHelper.getStringTag(TagName.MONGO_NAME, feature, model, null); }
PluginHelpers { public static final String getMongoName(final Feature feature, final ModelIndex model) { return TaggedValueHelper.getStringTag(TagName.MONGO_NAME, feature, model, null); } }
PluginHelpers { public static final String getMongoName(final Feature feature, final ModelIndex model) { return TaggedValueHelper.getStringTag(TagName.MONGO_NAME, feature, model, null); }  }
PluginHelpers { public static final String getMongoName(final Feature feature, final ModelIndex model) { return TaggedValueHelper.getStringTag(TagName.MONGO_NAME, feature, model, null); }  static final void writeDocumentation(final Taggable taggable, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); static final boolean isMongoNavigable(final AssociationEnd associationEnd, final ModelIndex model); static final boolean hasMongoName(final Feature feature, final ModelIndex model); static final String getMongoName(final Feature feature, final ModelIndex model); }
PluginHelpers { public static final String getMongoName(final Feature feature, final ModelIndex model) { return TaggedValueHelper.getStringTag(TagName.MONGO_NAME, feature, model, null); }  static final void writeDocumentation(final Taggable taggable, final ModelIndex model,
            final Uml2XsdPluginWriter xsw); static final boolean isMongoNavigable(final AssociationEnd associationEnd, final ModelIndex model); static final boolean hasMongoName(final Feature feature, final ModelIndex model); static final String getMongoName(final Feature feature, final ModelIndex model);  }