Skip to content

Commit d43b6af

Browse files
Update DeserializeInterceptorTest.java
1 parent 9d31569 commit d43b6af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ipp-v3-java-devkit/src/test/java/com/intuit/ipp/interceptors/DeserializeInterceptorTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ public void testCheckTouchlessExecution() throws FMSException {
3636
message.getResponseElements().setResponse(response);
3737
instance.execute(message);
3838
Assert.assertEquals(message.getResponseElements().getResponse(), null);
39+
}
40+
41+
@Test
42+
public void testCheckEntitlementsExecution() throws FMSException {
43+
44+
message.getResponseElements().setContentTypeHeader("application/json");
45+
IntuitResponse response = new IntuitResponse();
46+
response.setStatus("example");
47+
message.setEntitlementService(true);
48+
message.getResponseElements().setResponse(response);
49+
instance.execute(message);
50+
Assert.assertEquals(message.getResponseElements().getResponse().getClass(), IntuitResponse.class);
3951

4052
}
4153

0 commit comments

Comments
 (0)