3233343536373839404142
public class SearchStringTest { public void main_param() { SearchString s = new SearchString("abc"); Param p = s.param(); assertThat(p.toString(), equalTo("abc")); } public void main_param_trim() {
4041424344454647484950
} public void main_param_trim() { SearchString s = new SearchString(" abc "); Param p = s.param(); assertThat(p.toString(), equalTo("abc")); } public void var_param() {
4849505152535455565758
} public void var_param() { SearchString s = new SearchString("abc var:xyz"); Param p = s.param(); Param var = s.param("var"); assertThat(p.toString(), equalTo("abc")); assertThat(var.toString(), equalTo("xyz")); }
4950515253545556575859
public void var_param() { SearchString s = new SearchString("abc var:xyz"); Param p = s.param(); Param var = s.param("var"); assertThat(p.toString(), equalTo("abc")); assertThat(var.toString(), equalTo("xyz")); }
5859606162636465666768
} public void var_param_empty() { SearchString s = new SearchString("abc var:"); Param p = s.param(); Param var = s.param("var"); assertThat(p.toString(), equalTo("abc")); assertTrue(var.isEmpty()); assertThat(var.toString(), equalTo(""));
5960616263646566676869
public void var_param_empty() { SearchString s = new SearchString("abc var:"); Param p = s.param(); Param var = s.param("var"); assertThat(p.toString(), equalTo("abc")); assertTrue(var.isEmpty()); assertThat(var.toString(), equalTo("")); }