Test Cases for Office API. (Reformatted Code)
This commit is contained in:
+3
-2
@@ -23,6 +23,7 @@ import com.jayway.restassured.specification.RequestSpecification;
|
|||||||
import com.jayway.restassured.specification.ResponseSpecification;
|
import com.jayway.restassured.specification.ResponseSpecification;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public class OfficeIntegrationsTest {
|
public class OfficeIntegrationsTest {
|
||||||
|
|
||||||
private ResponseSpecification statusOkResponseSpec;
|
private ResponseSpecification statusOkResponseSpec;
|
||||||
@@ -37,8 +38,7 @@ public class OfficeIntegrationsTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCreateOffice()
|
public void testCreateOffice() {
|
||||||
{
|
|
||||||
int random_array = {1997, 26, 12};
|
int random_array = {1997, 26, 12};
|
||||||
OfficeHelper oh = OfficeHelper // oh ---> Office Helper
|
OfficeHelper oh = OfficeHelper // oh ---> Office Helper
|
||||||
.create(Utils.randomNameGenerator("", 5))
|
.create(Utils.randomNameGenerator("", 5))
|
||||||
@@ -52,6 +52,7 @@ public class OfficeIntegrationsTest {
|
|||||||
Assert.assertNotNull(officeID);
|
Assert.assertNotNull(officeID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Long createOffice(final String officeJSON,
|
private Long createOffice(final String officeJSON,
|
||||||
final RequestSpecification requestSpec,
|
final RequestSpecification requestSpec,
|
||||||
final ResponseSpecification responseSpec) {
|
final ResponseSpecification responseSpec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user