Java 类javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate 实例源码

项目:minijax    文件:RuntimeDelegateTest.java   
@Test
public void testCreateMediaTypeDelegate() {
    final HeaderDelegate<MediaType> d = RuntimeDelegate.getInstance().createHeaderDelegate(MediaType.class);
    assertNotNull(d);
    assertTrue(d instanceof MinijaxMediaTypeDelegate);
}
项目:minijax    文件:RuntimeDelegateTest.java   
@Test
public void testCreateCookieDelegate() {
    final HeaderDelegate<Cookie> d = RuntimeDelegate.getInstance().createHeaderDelegate(Cookie.class);
    assertNotNull(d);
    assertTrue(d instanceof MinijaxCookieDelegate);
}
项目:minijax    文件:RuntimeDelegateTest.java   
@Test
public void testCreateNewCookieDelegate() {
    final HeaderDelegate<NewCookie> d = RuntimeDelegate.getInstance().createHeaderDelegate(NewCookie.class);
    assertNotNull(d);
    assertTrue(d instanceof MinijaxNewCookieDelegate);
}