BasicHeaderElement.formatAll(elements));
}
public void testFormatInvalidInput() throws Exception {
try {
BasicHeaderElement.format(null, new BasicHeaderElement("name1", "value1"));
fail("IllegalArgumentException should habe been thrown");
} catch (IllegalArgumentException ex) {
// expected
}
try {
BasicHeaderElement.format(new CharArrayBuffer(10), (HeaderElement) null);
fail("IllegalArgumentException should habe been thrown");
} catch (IllegalArgumentException ex) {
// expected
}
try {
BasicHeaderElement.formatAll(null, new HeaderElement[] {new BasicHeaderElement("name1", "value1")});
fail("IllegalArgumentException should habe been thrown");
} catch (IllegalArgumentException ex) {
// expected
}
try {