List<NameValuePair> params = parser.parseParameters(buf, cursor);
assertEquals(0, params.size());
}
public void testNameValueListParseEscaped() {
ByteSequence buf = ContentUtil.encode(
"test1 = \"\\\"stuff\\\"\"; test2= \"\\\\\"; test3 = \"stuff; stuff\"");
ParserCursor cursor = new ParserCursor(0, buf.length());
List<NameValuePair> params = parser.parseParameters(buf, cursor);
assertEquals(3, params.size());
assertEquals("test1", params.get(0).getName());
assertEquals("\"stuff\"", params.get(0).getValue());
assertEquals("test2", params.get(1).getName());