Lines Matching refs:testServer
51 this.testServer.response = NanoHTTPD.newFixedLengthResponse(responseBody);
57 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
58 assertEquals(0, this.testServer.decodedParamters.get("foo").size());
59 assertTrue(this.testServer.decodedParamters.get("bar") instanceof List);
60 assertEquals(1, this.testServer.decodedParamters.get("bar").size());
61 assertEquals("", this.testServer.decodedParamters.get("bar").get(0));
67 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
68 assertEquals(2, this.testServer.decodedParamters.get("foo").size());
69 assertEquals("bar", this.testServer.decodedParamters.get("foo").get(0));
70 assertEquals("baz", this.testServer.decodedParamters.get("foo").get(1));
71 assertTrue(this.testServer.decodedParamters.get("zot") instanceof List);
72 assertEquals(0, this.testServer.decodedParamters.get("zot").size());
73 assertTrue(this.testServer.decodedParamters.get("zim") instanceof List);
74 assertEquals(1, this.testServer.decodedParamters.get("zim").size());
75 assertEquals("", this.testServer.decodedParamters.get("zim").get(0));
81 assertEquals(this.testServer.decodedParamters, this.testServer.decodedParamtersFromParameter);
90 assertEquals("foo=bar&baz=zot", this.testServer.queryParameterString);
91 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
92 assertEquals(1, this.testServer.decodedParamters.get("foo").size());
93 assertEquals("bar", this.testServer.decodedParamters.get("foo").get(0));
94 assertTrue(this.testServer.decodedParamters.get("baz") instanceof List);
95 assertEquals(1, this.testServer.decodedParamters.get("baz").size());
96 assertEquals("zot", this.testServer.decodedParamters.get("baz").get(0));
102 assertEquals("foo&baz=zot", this.testServer.queryParameterString);
103 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
104 assertEquals(0, this.testServer.decodedParamters.get("foo").size());
105 assertTrue(this.testServer.decodedParamters.get("baz") instanceof List);
106 assertEquals(1, this.testServer.decodedParamters.get("baz").size());
107 assertEquals("zot", this.testServer.decodedParamters.get("baz").get(0));
113 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List);
114 assertEquals(2, this.testServer.decodedParamters.get("foo").size());
115 assertEquals("bar", this.testServer.decodedParamters.get("foo").get(0));
116 assertEquals("baz", this.testServer.decodedParamters.get("foo").get(1));
122 assertNotNull(this.testServer.parms);
123 assertNotNull(this.testServer.header);
124 assertNotNull(this.testServer.files);
125 assertNotNull(this.testServer.uri);
147 assertEquals("bar", 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"));
161 assertEquals("", this.testServer.parms.get("foo"));
162 assertEquals("zot", this.testServer.parms.get("baz"));
163 assertEquals("text/html", this.testServer.header.get("accept"));
171 assertEquals(userAgent, this.testServer.header.get("user-agent"));
172 assertEquals(accept, this.testServer.header.get("accept"));
178 assertEquals("bar", this.testServer.parms.get("foo"));
184 assertEquals("", this.testServer.parms.get("foo"));
191 assertEquals(userAgent, this.testServer.header.get("user-agent"));
192 assertEquals(NanoHTTPD.Method.HEAD, this.testServer.method);
193 assertEquals(HttpServerTest.URI, this.testServer.uri);