Jerseyユニットテスト

1324 ワード

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() {
         
 
	}
}