Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions src/test/java/io/harness/jhttp/functional/HttpClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,47 @@ public void testReflection() throws IOException {
}

@Test
public void testDirectoryIndex() throws IOException {
public void testDirectoryIndex() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/directory1", "/http-server/server-root/directory1/index.html");
}

@Test
public void testStaticFile() throws IOException {
public void testStaticFile() throws IOException , InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile123() throws IOException , InterruptedException{
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile1234() throws IOException , InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile2234() throws IOException , InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile2341() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void test404() throws IOException {
testRequest("/invalid-file.html", "/http-server/404.html", 404);
Expand Down