Package com.jsonws.doc

Source Code of com.jsonws.doc.TestCheckEndPonitDocument

package com.jsonws.doc;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

import com.jsonws.JSONCodecTest;

public class TestCheckEndPonitDocument extends JSONCodecTest{
 
  public void testEndpointDocument() throws MalformedURLException, IOException{
    HttpURLConnection connection = (HttpURLConnection) new URL(END_POINT).openConnection();
    assertEquals(connection.getResponseCode(), 200);
   
    connection = (HttpURLConnection) new URL(END_POINT + "?config").openConnection();
    assertEquals(connection.getResponseCode(), 200);
  }
}
TOP

Related Classes of com.jsonws.doc.TestCheckEndPonitDocument

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.