ShortUrl implements Serializable { public void setFullUrl(String fullUrl) { this.fullUrl = fullUrl; }  static Long shortCodeToId(String shortCode); Long getId(); void setId(Long id); String getFullUrl(); void setFullUrl(String fullUrl); @Transient String getShortUrl(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void fullUrlStillValidWithoutWWW() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }
@Test public void fullUrlStillValidWithParameters() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }
@Test public void fullUrlMustHaveDomainPostfix() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }
@Test public void fullUrlCanHaveUncommonDomainPostfixBiz() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }
@Test public void fullUrlCanHaveUncommonDomainPostfixInfo() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }
@Test public void fullUrlCanHaveUncommonDomainPostfixName() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }
@Test public void fullUrlCanHaveUncommonDomainPostfixLy() { shortUrl.setFullUrl("http: constraintViolations = validator.validate(shortUrl); assertEquals(0, constraintViolations.size()); }