Lines Matching refs:testServer
50 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
51 assertEquals(0, this.testServer.decodedParamters.get("foo").size());
52 assertTrue(this.testServer.decodedParamters.get("bar") instanceof List);
53 assertEquals(1, this.testServer.decodedParamters.get("bar").size());
54 assertEquals("", this.testServer.decodedParamters.get("bar").get(0));
60 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
61 assertEquals(2, this.testServer.decodedParamters.get("foo").size());
62 assertEquals("bar", this.testServer.decodedParamters.get("foo").get(0));
63 assertEquals("baz", this.testServer.decodedParamters.get("foo").get(1));
64 assertTrue(this.testServer.decodedParamters.get("zot") instanceof List);
65 assertEquals(0, this.testServer.decodedParamters.get("zot").size());
66 assertTrue(this.testServer.decodedParamters.get("zim") instanceof List);
67 assertEquals(1, this.testServer.decodedParamters.get("zim").size());
68 assertEquals("", this.testServer.decodedParamters.get("zim").get(0));
74 assertEquals(this.testServer.decodedParamters, this.testServer.decodedParamtersFromParameter);
83 assertEquals("foo=bar&baz=zot", this.testServer.queryParameterString);
84 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
85 assertEquals(1, this.testServer.decodedParamters.get("foo").size());
86 assertEquals("bar", this.testServer.decodedParamters.get("foo").get(0));
87 assertTrue(this.testServer.decodedParamters.get("baz") instanceof List);
88 assertEquals(1, this.testServer.decodedParamters.get("baz").size());
89 assertEquals("zot", this.testServer.decodedParamters.get("baz").get(0));
95 assertEquals("foo&baz=zot", this.testServer.queryParameterString);
96 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
97 assertEquals(0, this.testServer.decodedParamters.get("foo").size());
98 assertTrue(this.testServer.decodedParamters.get("baz") instanceof List);
99 assertEquals(1, this.testServer.decodedParamters.get("baz").size());
100 assertEquals("zot", this.testServer.decodedParamters.get("baz").get(0));
106 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
107 assertEquals(2, this.testServer.decodedParamters.get("foo").size());
108 assertEquals("bar", this.testServer.decodedParamters.get("foo").get(0));
109 assertEquals("baz", this.testServer.decodedParamters.get("foo").get(1));
115 assertNotNull(this.testServer.parms);
116 assertNotNull(this.testServer.header);
117 assertNotNull(this.testServer.files);
118 assertNotNull(this.testServer.uri);
140 assertEquals("bar", this.testServer.parms.get("foo"));
141 assertEquals("zot", this.testServer.parms.get("baz"));
147 assertEquals("", this.testServer.parms.get("foo"));
148 assertEquals("zot", this.testServer.parms.get("baz"));
154 assertEquals("", this.testServer.parms.get("foo"));
155 assertEquals("zot", this.testServer.parms.get("baz"));
156 assertEquals("text/html", this.testServer.header.get("accept"));
164 assertEquals(userAgent, this.testServer.header.get("user-agent"));
165 assertEquals(accept, this.testServer.header.get("accept"));
171 this.testServer.response = NanoHTTPD.newFixedLengthResponse(responseBody);
190 assertEquals("bar", this.testServer.parms.get("foo"));
196 assertEquals("", this.testServer.parms.get("foo"));
203 assertEquals(userAgent, this.testServer.header.get("user-agent"));
204 assertEquals(NanoHTTPD.Method.GET, this.testServer.method);
205 assertEquals(HttpServerTest.URI, this.testServer.uri);