Package mjg

Source Code of mjg.GroovyResourceTest

package mjg;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.test.framework.JerseyTest;

public class GroovyResourceTest extends JerseyTest {

  public GroovyResourceTest() {
    super("mjg");
  }

  @Test
  public void testShow() {
    WebResource webResource = resource();
    String responseMsg = webResource.path("helloworld").get(String.class);
    assertEquals("Hello, World!", responseMsg);
  }

}
TOP

Related Classes of mjg.GroovyResourceTest

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.