@Test public void viewProperty_asTriple_TransposesSubjectAndObject() { Any subject = mock(Any.class); Any object = mock(Any.class); VarSupply vars = mock(VarSupply.class); RDFQ.Triple triple = mock(RDFQ.Triple.class); when(vp.asTriple(object, subject, vars)).thenReturn(triple); RDFQ.Triple result = getViewProperty().asTriple(subject, object, vars); assertEquals(triple, result); }
@Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { ViewProperty vp = factory.getImpl(definition); return new InverseProperty(vp); }
InverseDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { ViewProperty vp = factory.getImpl(definition); return new InverseProperty(vp); } }
InverseDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { ViewProperty vp = factory.getImpl(definition); return new InverseProperty(vp); }  }
InverseDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { ViewProperty vp = factory.getImpl(definition); return new InverseProperty(vp); }  @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory); }
InverseDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { ViewProperty vp = factory.getImpl(definition); return new InverseProperty(vp); }  @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory);  }