Change-Id: I2eed44ead7b7b05f6b178c5a0b34b9641c223615
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
}
static void test_create(String urlStr, String content, String context) {
}
static void test_create(String urlStr, String content, String context) {
- try {
- URL url = new URL(urlStr);
- HttpURLConnection httpConn = httpURLConnectionFactoryPost(url, content);
- Assert.assertEquals(context, 201, httpConn.getResponseCode());
- } catch (IOException e) {
- throw new UncheckedIOException(e);
- }
+ test_create(urlStr, 201, content, context);
}
static void test_create(String urlStr, int responseCode, String content, String context) {
}
static void test_create(String urlStr, int responseCode, String content, String context) {