示例#1
0
 @Test
 public void shouldRemoveAllOccurencesOfAParamFromItsKey() {
   QueryTestImpl query =
       this.query.addParam("city", "paris").addParam("name", "toto").addParam("name", "tata");
   query.removeParam("name");
   assertThat(query.buildParams().toString()).isEqualTo("?city=paris");
 }
示例#2
0
 @Test
 public void shouldNotCrashWhenRemovingParamOfNoParam() {
   QueryTestImpl noParam = this.query;
   assertThat(noParam.removeParam("toto")).isNotNull();
 }