@Test(expected = IllegalArgumentException.class) public void cannotSetNullOrganization() { test.setOrganization(null); }
public void setOrganization(String organization) { if (organization == null || "".equals(organization.trim())) { throw new IllegalArgumentException("Identifier passed to Identification#setOrganization() must be non-null and not all whitespace"); } this.organization = organization; }
Identification { public void setOrganization(String organization) { if (organization == null || "".equals(organization.trim())) { throw new IllegalArgumentException("Identifier passed to Identification#setOrganization() must be non-null and not all whitespace"); } this.organization = organization; } }
Identification { public void setOrganization(String organization) { if (organization == null || "".equals(organization.trim())) { throw new IllegalArgumentException("Identifier passed to Identification#setOrganization() must be non-null and not all whitespace"); } this.organization = organization; } Identification();  Identification(String organization);  Identification(String organization, long timestamp); }
Identification { public void setOrganization(String organization) { if (organization == null || "".equals(organization.trim())) { throw new IllegalArgumentException("Identifier passed to Identification#setOrganization() must be non-null and not all whitespace"); } this.organization = organization; } Identification();  Identification(String organization);  Identification(String organization, long timestamp); String getOrganization(); void setOrganization(String organization); long getTimestamp(); void setTimestamp(long timestamp); String getToken(); void setToken(String token); }
Identification { public void setOrganization(String organization) { if (organization == null || "".equals(organization.trim())) { throw new IllegalArgumentException("Identifier passed to Identification#setOrganization() must be non-null and not all whitespace"); } this.organization = organization; } Identification();  Identification(String organization);  Identification(String organization, long timestamp); String getOrganization(); void setOrganization(String organization); long getTimestamp(); void setTimestamp(long timestamp); String getToken(); void setToken(String token);  }