src/test/java/openjdk/http/tutorial/Exercise1Test.java
branchhttp-client-tutorial
changeset 56016 bc8bc0b99add
parent 56013 08b6eca8daae
child 56018 40e766eb611b
equal deleted inserted replaced
56015:2935d85cc14f 56016:bc8bc0b99add
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 package openjdk.http.tutorial;
    24 package openjdk.http.tutorial;
    25 
    25 
    26 /**
       
    27  * @author Chris Hegarty
       
    28  */
       
    29 
       
    30 import java.io.IOException;
    26 import java.io.IOException;
    31 import java.io.UncheckedIOException;
    27 import java.io.UncheckedIOException;
    32 import java.net.URI;
    28 import java.net.URI;
    33 import java.nio.file.Files;
    29 import java.nio.file.Files;
    34 import java.nio.file.Path;
    30 import java.nio.file.Path;
    58 import static jdk.incubator.http.HttpResponse.BodyHandler.asFile;
    54 import static jdk.incubator.http.HttpResponse.BodyHandler.asFile;
    59 import static jdk.incubator.http.HttpResponse.BodyHandler.asString;
    55 import static jdk.incubator.http.HttpResponse.BodyHandler.asString;
    60 import static jdk.incubator.http.HttpResponse.BodyHandler.discard;
    56 import static jdk.incubator.http.HttpResponse.BodyHandler.discard;
    61 import static org.junit.Assert.assertEquals;
    57 import static org.junit.Assert.assertEquals;
    62 
    58 
       
    59 /**
       
    60  * @author Chris Hegarty
       
    61  */
    63 public class Exercise1Test {
    62 public class Exercise1Test {
    64 
    63 
    65     @Test
    64     @Test
    66     public void retrieveTheStatusCode()
    65     public void retrieveTheStatusCode()
    67         throws IOException, InterruptedException
    66         throws IOException, InterruptedException