VIVO-799 Add setRdfsLabel() to unit test class.
This commit is contained in:
parent
10461fb16d
commit
baf0d59a68
1 changed files with 12 additions and 4 deletions
|
@ -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.");
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue