@Test public void viewProperty_shortName_ReturnsShortName() { when(ctx.getNameForURI(uri)).thenReturn("defn"); String name = getViewProperty().shortName(ctx); assertEquals("defn", name); }
@Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } ShortNameDefinitionParser(ShortnameService svc); }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } ShortNameDefinitionParser(ShortnameService svc); @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory); }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } ShortNameDefinitionParser(ShortnameService svc); @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory);  }