HomeSort by relevance Sort by last modified time
    Searched refs:testServer (Results 1 - 25 of 203) sorted by null

1 2 3 4 5 6 7 8 9

  /external/nanohttpd/core/src/test/java/fi/iki/elonen/
InvalidRequestTest.java 46 assertNotNull(this.testServer.parms);
47 assertTrue(this.testServer.header.size() > 0);
48 assertNotNull(this.testServer.files);
49 assertNotNull(this.testServer.uri);
56 assertNotNull(this.testServer.parms);
57 assertTrue(this.testServer.header.size() > 0);
58 assertNotNull(this.testServer.files);
59 assertNotNull(this.testServer.uri);
65 assertNotNull(this.testServer.parms);
66 assertTrue(this.testServer.header.size() > 0)
    [all...]
HttpGetRequestTest.java 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)
    [all...]
HttpHeadRequestTest.java 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))
    [all...]
HttpSSLServerTest.java 61 Assert.assertEquals(9043, this.testServer.getListeningPort());
62 Assert.assertTrue(this.testServer.isAlive());
68 this.testServer = new TestServer(9043);
69 this.testServer.makeSecure(NanoHTTPD.makeSSLSocketFactory("/keystore.jks", "password".toCharArray()), null);
71 this.testServer.start();
75 while (!this.testServer.wasStarted()) {
87 this.testServer.stop();
SSLServerSocketFactoryTest.java 62 Assert.assertEquals(9043, this.testServer.getListeningPort());
63 Assert.assertTrue(this.testServer.isAlive());
69 this.testServer = new TestServer(9043);
70 this.testServer.setServerSocketFactory(new SecureServerSocketFactory(NanoHTTPD.makeSSLSocketFactory("/keystore.jks", "password".toCharArray()), null));
72 this.testServer.start();
76 while (!this.testServer.wasStarted()) {
88 this.testServer.stop();
HttpParsingTest.java 46 assertEquals(expected, this.testServer.decodePercent(input));
55 assertEquals("" + expected, this.testServer.decodePercent(input));
61 assertEquals("foo bar", this.testServer.decodePercent("foo+bar"));
HttpDeleteRequestTest.java 45 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_HTML, "");
63 this.testServer.response = NanoHTTPD.newChunkedResponse(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_HTML, (InputStream) null);
81 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_HTML, (String) null);
99 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.ACCEPTED, "application/xml", "<body />");
118 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, "application/xml", "<body />");
HttpPostRequestTest.java 94 assertEquals(1, this.testServer.parms.size());
95 BufferedReader reader = new BufferedReader(new FileReader(this.testServer.files.get(HttpPostRequestTest.FIELD)));
110 String fileNameAfter = new ArrayList<String>(this.testServer.parms.values()).get(0);
129 assertEquals(2, this.testServer.parms.size());
130 assertEquals(HttpPostRequestTest.VALUE, this.testServer.parms.get(HttpPostRequestTest.FIELD));
131 assertEquals(HttpPostRequestTest.VALUE2, this.testServer.parms.get(HttpPostRequestTest.FIELD2));
148 assertEquals(2, this.testServer.parms.size());
149 assertEquals(HttpPostRequestTest.VALUE, this.testServer.parms.get(HttpPostRequestTest.FIELD));
150 assertEquals(HttpPostRequestTest.VALUE2, this.testServer.parms.get(HttpPostRequestTest.FIELD2));
166 assertEquals(1, this.testServer.parms.size())
    [all...]
HttpChunkedResponseTest.java 88 this.testServer.response = new NanoHTTPD(0) {
90 this.testServer.response.setChunkedTransfer(true);
HttpPutRequestTest.java 62 assertTrue(this.testServer.files.containsKey("content"));
69 reader = new BufferedReader(new FileReader(this.testServer.files.get("content")));
HttpServerTest.java 62 public static class TestServer extends NanoHTTPD {
82 public TestServer() {
86 public TestServer(int port) {
131 protected TestServer testServer;
156 NanoHTTPD.HTTPSession session = this.testServer.createSession(this.tempFileManager, inputStream, outputStream);
180 this.testServer = new TestServer();
191 assertNotNull(this.testServer);
HttpSessionHeadersTest.java 63 NanoHTTPD.HTTPSession session = this.testServer.createSession(HttpSessionHeadersTest.TEST_TEMP_FILE_MANAGER, inputStream, outputStream, inetAddress);
HttpKeepAliveTest.java 98 NanoHTTPD.HTTPSession session = HttpKeepAliveTest.this.testServer.createSession(tempFileManager, inputStream, outputStream);
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
IntegrationTestBase.java 51 protected T testServer;
57 this.testServer = createTestServer();
60 this.testServer.start();
69 this.testServer.stop();
GZipIntegrationTest.java 56 public class GZipIntegrationTest extends IntegrationTestBase<GZipIntegrationTest.TestServer> {
58 public static class TestServer extends NanoHTTPD {
62 public TestServer() {
78 public TestServer createTestServer() {
79 return new TestServer();
84 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test");
96 testServer.response = NanoHTTPD.newChunkedResponse(NanoHTTPD.Response.Status.OK, "text/plain", data);
107 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test");
118 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test");
128 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test")
    [all...]
CookieIntegrationTest.java 87 this.testServer.cookiesToSend.add(new NanoHTTPD.Cookie("name", "value", 30));
120 assertEquals(1, this.testServer.cookiesReceived.size());
121 assertTrue(this.testServer.cookiesReceived.get(0).getHTTPHeader().contains("name=value"));
GetAndPostIntegrationTest.java 65 public class GetAndPostIntegrationTest extends IntegrationTestBase<GetAndPostIntegrationTest.TestServer> {
67 public static class TestServer extends NanoHTTPD {
71 public TestServer() {
97 public TestServer createTestServer() {
98 return new TestServer();
103 this.testServer.response = "testGetRequestWithParameters";
114 this.testServer.response = "testPostRequestWithFormEncodedParameters";
130 this.testServer.response = "testPostRequestWithMultipartEncodedParameters";
146 this.testServer.response = "testPostWithNoParameters";
157 this.testServer.response = "testSimpleGetRequest"
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_smtpnet.py 10 testServer = 'smtp.gmail.com'
15 with test_support.transient_internet(self.testServer):
16 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
22 with test_support.transient_internet(self.testServer):
23 server = smtplib.SMTP_SSL(self.testServer)
  /external/python/cpython2/Lib/test/
test_smtpnet.py 8 testServer = 'smtp.gmail.com'
13 with test_support.transient_internet(self.testServer):
14 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
20 with test_support.transient_internet(self.testServer):
21 server = smtplib.SMTP_SSL(self.testServer)
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_smtpnet.py 10 testServer = 'smtp.gmail.com'
15 with test_support.transient_internet(self.testServer):
16 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
22 with test_support.transient_internet(self.testServer):
23 server = smtplib.SMTP_SSL(self.testServer)
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_smtpnet.py 10 testServer = 'smtp.gmail.com'
15 with test_support.transient_internet(self.testServer):
16 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
22 with test_support.transient_internet(self.testServer):
23 server = smtplib.SMTP_SSL(self.testServer)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_smtpnet.py 10 testServer = 'smtp.gmail.com'
15 with test_support.transient_internet(self.testServer):
16 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
22 with test_support.transient_internet(self.testServer):
23 server = smtplib.SMTP_SSL(self.testServer)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_smtpnet.py 10 testServer = 'smtp.gmail.com'
15 with test_support.transient_internet(self.testServer):
16 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
22 with test_support.transient_internet(self.testServer):
23 server = smtplib.SMTP_SSL(self.testServer)
  /external/nanohttpd/fileupload/src/test/java/fi/iki/elonen/
TestNanoFileUpLoad.java 82 protected TestServer testServer;
84 public static class TestServer extends NanoHTTPD {
104 public TestServer() {
183 FileItem file = this.testServer.files.get("upfile").get(0);
194 FileItem file = this.testServer.files.get("upfile").get(0);
205 FileItem file = this.testServer.files.get("upfile").get(0);
226 this.testServer = new TestServer();
227 this.testServer.start()
    [all...]
  /cts/tests/tests/webkit/src/android/webkit/cts/
WebViewClientTest.java 234 TestWebServer testServer = null;
244 testServer = new TestWebServer(false);
245 String url = testServer.setResponse(path, page, headers);
259 testServer.shutdown();
    [all...]

Completed in 289 milliseconds

1 2 3 4 5 6 7 8 9