use of jakarta.ws.rs.core.EntityTag in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method getEntityTagTest.
/*
* @testName: getEntityTagTest
*
* @assertion_ids: JAXRS:JAVADOC:847;
*
* @test_Strategy: Get the entity tag.
*/
@Test
public void getEntityTagTest() throws Fault {
String tag = "ABCDEF0123456789";
setProperty(Property.STATUS_CODE, getStatusCode(Status.NOT_MODIFIED));
Response response = invokePost("entitytag", tag);
EntityTag responseTag = response.getEntityTag();
assertEquals(tag, responseTag.getValue(), "response#getEntityTag()", responseTag.getValue(), "is unequal to expected EntityTag", tag);
logMsg("#getEntityTag is", responseTag, "as expected");
}
Aggregations