@Test
public void testCreateMediaTypeDelegate() {
final HeaderDelegate<MediaType> d = RuntimeDelegate.getInstance().createHeaderDelegate(MediaType.class);
assertNotNull(d);
assertTrue(d instanceof MinijaxMediaTypeDelegate);
}
java类javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate的实例源码
RuntimeDelegateTest.java 文件源码
项目:minijax
阅读 25
收藏 0
点赞 0
评论 0
RuntimeDelegateTest.java 文件源码
项目:minijax
阅读 20
收藏 0
点赞 0
评论 0
@Test
public void testCreateCookieDelegate() {
final HeaderDelegate<Cookie> d = RuntimeDelegate.getInstance().createHeaderDelegate(Cookie.class);
assertNotNull(d);
assertTrue(d instanceof MinijaxCookieDelegate);
}
RuntimeDelegateTest.java 文件源码
项目:minijax
阅读 21
收藏 0
点赞 0
评论 0
@Test
public void testCreateNewCookieDelegate() {
final HeaderDelegate<NewCookie> d = RuntimeDelegate.getInstance().createHeaderDelegate(NewCookie.class);
assertNotNull(d);
assertTrue(d instanceof MinijaxNewCookieDelegate);
}