@Test public void getUsernameWithNull() throws ComponentLookupException { Owner o = new DefaultOwner(null, this.helper); Assert.assertNull(o.getUsername()); }
@Override public String getUsername() { if (this.user == null) { return null; } return this.user.getName(); }
DefaultOwner implements Owner { @Override public String getUsername() { if (this.user == null) { return null; } return this.user.getName(); } }
DefaultOwner implements Owner { @Override public String getUsername() { if (this.user == null) { return null; } return this.user.getName(); } DefaultOwner(EntityReference user, EntityAccessHelper helper); }
DefaultOwner implements Owner { @Override public String getUsername() { if (this.user == null) { return null; } return this.user.getName(); } DefaultOwner(EntityReference user, EntityAccessHelper helper); @Override String getType(); @Override boolean isUser(); @Override boolean isGroup(); @Override EntityReference getUser(); @Override String getUsername(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
DefaultOwner implements Owner { @Override public String getUsername() { if (this.user == null) { return null; } return this.user.getName(); } DefaultOwner(EntityReference user, EntityAccessHelper helper); @Override String getType(); @Override boolean isUser(); @Override boolean isGroup(); @Override EntityReference getUser(); @Override String getUsername(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }