@Test public void testCreateAuth() throws Exception { when(authorizeServiceSpy.isAdmin(context)).thenReturn(true); String elem = "elem1"; String qual = "qual1"; MetadataField m = metadataFieldService.create(context, dcSchema, elem, qual, null); MetadataField found = metadataFieldService.findByElement(context, dcSchema, elem, qual); assertThat("testCreateAuth 0", found.getID(), equalTo(m.getID())); }
public Integer getID() { return id; }
MetadataField implements ReloadableEntity<Integer> { public Integer getID() { return id; } }
MetadataField implements ReloadableEntity<Integer> { public Integer getID() { return id; } protected  MetadataField(); }
MetadataField implements ReloadableEntity<Integer> { public Integer getID() { return id; } protected  MetadataField(); Integer getID(); String getElement(); void setElement(String element); String getQualifier(); void setQualifier(String qualifier); String getScopeNote(); void setScopeNote(String scopeNote); MetadataSchema getMetadataSchema(); void setMetadataSchema(MetadataSchema metadataSchema); @Override boolean equals(Object obj); @Override int hashCode(); String toString(char separator); @Override String toString(); }
MetadataField implements ReloadableEntity<Integer> { public Integer getID() { return id; } protected  MetadataField(); Integer getID(); String getElement(); void setElement(String element); String getQualifier(); void setQualifier(String qualifier); String getScopeNote(); void setScopeNote(String scopeNote); MetadataSchema getMetadataSchema(); void setMetadataSchema(MetadataSchema metadataSchema); @Override boolean equals(Object obj); @Override int hashCode(); String toString(char separator); @Override String toString();  }