httpparams.removeParam(aName1);
assertTrue("removed " + aName1 + " but getParam returned value " + httpparams.getParam(aName1), httpparams.getParam(aName1).equals(""));
}
public void testRemoveParam2() {
HttpParams httpparams = new HttpParams("https://www.siemens.com/pfad/zum/servlet/SieMap?a=b&c=d&a=e");
String aName1= "x";
Enumeration tNames = httpparams.getParameterNames();
int sizeBefore = 0;
while (tNames.hasMoreElements()) {
tNames.nextElement();
sizeBefore++;
}
httpparams.removeParam(aName1);
tNames = httpparams.getParameterNames();
int sizeAfter = 0;
while (tNames.hasMoreElements()) {
tNames.nextElement();
sizeAfter++;
}