VIVO-799 Add setRdfsLabel() to unit test class.

This commit is contained in:
Jim Blake 2014-06-18 17:41:38 -04:00
parent 10461fb16d
commit baf0d59a68

View file

@ -46,16 +46,17 @@ public class IndividualStub implements Individual {
public IndividualStub(String uri) {
this.uri = uri;
Resource r = ResourceFactory.createResource(uri);
this.namespace = r.getNameSpace();
this.localName = r.getLocalName();
Resource r = ResourceFactory.createResource(uri);
this.namespace = r.getNameSpace();
this.localName = r.getLocalName();
}
public void addDataPropertyStatement(String predicateUri, String object) {
dpsSet.add(new DataPropertyStatementImpl(this.uri, predicateUri, object));
}
public void addObjectPropertyStatement(ObjectProperty property, String objectUri) {
public void addObjectPropertyStatement(ObjectProperty property,
String objectUri) {
ObjectPropertyStatementImpl ops = new ObjectPropertyStatementImpl();
ops.setSubject(this);
ops.setProperty(property);
@ -493,4 +494,11 @@ public class IndividualStub implements Individual {
throw new RuntimeException(
"Individual.setSearchSnippet() not implemented.");
}
@Override
public void setRdfsLabel(String in) {
throw new RuntimeException(
"IndividualStub.setRdfsLabel() not implemented.");
}
}