@Test public void testSetTypeSubtype() { ContentType contentType = new ContentType("text/xml"); contentType.setTypeSubtype("application/javascript"); assertEquals("application/javascript", contentType.getTypeSubtype()); assertEquals("application/javascript", contentType.toString()); contentType = new ContentType(" image/svg+xml; charset=UTF-8"); contentType.setTypeSubtype("application/javascript"); assertEquals("application/javascript", contentType.getTypeSubtype()); assertEquals("application/javascript; charset=UTF-8", contentType.toString()); contentType = new ContentType(" application/vnd.oasis.opendocument.text ; charset=UTF-8 ; version=1 "); contentType.setTypeSubtype("application/javascript"); assertEquals("application/javascript", contentType.getTypeSubtype()); assertEquals("application/javascript; charset=UTF-8; version=1", contentType.toString()); }
public void setTypeSubtype(String typeSubtype) { this.typeSubtype = typeSubtype; }
ContentType { public void setTypeSubtype(String typeSubtype) { this.typeSubtype = typeSubtype; } }
ContentType { public void setTypeSubtype(String typeSubtype) { this.typeSubtype = typeSubtype; } ContentType(String str); }
ContentType { public void setTypeSubtype(String typeSubtype) { this.typeSubtype = typeSubtype; } ContentType(String str); String getTypeSubtype(); void setTypeSubtype(String typeSubtype); String getCharset(); @Override String toString(); }
ContentType { public void setTypeSubtype(String typeSubtype) { this.typeSubtype = typeSubtype; } ContentType(String str); String getTypeSubtype(); void setTypeSubtype(String typeSubtype); String getCharset(); @Override String toString();  }