Skip to content
Snippets Groups Projects
Commit 1af924e8 authored by Anastasiia Gelmut's avatar Anastasiia Gelmut
Browse files

GONRG-1599 Fixed partition integration test.

parent f1b3adb4
No related branches found
No related tags found
Loading
......@@ -17,8 +17,12 @@
package org.opengroup.osdu.partition.api;
import static org.junit.Assert.assertEquals;
import com.sun.jersey.api.client.ClientResponse;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.opengroup.osdu.partition.util.GCPTestUtils;
public class TestCreatePartition extends CreatePartitionTest {
......@@ -34,4 +38,12 @@ public class TestCreatePartition extends CreatePartitionTest {
public void tearDown() throws Exception {
this.testUtils = null;
}
@Override
@Test
public void should_return40XResponseCode_when_makingRequest_withInvalidPayload() throws Exception {
String invalidPayload = "invalidPayload";
ClientResponse response = descriptor.runWithCustomPayload(getId(), invalidPayload, testUtils.getAccessToken());
assertEquals(400, response.getStatus());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment