EPerson extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public int getType() { return Constants.EPERSON; } protected  EPerson(); @Override Integer getLegacyId(); @Override boolean equals(Object obj); @Override int hashCode(); String getLanguage(); void setLanguage(Context context, String language); String getEmail(); void setEmail(String s); String getNetid(); void setNetid(String netid); String getFullName(); String getFirstName(); void setFirstName(Context context, String firstname); String getLastName(); void setLastName(Context context, String lastname); void setCanLogIn(boolean login); boolean canLogIn(); void setRequireCertificate(boolean isrequired); boolean getRequireCertificate(); void setSelfRegistered(boolean sr); boolean getSelfRegistered(); void setLastActive(Date when); Date getLastActive(); @Override int getType(); @Override String getName(); List<Group> getGroups(); static final int EMAIL; static final int LASTNAME; static final int ID; static final int NETID; static final int LANGUAGE; }
@Test public void testGetType() throws SQLException { System.out.println("getType"); int expResult = Constants.EPERSON; int result = eperson.getType(); assertEquals("Should return Constants.EPERSON", expResult, result); }