Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit fdc3d39

Browse files
committed
JERSEY-2696 testcase: client proxy incorrectly resets "Accept" header defined by @produces annotation
1 parent 3f3719a commit fdc3d39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/proxy-client/src/test/java/org/glassfish/jersey/client/proxy/WebResourceFactoryTest.java

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,10 @@ public void testFormParamsAsSortedSet() {
301301
String result = resource.postByNameFormSortedSet(set);
302302
assertEquals("3:[a, bb, ccc]", result);
303303
}
304+
305+
@Test
306+
public void testAcceptHeader() {
307+
assertTrue("Accept HTTP header does not match @Produces annotation", resource.isAcceptHeaderValid(null));
308+
}
309+
304310
}

0 commit comments

Comments
 (0)