@Test public void viewProperty_asTriple_ReturnsAnyRelation() { Any subject = mock(Any.class); Any object = mock(Any.class); Variable newVar = mock(Variable.class); VarSupply vars = mock(VarSupply.class); Mockito.when(vars.newVar()).thenReturn(newVar); RDFQ.Triple triple = getViewProperty().asTriple(subject, object, vars); assertEquals(subject, triple.S); assertEquals(object, triple.O); assertEquals(newVar, triple.P); }
@Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { return new WildcardProperty(); }
WildcardDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { return new WildcardProperty(); } }
WildcardDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { return new WildcardProperty(); }  }
WildcardDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { return new WildcardProperty(); }  @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory); }
WildcardDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { return new WildcardProperty(); }  @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory);  }