File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/java/com/ibm/cloud/sdk/core/test/service Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 29
29
import com .ibm .cloud .sdk .core .service .model .GenericModel ;
30
30
import com .ibm .cloud .sdk .core .test .WatsonServiceUnitTest ;
31
31
import com .ibm .cloud .sdk .core .util .ResponseConverterUtils ;
32
-
33
32
import okhttp3 .HttpUrl ;
34
33
import okhttp3 .mockwebserver .MockResponse ;
35
34
import org .junit .Before ;
@@ -287,6 +286,8 @@ public void testServiceUnavailable() {
287
286
ServiceUnavailableException ex = (ServiceUnavailableException ) e ;
288
287
assertEquals (503 , ex .getStatusCode ());
289
288
assertEquals (message , ex .getMessage ());
289
+ assertTrue (ex .getHeaders ().names ().contains (CONTENT_TYPE ));
290
+ assertTrue (ex .getHeaders ().values (CONTENT_TYPE ).contains (HttpMediaType .APPLICATION_JSON ));
290
291
}
291
292
}
292
293
You can’t perform that action at this time.
0 commit comments