Jersey单元测试

1、jar包

		
			org.glassfish.jersey.test-framework.providers
			jersey-test-framework-provider-grizzly2
			${jersey.version}
		
		
			org.glassfish.jersey.test-framework.providers
			jersey-test-framework-provider-inmemory
			${jersey.version}
		
		
			org.glassfish.jersey.test-framework.providers
			jersey-test-framework-provider-jdk-http
			${jersey.version}
		
		
			org.glassfish.jersey.test-framework.providers
			jersey-test-framework-provider-simple
			${jersey.version}
		
		
			org.glassfish.jersey.test-framework.providers
			jersey-test-framework-provider-jetty
			${jersey.version}
		

2、测试类

public class Jersey extends JerseyTest {

	@Override
	protected Application configure() {
		return new ResourceConfig(DatazoneApplication.class);//启动容器类
	}

	@Test
	public void testwhatdoyouwant() {
         
 
	}
}

 

你可能感兴趣的:(java)