Skip to content

Commit b76e2cc

Browse files
Added test for 409 Conflict Exceptions
1 parent 3af47d8 commit b76e2cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/java/com/ibm/watson/developer_cloud/service/GenericServiceTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ public void testServiceUnavailableException() {
138138
service.getProfile(sampleText);
139139
}
140140

141+
/**
142+
* Test service conflict exception.
143+
*/
144+
@Test(expected = ConflictException.class)
145+
public void testConflictException() {
146+
mockAPICallWithError(409, "Conflict Exception");
147+
service.getProfile(sampleText);
148+
}
149+
141150
/**
142151
* Test too many requests exception.
143152
*/

0 commit comments

Comments
 (0)