From 2e68b8695e2e640b89008397774ca7538232af8a Mon Sep 17 00:00:00 2001 From: Omur Date: Thu, 6 Aug 2026 11:09:06 +0300 Subject: [PATCH 1/2] bug fix --- web-report/src-e2e/extractComments.test.ts | 148 ++ web-report/src-e2e/static/faults.java | 1894 ++++++++++---------- web-report/src/lib/utils.tsx | 65 +- 3 files changed, 1153 insertions(+), 954 deletions(-) diff --git a/web-report/src-e2e/extractComments.test.ts b/web-report/src-e2e/extractComments.test.ts index b8f4548..51a0e3a 100644 --- a/web-report/src-e2e/extractComments.test.ts +++ b/web-report/src-e2e/extractComments.test.ts @@ -67,4 +67,152 @@ describe("extractComments", () => { const code = ["/* hello world */", "def f(): pass"].join("\n"); expect(extractComments(code)).toBe("hello world"); }); + + describe("comments embedded inside a statement are dropped, not shown as documentation", () => { + it("drops a commented-out line in the middle of a fluent method chain (Java/Kotlin style)", () => { + const code = [ + " // Explains the call below", + " given().accept(\"*/*\")", + " .options(url)", + " .then()", + " .assertThat()", + " // .header(\"allow\", \"GET,POST\")", + " .body(isEmptyOrNullString())", + ].join("\n"); + + expect(extractComments(code)).toBe("Explains the call below"); + }); + + it("drops a commented-out line in the middle of a promise chain (JS style)", () => { + const code = [ + "fetch(url)", + " .then(res => res.json())", + " // .then(data => expect(data.length).toBe(3))", + " .then(data => console.log(data));", + ].join("\n"); + + expect(extractComments(code)).toBe(""); + }); + + it("drops a commented-out line in the middle of a builder chain (C#/fluent-API style)", () => { + const code = [ + "var result = builder", + " .WithName(\"test\")", + " // .WithFlag(true)", + " .Build();", + ].join("\n"); + + expect(extractComments(code)).toBe(""); + }); + + it("drops a commented-out argument inside a wrapped, multi-line call (Python style)", () => { + const code = [ + "result = do_something(", + " value,", + " # extra_debug_flag,", + ")", + ].join("\n"); + + expect(extractComments(code)).toBe(""); + }); + + it("drops several consecutive commented-out lines that all continue the same chain", () => { + const code = [ + "obj.step1()", + " .step2()", + " // .step3(true)", + " // .step4(false)", + " .step5()", + ].join("\n"); + + expect(extractComments(code)).toBe(""); + }); + + it("drops a single-line block comment embedded in the middle of a chain", () => { + const code = [ + "chain()", + " .a()", + " /* .b() */", + " .c()", + ].join("\n"); + + expect(extractComments(code)).toBe(""); + }); + + it("drops a multi-line block comment embedded in the middle of a chain", () => { + const code = [ + "chain()", + " .a()", + " /*", + " * disabled: .b(true)", + " */", + " .c()", + ].join("\n"); + + expect(extractComments(code)).toBe(""); + }); + }); + + describe("comments that introduce a fresh statement are kept as documentation", () => { + it("keeps a comment describing an independent statement in the middle of a function body", () => { + const code = [ + "doFirstThing()", + "// Now verify the second call behaves correctly", + "doSecondThing()", + ].join("\n"); + + expect(extractComments(code)).toBe("Now verify the second call behaves correctly"); + }); + + it("keeps a comment that trails the last statement with nothing following it", () => { + const code = [ + "doWork()", + "// Cleanup performed automatically by the test runner", + ].join("\n"); + + expect(extractComments(code)).toBe("Cleanup performed automatically by the test runner"); + }); + + it("keeps documentation comments preceding each of several independent statements", () => { + const code = [ + "/**", + " * Calls:", + " * 1 - (201) PUT:/orders/{id}", + " * 2 - (200) GET:/orders/{id}", + " */", + "fun test() {", + "", + " // First call replaces the resource", + " given().put(url)", + " .then()", + " .statusCode(201)", + "", + " // Second call reads it back", + " given().get(url)", + " .then()", + " .statusCode(200)", + "}", + ].join("\n"); + + expect(extractComments(code)).toBe( + [ + "Calls:\n1 - (201) PUT:/orders/{id}\n2 - (200) GET:/orders/{id}", + "First call replaces the resource", + "Second call reads it back", + ].join("\n\n"), + ); + }); + + it("keeps a comment immediately followed by an opening call, not a continuation", () => { + const code = [ + "// Builds the request payload", + "buildPayload(", + " field1,", + " field2,", + ")", + ].join("\n"); + + expect(extractComments(code)).toBe("Builds the request payload"); + }); + }); }); diff --git a/web-report/src-e2e/static/faults.java b/web-report/src-e2e/static/faults.java index 6fea1c7..73ec18f 100644 --- a/web-report/src-e2e/static/faults.java +++ b/web-report/src-e2e/static/faults.java @@ -2,7 +2,7 @@ * LICENSE DISCLAIMER * This file has been generated by EvoMaster. * The content of this file is not subject to the license of EvoMaster itself, i.e., LGPL. -* This generated software (i.e., the test suite in this file) can be freely used, modified, +* This generated software (i.e., the test suite in this file) can be freely used, modified, * and distributed as you see fit without any restrictions. */ import org.junit.jupiter.api.AfterAll; @@ -48,11 +48,11 @@ */ public class EvoMaster_faults_Test { - + private static final SutHandler controller = new em.embedded.com.pfa.app.EmbeddedEvoMasterController(); private static String baseUrlOfSut; - - + + @BeforeAll public static void initClass() { controller.setupForGeneratedTest(); @@ -66,23 +66,23 @@ public static void initClass() { .jsonConfig(JsonConfig.jsonConfig().numberReturnType(JsonPathConfig.NumberReturnType.DOUBLE)) .redirect(redirectConfig().followRedirects(false)); } - - + + @AfterAll public static void tearDown() { controller.stopSut(); } - - + + @BeforeEach public void initTest() { controller.resetDatabase(Arrays.asList("ASSIGNMENTS","DEPARTMENTS","EMPLOYEES","LOCATIONS","PROJECTS","USER_CREDENTIALS","employees","projects","user_credentials")); controller.resetStateOfSUT(); } - - - - + + + + /** * Calls: * (200) GET:/app/api/credentials/ @@ -90,7 +90,7 @@ public void initTest() { */ @Test @Timeout(60) public void test_0() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/ -> [Path '/collection/14/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/ -> [Path '/collection/14/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") @@ -118,8 +118,8 @@ public void test_0() throws Exception { .body("'collection'[2].'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 12 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/projects @@ -177,7 +177,7 @@ public void test_1() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/endDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") @@ -205,8 +205,8 @@ public void test_1() throws Exception { .body("'collection'[2].'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 7 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/projects @@ -264,13 +264,13 @@ public void test_2() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/endDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") - .get(baseUrlOfSut + "/app/api/projects?" + - "password=g6BKahBUdL4eVi7y&" + + .get(baseUrlOfSut + "/app/api/projects?" + + "password=g6BKahBUdL4eVi7y&" + "username=wa") .then() .statusCode(200) @@ -294,8 +294,8 @@ public void test_2() throws Exception { .body("'collection'[2].'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 7 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) POST:/app/api/departments @@ -303,18 +303,18 @@ public void test_2() throws Exception { */ @Test @Timeout(60) public void test_3() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> [Path '/location/postalCode'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"departmentName\": \"Billing\", " + - " \"location\": { " + - " \"adr\": \"EnvNyIV4cb\", " + - " \"city\": \"_EM_99_XYZ_\", " + - " \"locationId\": 2 " + - " } " + + .body(" { " + + " \"departmentName\": \"Billing\", " + + " \"location\": { " + + " \"adr\": \"EnvNyIV4cb\", " + + " \"city\": \"_EM_99_XYZ_\", " + + " \"locationId\": 2 " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments?EMextraParam123=42") .then() @@ -328,8 +328,8 @@ public void test_3() throws Exception { .body("'location'.'postalCode'", nullValue()) .body("'location'.'city'", containsString("_EM_99_XYZ_")); } - - + + /** * Calls: * (200) POST:/app/api/credentials/save @@ -337,14 +337,14 @@ public void test_3() throws Exception { */ @Test @Timeout(60) public void test_4() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> [Path '/password'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> [Path '/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> [Path '/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -352,8 +352,8 @@ public void test_4() throws Exception { .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"enabled\": true " + + .body(" { " + + " \"enabled\": true " + " } ") .post(baseUrlOfSut + "/app/api/credentials/save") .then() @@ -366,8 +366,8 @@ public void test_4() throws Exception { .body("'enabled'", equalTo(true)) .body("'role'", nullValue()); } - - + + /** * Calls: * (200) GET:/app/api/employees/data/manager-project-data/{employeeId} @@ -375,14 +375,14 @@ public void test_4() throws Exception { */ @Test @Timeout(60) public void test_5() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> [Path '/collection/0/title'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> [Path '/collection/1/title'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> [Path '/collection/2/title'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -411,8 +411,8 @@ public void test_5() throws Exception { .body("'collection'[2].'endDate'", containsString("2021-03-02")) .body("'collection'[2].'projectId'", numberMatches(9.0)); } - - + + /** * Calls: * (200) POST:/app/api/credentials @@ -420,24 +420,24 @@ public void test_5() throws Exception { */ @Test @Timeout(60) public void test_6() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> [Path '/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> [Path '/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"credentialId\": 344, " + - " \"enabled\": false, " + - " \"password\": \"$2a$10$P0oYDJiBYpHBpaRZ65r/w.nprqp.LU1F6Lxr4z9fOcchEMlvCBjvq\" " + + .body(" { " + + " \"credentialId\": 344, " + + " \"enabled\": false, " + + " \"password\": \"$2a$10$P0oYDJiBYpHBpaRZ65r/w.nprqp.LU1F6Lxr4z9fOcchEMlvCBjvq\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -450,8 +450,8 @@ public void test_6() throws Exception { .body("'enabled'", equalTo(false)) .body("'role'", nullValue()); } - - + + /** * Calls: * (200) POST:/app/api/credentials @@ -459,24 +459,24 @@ public void test_6() throws Exception { */ @Test @Timeout(60) public void test_7() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> [Path '/password'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"credentialId\": 20, " + - " \"enabled\": false, " + - " \"role\": \"IsyAMnRlC\", " + - " \"username\": \"TFLe2toPC\" " + + .body(" { " + + " \"credentialId\": 20, " + + " \"enabled\": false, " + + " \"role\": \"IsyAMnRlC\", " + + " \"username\": \"TFLe2toPC\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -489,8 +489,8 @@ public void test_7() throws Exception { .body("'enabled'", equalTo(false)) .body("'role'", containsString("IsyAMnRlC")); } - - + + /** * Calls: * (200) PUT:/app/api/credentials/update @@ -498,23 +498,23 @@ public void test_7() throws Exception { */ @Test @Timeout(60) public void test_8() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/credentials/update -> [Path '/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"enabled\": true, " + - " \"password\": \"kdD2FySGiB6XGLxL\", " + - " \"role\": \"ZGixuplV\" " + + .body(" { " + + " \"enabled\": true, " + + " \"password\": \"kdD2FySGiB6XGLxL\", " + + " \"role\": \"ZGixuplV\" " + " } ") .put(baseUrlOfSut + "/app/api/credentials/update") .then() @@ -527,8 +527,8 @@ public void test_8() throws Exception { .body("'enabled'", equalTo(true)) .body("'role'", containsString("ZGixuplV")); } - - + + /** * Calls: * (200) POST:/app/api/departments @@ -536,26 +536,26 @@ public void test_8() throws Exception { */ @Test @Timeout(60) public void test_9() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> [Path '/location/adr'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentName\": \"RMc9xpuA\", " + - " \"location\": { " + - " \"city\": \"T8j3egl\", " + - " \"locationId\": 2, " + - " \"postalCode\": \"xc9NPDxyIOXD7OE\" " + - " } " + + .body(" { " + + " \"departmentName\": \"RMc9xpuA\", " + + " \"location\": { " + + " \"city\": \"T8j3egl\", " + + " \"locationId\": 2, " + + " \"postalCode\": \"xc9NPDxyIOXD7OE\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments") .then() @@ -569,8 +569,8 @@ public void test_9() throws Exception { .body("'location'.'postalCode'", containsString("xc9NPDxyIOXD7OE")) .body("'location'.'city'", containsString("T8j3egl")); } - - + + /** * Calls: * (200) POST:/app/api/projects @@ -578,24 +578,24 @@ public void test_9() throws Exception { */ @Test @Timeout(60) public void test_10() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> [Path '/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"endDate\": \"01-05-2021\", " + - " \"projectId\": 9, " + - " \"status\": \"G8\", " + - " \"title\": \"1V3eM\" " + + .body(" { " + + " \"endDate\": \"01-05-2021\", " + + " \"projectId\": 9, " + + " \"status\": \"G8\", " + + " \"title\": \"1V3eM\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -608,8 +608,8 @@ public void test_10() throws Exception { .body("'endDate'", containsString("01-05-2021")) .body("'status'", containsString("G8")); } - - + + /** * Calls: * 1 - (400) POST:/app/api/credentials @@ -618,15 +618,15 @@ public void test_10() throws Exception { */ @Test @Timeout(60) public void test_11() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> Response status 400 not defined for path '/api/credentials'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"credentialId\": 3, " + - " \"role\": \"pEgKhuzkX\", " + - " \"username\": \"_EM_407_XYZ_\" " + + .body(" { " + + " \"credentialId\": 3, " + + " \"role\": \"pEgKhuzkX\", " + + " \"username\": \"_EM_407_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -635,7 +635,7 @@ public void test_11() throws Exception { .contentType("application/json") .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials -> [Path '/collection/14/password'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials -> [Path '/collection/14/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials -> [Path '/collection/14/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -667,8 +667,8 @@ public void test_11() throws Exception { .body("'collection'[2].'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 14 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/employees @@ -676,7 +676,7 @@ public void test_11() throws Exception { */ @Test @Timeout(60) public void test_12() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees -> [Path '/collection/0/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees -> [Path '/collection/0/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees -> [Path '/collection/1/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -837,8 +837,8 @@ public void test_12() throws Exception { .body("'collection'[2].'credential'.'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 11 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/employees/ @@ -846,7 +846,7 @@ public void test_12() throws Exception { */ @Test @Timeout(60) public void test_13() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/ -> [Path '/collection/0/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/ -> [Path '/collection/0/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/ -> [Path '/collection/1/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -1007,8 +1007,8 @@ public void test_13() throws Exception { .body("'collection'[2].'credential'.'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 11 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * 1 - (400) PUT:/app/api/locations @@ -1017,22 +1017,22 @@ public void test_13() throws Exception { */ @Test @Timeout(60) public void test_14() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"adr\": \"WirX\", " + - " \"postalCode\": \"Z\" " + + .body(" { " + + " \"adr\": \"WirX\", " + + " \"postalCode\": \"Z\" " + " } ") .put(baseUrlOfSut + "/app/api/locations") .then() @@ -1041,15 +1041,15 @@ public void test_14() throws Exception { .contentType("application/json") .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); - + given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"adr\": \"WirX\", " + - " \"city\": \"_FxO6dv6KTq\", " + - " \"postalCode\": \"Z\" " + + .body(" { " + + " \"adr\": \"WirX\", " + + " \"city\": \"_FxO6dv6KTq\", " + + " \"postalCode\": \"Z\" " + " } ") .post(baseUrlOfSut + "/app/api/locations") .then() @@ -1061,8 +1061,8 @@ public void test_14() throws Exception { .body("'postalCode'", containsString("Z")) .body("'city'", containsString("_FxO6dv6KTq")); } - - + + /** * Calls: * 1 - (200) POST:/app/api/projects @@ -1073,23 +1073,23 @@ public void test_14() throws Exception { */ @Test @Timeout(60) public void test_15() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> [Path '/endDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> [Path '/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"status\": \"x03Fs\", " + - " \"title\": \"pkZsE6JebHQ\" " + + .body(" { " + + " \"status\": \"x03Fs\", " + + " \"title\": \"pkZsE6JebHQ\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -1101,16 +1101,16 @@ public void test_15() throws Exception { .body("'startDate'", nullValue()) .body("'endDate'", nullValue()) .body("'status'", containsString("x03Fs")); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"pkZsE6JebHQ\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"pkZsE6JebHQ\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -1120,8 +1120,8 @@ public void test_15() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (200) GET:/app/api/assignments @@ -1129,7 +1129,7 @@ public void test_15() throws Exception { */ @Test @Timeout(60) public void test_16() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments -> [Path '/collection/0/commitEmpDesc'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments -> [Path '/collection/0/employee/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments -> [Path '/collection/0/employee/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) @@ -1479,8 +1479,8 @@ public void test_16() throws Exception { .body("'collection'[2].'project'.'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 56 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/assignments/ @@ -1488,7 +1488,7 @@ public void test_16() throws Exception { */ @Test @Timeout(60) public void test_17() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/ -> [Path '/collection/0/commitEmpDesc'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/ -> [Path '/collection/0/employee/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/ -> [Path '/collection/0/employee/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) @@ -1838,8 +1838,8 @@ public void test_17() throws Exception { .body("'collection'[2].'project'.'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 56 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (400) GET:/app/api/assignments/{employeeId}/{projectId} @@ -1847,7 +1847,7 @@ public void test_17() throws Exception { */ @Test @Timeout(60) public void test_18() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_20_XYZ_") @@ -1859,8 +1859,8 @@ public void test_18() throws Exception { .body("'msg'", containsString("HttpStatus must not be null")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects @@ -1890,16 +1890,16 @@ public void test_19() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"endDate\": \"Wqv0TJI2AlNI\", " + - " \"projectId\": 684, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"Rgv69OCx\" " + + .body(" { " + + " \"endDate\": \"Wqv0TJI2AlNI\", " + + " \"projectId\": 684, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"Rgv69OCx\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -1909,8 +1909,8 @@ public void test_19() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"Wqv0TJI2AlNI\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'Wqv0TJI2AlNI' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"Wqv0TJI2AlNI\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'Wqv0TJI2AlNI' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects/save @@ -1920,16 +1920,16 @@ public void test_19() throws Exception { */ @Test @Timeout(60) public void test_20() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects/save -> Response status 400 not defined for path '/api/projects/save'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"projectId\": 993, " + - " \"status\": \"L\", " + - " \"title\": \"CAupGxCXIVblTeB\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"projectId\": 993, " + + " \"status\": \"L\", " + + " \"title\": \"CAupGxCXIVblTeB\" " + " } ") .post(baseUrlOfSut + "/app/api/projects/save?EMextraParam123=42") .then() @@ -1939,8 +1939,8 @@ public void test_20() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/assignments/delete/{employeeId}/{projectId}/{commitDate} @@ -1948,7 +1948,7 @@ public void test_20() throws Exception { */ @Test @Timeout(60) public void test_21() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/assignments/delete/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/delete/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_8_XYZ_") @@ -1960,8 +1960,8 @@ public void test_21() throws Exception { .body("'msg'", containsString("For input string: \"IdJKO1g\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/data/department/{departmentId} @@ -1969,7 +1969,7 @@ public void test_21() throws Exception { */ @Test @Timeout(60) public void test_22() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/department/{departmentId} -> Response status 400 not defined for path '/api/employees/data/department/{departmentId}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_15_XYZ_") @@ -1981,8 +1981,8 @@ public void test_22() throws Exception { .body("'msg'", containsString("For input string: \"nvUVjYS\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/departments/delete/{id} @@ -1990,7 +1990,7 @@ public void test_22() throws Exception { */ @Test @Timeout(60) public void test_23() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/departments/delete/{id} -> Response status 400 not defined for path '/api/departments/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_24_XYZ_") @@ -2002,8 +2002,8 @@ public void test_23() throws Exception { .body("'msg'", containsString("For input string: \"1dMK5kwtYSQKYPjC\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/{id} @@ -2011,7 +2011,7 @@ public void test_23() throws Exception { */ @Test @Timeout(60) public void test_24() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/{id} -> Response status 400 not defined for path '/api/employees/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_43_XYZ_") @@ -2023,8 +2023,8 @@ public void test_24() throws Exception { .body("'msg'", containsString("For input string: \"OaF6He\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/locations/delete/{id} @@ -2032,7 +2032,7 @@ public void test_24() throws Exception { */ @Test @Timeout(60) public void test_25() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/locations/delete/{id} -> Response status 400 not defined for path '/api/locations/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "42") @@ -2044,8 +2044,8 @@ public void test_25() throws Exception { .body("'msg'", containsString("For input string: \"FVVwKoYGzNdBUSRN\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/projects/delete/{id} @@ -2053,7 +2053,7 @@ public void test_25() throws Exception { */ @Test @Timeout(60) public void test_26() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/projects/delete/{id} -> Response status 400 not defined for path '/api/projects/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2065,8 +2065,8 @@ public void test_26() throws Exception { .body("'msg'", containsString("For input string: \"ZqGYwxwopuxsihuC\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/departments/{id} @@ -2074,7 +2074,7 @@ public void test_26() throws Exception { */ @Test @Timeout(60) public void test_27() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/departments/{id} -> Response status 400 not defined for path '/api/departments/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2086,8 +2086,8 @@ public void test_27() throws Exception { .body("'msg'", containsString("For input string: \"s6\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -2145,16 +2145,16 @@ public void test_28() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"endDate\": \"mRxcIhXyWj\", " + - " \"projectId\": 397, " + - " \"startDate\": \"\", " + - " \"status\": \"QqBr1o8CH4jL\" " + + .body(" { " + + " \"endDate\": \"mRxcIhXyWj\", " + + " \"projectId\": 397, " + + " \"startDate\": \"\", " + + " \"status\": \"QqBr1o8CH4jL\" " + " } ") .put(baseUrlOfSut + "/app/api/projects?password=6vsVo9Vy") .then() @@ -2164,8 +2164,8 @@ public void test_28() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyWj' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyWj' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -2223,19 +2223,19 @@ public void test_29() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"endDate\": \"mRxcIhXyHWj\", " + - " \"projectId\": 397, " + - " \"startDate\": \"W\", " + - " \"status\": \"QqBr1o8CH4jL\" " + + .body(" { " + + " \"endDate\": \"mRxcIhXyHWj\", " + + " \"projectId\": 397, " + + " \"startDate\": \"W\", " + + " \"status\": \"QqBr1o8CH4jL\" " + " } ") - .put(baseUrlOfSut + "/app/api/projects?" + - "password=6vsVo9Vy&" + + .put(baseUrlOfSut + "/app/api/projects?" + + "password=6vsVo9Vy&" + "username=QP2C") .then() .statusCode(400) @@ -2244,8 +2244,8 @@ public void test_29() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyHWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyHWj' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyHWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyHWj' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} @@ -2253,7 +2253,7 @@ public void test_29() throws Exception { */ @Test @Timeout(60) public void test_30() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2265,8 +2265,8 @@ public void test_30() throws Exception { .body("'msg'", containsString("For input string: \"_EM_3_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/{employeeId}/{projectId}/{commitDate} @@ -2274,7 +2274,7 @@ public void test_30() throws Exception { */ @Test @Timeout(60) public void test_31() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2286,8 +2286,8 @@ public void test_31() throws Exception { .body("'msg'", containsString("For input string: \"_EM_9_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/data/manager-project-data/{employeeId} @@ -2295,7 +2295,7 @@ public void test_31() throws Exception { */ @Test @Timeout(60) public void test_32() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> Response status 400 not defined for path '/api/employees/data/manager-project-data/{employeeId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2307,8 +2307,8 @@ public void test_32() throws Exception { .body("'msg'", containsString("For input string: \"_EM_16_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/delete/{id} @@ -2316,7 +2316,7 @@ public void test_32() throws Exception { */ @Test @Timeout(60) public void test_33() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/delete/{id} -> Response status 400 not defined for path '/api/credentials/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_22_XYZ_") @@ -2328,8 +2328,8 @@ public void test_33() throws Exception { .body("'msg'", containsString("For input string: \"_EM_21_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/credentials/{id} @@ -2337,7 +2337,7 @@ public void test_33() throws Exception { */ @Test @Timeout(60) public void test_34() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/{id} -> Response status 400 not defined for path '/api/credentials/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_30_XYZ_") @@ -2347,10 +2347,10 @@ public void test_34() throws Exception { .assertThat() .contentType("application/json") .body("'msg'", containsString("For input string: \"_EM_29_XYZ_\"")) - .body("'status'", containsString("BAD_REQUEST")); + // .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/{id} @@ -2358,7 +2358,7 @@ public void test_34() throws Exception { */ @Test @Timeout(60) public void test_35() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/{id} -> Response status 400 not defined for path '/api/employees/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_41_XYZ_") @@ -2370,8 +2370,8 @@ public void test_35() throws Exception { .body("'msg'", containsString("For input string: \"_EM_39_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/projects/{id} @@ -2379,7 +2379,7 @@ public void test_35() throws Exception { */ @Test @Timeout(60) public void test_36() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects/{id} -> Response status 400 not defined for path '/api/projects/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2391,8 +2391,8 @@ public void test_36() throws Exception { .body("'msg'", containsString("For input string: \"_EM_47_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/projects/{id} @@ -2400,7 +2400,7 @@ public void test_36() throws Exception { */ @Test @Timeout(60) public void test_37() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/projects/{id} -> Response status 400 not defined for path '/api/projects/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2412,8 +2412,8 @@ public void test_37() throws Exception { .body("'msg'", containsString("For input string: \"_EM_49_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/username/{username} @@ -2421,7 +2421,7 @@ public void test_37() throws Exception { */ @Test @Timeout(60) public void test_38() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/username/{username} -> Response status 400 not defined for path '/api/credentials/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2433,8 +2433,8 @@ public void test_38() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: _EM_28_XYZ_ ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/username/{username} @@ -2442,7 +2442,7 @@ public void test_38() throws Exception { */ @Test @Timeout(60) public void test_39() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/username/{username} -> Response status 400 not defined for path '/api/employees/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "42") @@ -2454,8 +2454,8 @@ public void test_39() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: _EM_36_XYZ_ ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/credentials/username/{username} @@ -2513,7 +2513,7 @@ public void test_40() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/username/{username} -> Response status 400 not defined for path '/api/credentials/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2525,8 +2525,8 @@ public void test_40() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: ceJohDIBfm ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments @@ -2536,28 +2536,28 @@ public void test_40() throws Exception { */ @Test @Timeout(60) public void test_41() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + - " \"commitMgrDesc\": \"p508Asdp_\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"password\": \"_EM_250_XYZ_\", " + - " \"username\": \"_EM_252_XYZ_\" " + - " }, " + - " \"department\": { " + - " \"location\": { " + - " \"locationId\": 724 " + - " } " + - " }, " + - " \"email\": \"rn35t30WfU\", " + - " \"job\": \"_EM_255_XYZ_\", " + - " \"lastName\": \"Chaouachi\" " + - " } " + + .body(" { " + + " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + + " \"commitMgrDesc\": \"p508Asdp_\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"password\": \"_EM_250_XYZ_\", " + + " \"username\": \"_EM_252_XYZ_\" " + + " }, " + + " \"department\": { " + + " \"location\": { " + + " \"locationId\": 724 " + + " } " + + " }, " + + " \"email\": \"rn35t30WfU\", " + + " \"job\": \"_EM_255_XYZ_\", " + + " \"lastName\": \"Chaouachi\" " + + " } " + " } ") .put(baseUrlOfSut + "/app/api/assignments") .then() @@ -2567,8 +2567,8 @@ public void test_41() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/credentials/username/{username} @@ -2652,12 +2652,12 @@ public void test_42() throws Exception { .d("EMPLOYEE_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/username/{username} -> Response status 400 not defined for path '/api/credentials/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") - .get(baseUrlOfSut + "/app/api/credentials/username/ceJohDIBfm?" + - "password=aOzT_nFXeb67NIC3&" + + .get(baseUrlOfSut + "/app/api/credentials/username/ceJohDIBfm?" + + "password=aOzT_nFXeb67NIC3&" + "username=BWFEdeljOm") .then() .statusCode(400) @@ -2666,8 +2666,8 @@ public void test_42() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: ceJohDIBfm ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/locations/save @@ -2675,13 +2675,13 @@ public void test_42() throws Exception { */ @Test @Timeout(60) public void test_43() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/locations/save -> Response status 400 not defined for path '/api/locations/save'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"postalCode\": \"_EM_81_XYZ_\" " + + .body(" { " + + " \"postalCode\": \"_EM_81_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/locations/save?EMextraParam123=42") .then() @@ -2691,8 +2691,8 @@ public void test_43() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=adr, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/locations/update @@ -2700,14 +2700,14 @@ public void test_43() throws Exception { */ @Test @Timeout(60) public void test_44() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations/update -> Response status 400 not defined for path '/api/locations/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"adr\": \"RUE DE BLA BLA\", " + - " \"locationId\": 546 " + + .body(" { " + + " \"adr\": \"RUE DE BLA BLA\", " + + " \"locationId\": 546 " + " } ") .put(baseUrlOfSut + "/app/api/locations/update") .then() @@ -2717,8 +2717,8 @@ public void test_44() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=postalCode, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -2776,14 +2776,14 @@ public void test_45() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"departmentId\": 366, " + - " \"departmentName\": \"tt5LjlA2yeX\" " + + .body(" { " + + " \"departmentId\": 366, " + + " \"departmentName\": \"tt5LjlA2yeX\" " + " } ") .put(baseUrlOfSut + "/app/api/departments") .then() @@ -2793,8 +2793,8 @@ public void test_45() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -2852,17 +2852,17 @@ public void test_46() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"departmentId\": 366, " + - " \"departmentName\": \"tt5LjlA2yeX\" " + + .body(" { " + + " \"departmentId\": 366, " + + " \"departmentName\": \"tt5LjlA2yeX\" " + " } ") - .put(baseUrlOfSut + "/app/api/departments?" + - "password=6VMIUt&" + + .put(baseUrlOfSut + "/app/api/departments?" + + "password=6VMIUt&" + "username=Hu") .then() .statusCode(400) @@ -2871,8 +2871,8 @@ public void test_46() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/authenticate @@ -2880,13 +2880,13 @@ public void test_46() throws Exception { */ @Test @Timeout(60) public void test_47() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/authenticate -> Response status 400 not defined for path '/api/authenticate'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"password\": \"_EM_93_XYZ_\" " + + .body(" { " + + " \"password\": \"_EM_93_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/authenticate") .then() @@ -2896,8 +2896,8 @@ public void test_47() throws Exception { .body("'msg'", containsString("Bad credentials")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -2905,18 +2905,18 @@ public void test_47() throws Exception { */ @Test @Timeout(60) public void test_48() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_126_XYZ_") .contentType("application/json") - .body(" { " + - " \"departmentId\": 435, " + - " \"location\": { " + - " \"adr\": \"S\", " + - " \"city\": \"_EM_123_XYZ_\", " + - " \"locationId\": 1 " + - " } " + + .body(" { " + + " \"departmentId\": 435, " + + " \"location\": { " + + " \"adr\": \"S\", " + + " \"city\": \"_EM_123_XYZ_\", " + + " \"locationId\": 1 " + + " } " + " } ") .put(baseUrlOfSut + "/app/api/departments?EMextraParam123=_EM_125_XYZ_") .then() @@ -2926,8 +2926,8 @@ public void test_48() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not blank**', propertyPath=departmentName, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/employees @@ -2935,20 +2935,20 @@ public void test_48() throws Exception { */ @Test @Timeout(60) public void test_49() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/employees -> Response status 400 not defined for path '/api/employees'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"department\": { " + - " \"departmentId\": 765, " + - " \"departmentName\": \"_EM_128_XYZ_\" " + - " }, " + - " \"email\": \"_EM_129_XYZ_\", " + - " \"employeeId\": 425, " + - " \"lastName\": \"_EM_132_XYZ_\", " + - " \"salary\": 0.00593367434706038 " + + .body(" { " + + " \"department\": { " + + " \"departmentId\": 765, " + + " \"departmentName\": \"_EM_128_XYZ_\" " + + " }, " + + " \"email\": \"_EM_129_XYZ_\", " + + " \"employeeId\": 425, " + + " \"lastName\": \"_EM_132_XYZ_\", " + + " \"salary\": 0.00593367434706038 " + " } ") .put(baseUrlOfSut + "/app/api/employees?EMextraParam123=_EM_134_XYZ_") .then() @@ -2958,8 +2958,8 @@ public void test_49() throws Exception { .body("'msg'", nullValue()) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/employees/update @@ -2967,28 +2967,28 @@ public void test_49() throws Exception { */ @Test @Timeout(60) public void test_50() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/employees/update -> Response status 400 not defined for path '/api/employees/update'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_159_XYZ_") .contentType("application/json") - .body(" { " + - " \"credential\": { " + - " \"credentialId\": 138, " + - " \"enabled\": false, " + - " \"password\": \"dFEFA\", " + - " \"role\": \"_EM_154_XYZ_\", " + - " \"username\": \"maryemtlemseni\" " + - " }, " + - " \"department\": { " + - " \"departmentName\": \"0y\", " + - " \"location\": { " + - " \"locationId\": 480, " + - " \"postalCode\": \"oc55Ajqa_hx083_\" " + - " } " + - " }, " + - " \"hiredate\": \"AxwB\", " + - " \"salary\": 0.4401792996387375 " + + .body(" { " + + " \"credential\": { " + + " \"credentialId\": 138, " + + " \"enabled\": false, " + + " \"password\": \"dFEFA\", " + + " \"role\": \"_EM_154_XYZ_\", " + + " \"username\": \"maryemtlemseni\" " + + " }, " + + " \"department\": { " + + " \"departmentName\": \"0y\", " + + " \"location\": { " + + " \"locationId\": 480, " + + " \"postalCode\": \"oc55Ajqa_hx083_\" " + + " } " + + " }, " + + " \"hiredate\": \"AxwB\", " + + " \"salary\": 0.4401792996387375 " + " } ") .put(baseUrlOfSut + "/app/api/employees/update") .then() @@ -2998,8 +2998,8 @@ public void test_50() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"AxwB\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'AxwB' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"AxwB\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'AxwB' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 238] (through reference chain: com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/credentials @@ -3007,15 +3007,15 @@ public void test_50() throws Exception { */ @Test @Timeout(60) public void test_51() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> Response status 400 not defined for path '/api/credentials'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"credentialId\": 3, " + - " \"role\": \"pEgKhuzkX\", " + - " \"username\": \"_EM_407_XYZ_\" " + + .body(" { " + + " \"credentialId\": 3, " + + " \"role\": \"pEgKhuzkX\", " + + " \"username\": \"_EM_407_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -3025,8 +3025,8 @@ public void test_51() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/employees/save @@ -3084,21 +3084,21 @@ public void test_52() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/employees/save -> Response status 400 not defined for path '/api/employees/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"credential\": { " + - " \"credentialId\": 1665453008, " + - " \"password\": \"hOdfB__qZ\", " + - " \"role\": \"IGK7ECsVr9\" " + - " }, " + - " \"email\": \"ILHw7m_bk\", " + - " \"job\": \"WU1j6NtBol29z\", " + - " \"lastName\": \"JEG\", " + - " \"salary\": 0.551561401413652 " + + .body(" { " + + " \"credential\": { " + + " \"credentialId\": 1665453008, " + + " \"password\": \"hOdfB__qZ\", " + + " \"role\": \"IGK7ECsVr9\" " + + " }, " + + " \"email\": \"ILHw7m_bk\", " + + " \"job\": \"WU1j6NtBol29z\", " + + " \"lastName\": \"JEG\", " + + " \"salary\": 0.551561401413652 " + " } ") .post(baseUrlOfSut + "/app/api/employees/save?password=") .then() @@ -3108,8 +3108,8 @@ public void test_52() throws Exception { .body("'msg'", nullValue()) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments/update @@ -3117,14 +3117,14 @@ public void test_52() throws Exception { */ @Test @Timeout(60) public void test_53() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments/update -> Response status 400 not defined for path '/api/assignments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"\", " + - " \"projectId\": 78 " + + .body(" { " + + " \"commitEmpDesc\": \"\", " + + " \"projectId\": 78 " + " } ") .put(baseUrlOfSut + "/app/api/assignments/update?EMextraParam123=_EM_146_XYZ_") .then() @@ -3134,8 +3134,8 @@ public void test_53() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -3143,15 +3143,15 @@ public void test_53() throws Exception { */ @Test @Timeout(60) public void test_54() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"_EM_373_XYZ_\", " + - " \"employeeId\": 655, " + - " \"projectId\": 3 " + + .body(" { " + + " \"commitMgrDesc\": \"_EM_373_XYZ_\", " + + " \"employeeId\": 655, " + + " \"projectId\": 3 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -3161,8 +3161,8 @@ public void test_54() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [FK2_ASSIGN]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{projectId} @@ -3170,14 +3170,14 @@ public void test_54() throws Exception { */ @Test @Timeout(60) public void test_55() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3190,8 +3190,8 @@ public void test_55() throws Exception { .body("'msg'", containsString("For input string: \"_EM_1068_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/projects/{id} @@ -3199,14 +3199,14 @@ public void test_55() throws Exception { */ @Test @Timeout(60) public void test_56() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/projects/{id} -> Response status 400 not defined for path '/api/projects/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3219,8 +3219,8 @@ public void test_56() throws Exception { .body("'msg'", containsString("For input string: \"Qb3\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/locations/{id} @@ -3228,14 +3228,14 @@ public void test_56() throws Exception { */ @Test @Timeout(60) public void test_57() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/locations/{id} -> Response status 400 not defined for path '/api/locations/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3248,8 +3248,8 @@ public void test_57() throws Exception { .body("'msg'", containsString("For input string: \"_EM_701_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -3259,23 +3259,23 @@ public void test_57() throws Exception { */ @Test @Timeout(60) public void test_58() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"pkZsE6JebHQ\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"pkZsE6JebHQ\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -3285,8 +3285,8 @@ public void test_58() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/username/{username} @@ -3294,14 +3294,14 @@ public void test_58() throws Exception { */ @Test @Timeout(60) public void test_59() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/username/{username} -> Response status 400 not defined for path '/api/employees/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3314,8 +3314,8 @@ public void test_59() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: 0OH80Jdl4 ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects/save @@ -3325,24 +3325,24 @@ public void test_59() throws Exception { */ @Test @Timeout(60) public void test_60() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects/save -> Response status 400 not defined for path '/api/projects/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"_EM_811_XYZ_\", " + - " \"projectId\": 628, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"1duKP3\" " + + .body(" { " + + " \"endDate\": \"_EM_811_XYZ_\", " + + " \"projectId\": 628, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"1duKP3\" " + " } ") .post(baseUrlOfSut + "/app/api/projects/save") .then() @@ -3352,8 +3352,8 @@ public void test_60() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"_EM_811_XYZ_\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text '_EM_811_XYZ_' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"_EM_811_XYZ_\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text '_EM_811_XYZ_' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects @@ -3363,23 +3363,23 @@ public void test_60() throws Exception { */ @Test @Timeout(60) public void test_61() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"hZYfkLoAy\", " + - " \"title\": \"P0HJZLqdAh\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"hZYfkLoAy\", " + + " \"title\": \"P0HJZLqdAh\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -3389,8 +3389,8 @@ public void test_61() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/username/{username} @@ -3445,20 +3445,20 @@ public void test_62() throws Exception { .d("EMPLOYEE_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/username/{username} -> Response status 400 not defined for path '/api/employees/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) - .delete(baseUrlOfSut + "/app/api/employees/username/0OH80Jfl4?" + - "password=KTzELGllTH&" + + .delete(baseUrlOfSut + "/app/api/employees/username/0OH80Jfl4?" + + "password=KTzELGllTH&" + "username=xVKnegGAbts") .then() .statusCode(400) @@ -3467,8 +3467,8 @@ public void test_62() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: 0OH80Jfl4 ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} @@ -3476,14 +3476,14 @@ public void test_62() throws Exception { */ @Test @Timeout(60) public void test_63() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3496,8 +3496,8 @@ public void test_63() throws Exception { .body("'msg'", containsString("For input string: \"eg6IX7JsGkzJqK\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} @@ -3505,20 +3505,20 @@ public void test_63() throws Exception { */ @Test @Timeout(60) public void test_64() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) - .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/1wD/oM9Sx?" + - "password=BwvR_6c&" + + .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/1wD/oM9Sx?" + + "password=BwvR_6c&" + "username=IOervlhojejjGBc0") .then() .statusCode(400) @@ -3527,8 +3527,8 @@ public void test_64() throws Exception { .body("'msg'", containsString("For input string: \"1wD\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/assignments/{employeeId}/{projectId}/{commitDate} @@ -3536,14 +3536,14 @@ public void test_64() throws Exception { */ @Test @Timeout(60) public void test_65() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/assignments/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3556,8 +3556,8 @@ public void test_65() throws Exception { .body("'msg'", containsString("For input string: \"Gv\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/data/employee-project-data/{employeeId} @@ -3565,20 +3565,20 @@ public void test_65() throws Exception { */ @Test @Timeout(60) public void test_66() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/employee-project-data/{employeeId} -> Response status 400 not defined for path '/api/employees/data/employee-project-data/{employeeId}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) - .get(baseUrlOfSut + "/app/api/employees/data/employee-project-data/hSPpZnftGQUH?" + - "password=&" + + .get(baseUrlOfSut + "/app/api/employees/data/employee-project-data/hSPpZnftGQUH?" + + "password=&" + "username=VwSeKtqvu") .then() .statusCode(400) @@ -3587,8 +3587,8 @@ public void test_66() throws Exception { .body("'msg'", containsString("For input string: \"hSPpZnftGQUH\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/departments/{id} @@ -3596,14 +3596,14 @@ public void test_66() throws Exception { */ @Test @Timeout(60) public void test_67() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/departments/{id} -> Response status 400 not defined for path '/api/departments/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3616,8 +3616,8 @@ public void test_67() throws Exception { .body("'msg'", containsString("For input string: \"DIz\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/locations/{id} @@ -3625,14 +3625,14 @@ public void test_67() throws Exception { */ @Test @Timeout(60) public void test_68() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/locations/{id} -> Response status 400 not defined for path '/api/locations/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3645,8 +3645,8 @@ public void test_68() throws Exception { .body("'msg'", containsString("For input string: \"9wto\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} @@ -3668,20 +3668,20 @@ public void test_69() throws Exception { .d("COMMIT_MGR_DESC", "\"\"") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) - .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/OWZrj_/4F86INwC_Cj/sqEN4qJpeBSNVa?" + - "password=kYfkw0&" + + .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/OWZrj_/4F86INwC_Cj/sqEN4qJpeBSNVa?" + + "password=kYfkw0&" + "username=QN") .then() .statusCode(400) @@ -3690,8 +3690,8 @@ public void test_69() throws Exception { .body("'msg'", containsString("For input string: \"OWZrj_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} @@ -3699,14 +3699,14 @@ public void test_69() throws Exception { */ @Test @Timeout(60) public void test_70() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3719,8 +3719,8 @@ public void test_70() throws Exception { .body("'msg'", containsString("For input string: \"z0m\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/{id} @@ -3728,14 +3728,14 @@ public void test_70() throws Exception { */ @Test @Timeout(60) public void test_71() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/{id} -> Response status 400 not defined for path '/api/credentials/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3748,8 +3748,8 @@ public void test_71() throws Exception { .body("'msg'", containsString("For input string: \"_EM_476_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/delete/{id} @@ -3757,14 +3757,14 @@ public void test_71() throws Exception { */ @Test @Timeout(60) public void test_72() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/delete/{id} -> Response status 400 not defined for path '/api/employees/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3777,8 +3777,8 @@ public void test_72() throws Exception { .body("'msg'", containsString("For input string: \"_EM_469_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/employees/save @@ -3788,24 +3788,24 @@ public void test_72() throws Exception { */ @Test @Timeout(60) public void test_73() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/employees/save -> Response status 400 not defined for path '/api/employees/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"email\": \"springabcxyzboot@gmail.com\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"lastName\": \"zWQ2RTIRoyyDi\", " + - " \"phone\": \"22125144\" " + + .body(" { " + + " \"email\": \"springabcxyzboot@gmail.com\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"lastName\": \"zWQ2RTIRoyyDi\", " + + " \"phone\": \"22125144\" " + " } ") .post(baseUrlOfSut + "/app/api/employees/save") .then() @@ -3815,8 +3815,8 @@ public void test_73() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 51] (through reference chain: com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects/update @@ -3826,23 +3826,23 @@ public void test_73() throws Exception { */ @Test @Timeout(60) public void test_74() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects/update -> Response status 400 not defined for path '/api/projects/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"projectId\": 753, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"status\": \"IN_PROGRESS\" " + + .body(" { " + + " \"projectId\": 753, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"status\": \"IN_PROGRESS\" " + " } ") .put(baseUrlOfSut + "/app/api/projects/update") .then() @@ -3852,8 +3852,8 @@ public void test_74() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 31] (through reference chain: com.pfa.app.model.entity.Project[\"startDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/locations @@ -3861,14 +3861,14 @@ public void test_74() throws Exception { */ @Test @Timeout(60) public void test_75() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3883,8 +3883,8 @@ public void test_75() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=postalCode, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=adr, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -3894,29 +3894,29 @@ public void test_75() throws Exception { */ @Test @Timeout(60) public void test_76() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + - " \"commitMgrDesc\": \"_EM_631_XYZ_\", " + - " \"employeeId\": 666, " + - " \"project\": { " + - " \"projectId\": 9, " + - " \"startDate\": \"9_\", " + - " \"title\": \"_EM_634_XYZ_\" " + - " }, " + - " \"projectId\": 469 " + + .body(" { " + + " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + + " \"commitMgrDesc\": \"_EM_631_XYZ_\", " + + " \"employeeId\": 666, " + + " \"project\": { " + + " \"projectId\": 9, " + + " \"startDate\": \"9_\", " + + " \"title\": \"_EM_634_XYZ_\" " + + " }, " + + " \"projectId\": 469 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -3926,8 +3926,8 @@ public void test_76() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments/update @@ -3937,40 +3937,40 @@ public void test_76() throws Exception { */ @Test @Timeout(60) public void test_77() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments/update -> Response status 400 not defined for path '/api/assignments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"jGOTiv5k\", " + - " \"commitMgrDesc\": \"qu2r\", " + - " \"employee\": { " + - " \"department\": { " + - " \"departmentName\": \"Digital\", " + - " \"location\": { " + - " \"city\": \"3ady1Mpa\", " + - " \"postalCode\": \"\" " + - " } " + - " }, " + - " \"email\": \"_EM_1047_XYZ_\", " + - " \"firstName\": \"gB7szWN4\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"job\": \"OjcdSk\" " + - " }, " + - " \"project\": { " + - " \"endDate\": \"7\", " + - " \"projectId\": 5 " + - " }, " + - " \"projectId\": 3 " + + .body(" { " + + " \"commitDate\": \"jGOTiv5k\", " + + " \"commitMgrDesc\": \"qu2r\", " + + " \"employee\": { " + + " \"department\": { " + + " \"departmentName\": \"Digital\", " + + " \"location\": { " + + " \"city\": \"3ady1Mpa\", " + + " \"postalCode\": \"\" " + + " } " + + " }, " + + " \"email\": \"_EM_1047_XYZ_\", " + + " \"firstName\": \"gB7szWN4\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"job\": \"OjcdSk\" " + + " }, " + + " \"project\": { " + + " \"endDate\": \"7\", " + + " \"projectId\": 5 " + + " }, " + + " \"projectId\": 3 " + " } ") .put(baseUrlOfSut + "/app/api/assignments/update") .then() @@ -3980,8 +3980,8 @@ public void test_77() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"jGOTiv5k\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'jGOTiv5k' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"jGOTiv5k\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'jGOTiv5k' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments/save @@ -3992,34 +3992,34 @@ public void test_77() throws Exception { */ @Test @Timeout(60) public void test_78() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments/save -> Response status 400 not defined for path '/api/assignments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + - " \"commitEmpDesc\": \"8VE\", " + - " \"employee\": { " + - " \"department\": { " + - " \"location\": { " + - " \"city\": \"_FxO6dv6KTq\", " + - " \"locationId\": 167 " + - " } " + - " }, " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"job\": \"_EM_1030_XYZ_\", " + - " \"lastName\": \"x9Es5Sthot\" " + - " }, " + - " \"employeeId\": 68 " + + .body(" { " + + " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + + " \"commitEmpDesc\": \"8VE\", " + + " \"employee\": { " + + " \"department\": { " + + " \"location\": { " + + " \"city\": \"_FxO6dv6KTq\", " + + " \"locationId\": 167 " + + " } " + + " }, " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"job\": \"_EM_1030_XYZ_\", " + + " \"lastName\": \"x9Es5Sthot\" " + + " }, " + + " \"employeeId\": 68 " + " } ") .post(baseUrlOfSut + "/app/api/assignments/save") .then() @@ -4029,8 +4029,8 @@ public void test_78() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments @@ -4038,14 +4038,14 @@ public void test_78() throws Exception { */ @Test @Timeout(60) public void test_79() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -4060,8 +4060,8 @@ public void test_79() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not blank**', propertyPath=departmentName, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -4071,39 +4071,39 @@ public void test_79() throws Exception { */ @Test @Timeout(60) public void test_80() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"I0ZCwTo\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"enabled\": false, " + - " \"role\": \"42Xcf5NeLLjHM6VN\" " + - " }, " + - " \"email\": \"77ms\", " + - " \"employeeId\": 5, " + - " \"job\": \"Chef service Billing\", " + - " \"lastName\": \"4gtOK\", " + - " \"salary\": 0.05239085058550608 " + - " }, " + - " \"employeeId\": 419, " + - " \"project\": { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"5Bw4dS8lw6Ix_h\" " + - " }, " + - " \"projectId\": 69 " + + .body(" { " + + " \"commitDate\": \"I0ZCwTo\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"enabled\": false, " + + " \"role\": \"42Xcf5NeLLjHM6VN\" " + + " }, " + + " \"email\": \"77ms\", " + + " \"employeeId\": 5, " + + " \"job\": \"Chef service Billing\", " + + " \"lastName\": \"4gtOK\", " + + " \"salary\": 0.05239085058550608 " + + " }, " + + " \"employeeId\": 419, " + + " \"project\": { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"5Bw4dS8lw6Ix_h\" " + + " }, " + + " \"projectId\": 69 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -4113,8 +4113,8 @@ public void test_80() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"I0ZCwTo\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'I0ZCwTo' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"I0ZCwTo\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'I0ZCwTo' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/credentials @@ -4122,21 +4122,21 @@ public void test_80() throws Exception { */ @Test @Timeout(60) public void test_81() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/credentials -> Response status 400 not defined for path '/api/credentials'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"username\": \"7B_1xnA6\" " + + .body(" { " + + " \"username\": \"7B_1xnA6\" " + " } ") .put(baseUrlOfSut + "/app/api/credentials") .then() @@ -4146,8 +4146,8 @@ public void test_81() throws Exception { .body("'msg'", containsString("rawPassword cannot be null")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects/update @@ -4155,21 +4155,21 @@ public void test_81() throws Exception { */ @Test @Timeout(60) public void test_82() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects/update -> Response status 400 not defined for path '/api/projects/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"status\": \"T\" " + + .body(" { " + + " \"status\": \"T\" " + " } ") .put(baseUrlOfSut + "/app/api/projects/update") .then() @@ -4179,8 +4179,8 @@ public void test_82() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Project] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='Must not blank*', propertyPath=title, rootBeanClass=class com.pfa.app.model.entity.Project, messageTemplate='Must not blank*'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -4188,21 +4188,21 @@ public void test_82() throws Exception { */ @Test @Timeout(60) public void test_83() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"status\": \"csQ_xm8ovT\" " + + .body(" { " + + " \"status\": \"csQ_xm8ovT\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -4212,8 +4212,8 @@ public void test_83() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Project] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='Must not blank*', propertyPath=title, rootBeanClass=class com.pfa.app.model.entity.Project, messageTemplate='Must not blank*'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments/save @@ -4221,22 +4221,22 @@ public void test_83() throws Exception { */ @Test @Timeout(60) public void test_84() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments/save -> Response status 400 not defined for path '/api/departments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentId\": 1, " + - " \"departmentName\": \"M1rLB5\" " + + .body(" { " + + " \"departmentId\": 1, " + + " \"departmentName\": \"M1rLB5\" " + " } ") .post(baseUrlOfSut + "/app/api/departments/save") .then() @@ -4246,8 +4246,8 @@ public void test_84() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments/update @@ -4255,22 +4255,22 @@ public void test_84() throws Exception { */ @Test @Timeout(60) public void test_85() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments/update -> Response status 400 not defined for path '/api/departments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentId\": 258, " + - " \"departmentName\": \"Rwiu\" " + + .body(" { " + + " \"departmentId\": 258, " + + " \"departmentName\": \"Rwiu\" " + " } ") .put(baseUrlOfSut + "/app/api/departments/update?username=CwlZMZZr9U5h8") .then() @@ -4280,8 +4280,8 @@ public void test_85() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments/update @@ -4298,25 +4298,25 @@ public void test_86() throws Exception { .d("LOCATION_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments/update -> Response status 400 not defined for path '/api/departments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentId\": 258, " + - " \"departmentName\": \"Rwiu\" " + + .body(" { " + + " \"departmentId\": 258, " + + " \"departmentName\": \"Rwiu\" " + " } ") - .put(baseUrlOfSut + "/app/api/departments/update?" + - "password=qfT2oU6&" + + .put(baseUrlOfSut + "/app/api/departments/update?" + + "password=qfT2oU6&" + "username=CwlZMZZr8U5h8") .then() .statusCode(400) @@ -4325,8 +4325,8 @@ public void test_86() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/credentials/save @@ -4334,23 +4334,23 @@ public void test_86() throws Exception { */ @Test @Timeout(60) public void test_87() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> Response status 400 not defined for path '/api/credentials/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"credentialId\": 620, " + - " \"password\": \"Nutm\", " + - " \"role\": \"HEbdBH\" " + + .body(" { " + + " \"credentialId\": 620, " + + " \"password\": \"Nutm\", " + + " \"role\": \"HEbdBH\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials/save") .then() @@ -4360,8 +4360,8 @@ public void test_87() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/credentials/update @@ -4369,23 +4369,23 @@ public void test_87() throws Exception { */ @Test @Timeout(60) public void test_88() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/credentials/update -> Response status 400 not defined for path '/api/credentials/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"credentialId\": 123, " + - " \"enabled\": false, " + - " \"role\": \"uf3aruhEMZAkS\" " + + .body(" { " + + " \"credentialId\": 123, " + + " \"enabled\": false, " + + " \"role\": \"uf3aruhEMZAkS\" " + " } ") .put(baseUrlOfSut + "/app/api/credentials/update") .then() @@ -4395,8 +4395,8 @@ public void test_88() throws Exception { .body("'msg'", containsString("rawPassword cannot be null")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -4404,19 +4404,19 @@ public void test_88() throws Exception { */ @Test @Timeout(60) public void test_89() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"kX4T\", " + - " \"employeeId\": 999, " + - " \"project\": { " + - " \"endDate\": \"\", " + - " \"title\": \"SYNCH_BSCS_IMX\" " + - " }, " + - " \"projectId\": 6 " + + .body(" { " + + " \"commitMgrDesc\": \"kX4T\", " + + " \"employeeId\": 999, " + + " \"project\": { " + + " \"endDate\": \"\", " + + " \"title\": \"SYNCH_BSCS_IMX\" " + + " }, " + + " \"projectId\": 6 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -4426,8 +4426,8 @@ public void test_89() throws Exception { .body("'msg'", containsString("org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.project -> com.pfa.app.model.entity.Project; nested exception is java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.project -> com.pfa.app.model.entity.Project")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments/update @@ -4435,21 +4435,21 @@ public void test_89() throws Exception { */ @Test @Timeout(60) public void test_90() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments/update -> Response status 400 not defined for path '/api/departments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentId\": 1 " + + .body(" { " + + " \"departmentId\": 1 " + " } ") .put(baseUrlOfSut + "/app/api/departments/update") .then() @@ -4459,8 +4459,8 @@ public void test_90() throws Exception { .body("'msg'", containsString("Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/{id} @@ -4468,14 +4468,14 @@ public void test_90() throws Exception { */ @Test @Timeout(60) public void test_91() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/{id} -> Response status 400 not defined for path '/api/credentials/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -4488,8 +4488,8 @@ public void test_91() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"FK2_EMP: PUBLIC.EMPLOYEES FOREIGN KEY(MANAGER_ID) REFERENCES PUBLIC.EMPLOYEES(EMPLOYEE_ID) (5)\"; SQL statement:\n/* delete com.pfa.app.model.entity.Employee */ delete from employees where employee_id=? [23503-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/employees @@ -4499,33 +4499,33 @@ public void test_91() throws Exception { */ @Test @Timeout(60) public void test_92() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/employees -> Response status 400 not defined for path '/api/employees'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"credential\": { " + - " \"credentialId\": 638, " + - " \"enabled\": true, " + - " \"password\": \"r\", " + - " \"role\": \"m4GiSzsPuZr0TEp\" " + - " }, " + - " \"firstName\": \"QukZDeqlUW\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"lastName\": \"uN7\", " + - " \"phone\": \"NTNR8XPGZ0OBZn\" " + + .body(" { " + + " \"credential\": { " + + " \"credentialId\": 638, " + + " \"enabled\": true, " + + " \"password\": \"r\", " + + " \"role\": \"m4GiSzsPuZr0TEp\" " + + " }, " + + " \"firstName\": \"QukZDeqlUW\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"lastName\": \"uN7\", " + + " \"phone\": \"NTNR8XPGZ0OBZn\" " + " } ") - .post(baseUrlOfSut + "/app/api/employees?" + - "password=&" + + .post(baseUrlOfSut + "/app/api/employees?" + + "password=&" + "username=cqD3ahZpx") .then() .statusCode(400) @@ -4534,8 +4534,8 @@ public void test_92() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 132] (through reference chain: com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/locations @@ -4543,24 +4543,24 @@ public void test_92() throws Exception { */ @Test @Timeout(60) public void test_93() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"adr\": \"RUE DE LA BOURSE\", " + - " \"city\": \"_EM_699_XYZ_\", " + - " \"locationId\": 465, " + - " \"postalCode\": \"_EM_700_XYZ_\" " + + .body(" { " + + " \"adr\": \"RUE DE LA BOURSE\", " + + " \"city\": \"_EM_699_XYZ_\", " + + " \"locationId\": 465, " + + " \"postalCode\": \"_EM_700_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/locations") .then() @@ -4570,8 +4570,8 @@ public void test_93() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"PRIMARY KEY ON PUBLIC.LOCATIONS(LOCATION_ID) [2, 'RUE DE BLA BLA', '2016', 'CHARGUIA']\"; SQL statement:\n/* insert com.pfa.app.model.entity.Location */ insert into locations (location_id, adr, city, postal_code) values (null, ?, ?, ?) [23505-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/authenticate/ @@ -4607,21 +4607,21 @@ public void test_94() throws Exception { .d("EMPLOYEE_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/authenticate/ -> Response status 400 not defined for path '/api/authenticate/'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"username\": \"8aPcf5fiNbqq\" " + + .body(" { " + + " \"username\": \"8aPcf5fiNbqq\" " + " } ") .post(baseUrlOfSut + "/app/api/authenticate/") .then() @@ -4631,8 +4631,8 @@ public void test_94() throws Exception { .body("'msg'", containsString("Bad credentials")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -4640,24 +4640,24 @@ public void test_94() throws Exception { */ @Test @Timeout(60) public void test_95() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"projectId\": 817, " + - " \"startDate\": \"29-01-2021\", " + - " \"status\": \"AOKW11N\", " + - " \"title\": \"Niu4TlzpIU\" " + + .body(" { " + + " \"projectId\": 817, " + + " \"startDate\": \"29-01-2021\", " + + " \"status\": \"AOKW11N\", " + + " \"title\": \"Niu4TlzpIU\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -4667,8 +4667,8 @@ public void test_95() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"PRIMARY KEY ON PUBLIC.PROJECTS(PROJECT_ID) [1, 'TRANSBSCS', DATE '2020-09-28', DATE '2020-11-04', 'COMPLETED']\"; SQL statement:\n/* insert com.pfa.app.model.entity.Project */ insert into projects (project_id, end_date, start_date, status, title) values (null, ?, ?, ?, ?) [23505-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/locations/update @@ -4676,24 +4676,24 @@ public void test_95() throws Exception { */ @Test @Timeout(60) public void test_96() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations/update -> Response status 400 not defined for path '/api/locations/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"adr\": \"RUE DE LA BOURSE\", " + - " \"city\": \"xpfSAmJjiJU7\", " + - " \"locationId\": 908, " + - " \"postalCode\": \"FVuCCsLyZ4L\" " + + .body(" { " + + " \"adr\": \"RUE DE LA BOURSE\", " + + " \"city\": \"xpfSAmJjiJU7\", " + + " \"locationId\": 908, " + + " \"postalCode\": \"FVuCCsLyZ4L\" " + " } ") .put(baseUrlOfSut + "/app/api/locations/update") .then() @@ -4703,8 +4703,8 @@ public void test_96() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"PRIMARY KEY ON PUBLIC.LOCATIONS(LOCATION_ID) [2, 'RUE DE BLA BLA', '2016', 'CHARGUIA']\"; SQL statement:\n/* insert com.pfa.app.model.entity.Location */ insert into locations (location_id, adr, city, postal_code) values (null, ?, ?, ?) [23505-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/authenticate/ @@ -4740,24 +4740,24 @@ public void test_97() throws Exception { .d("EMPLOYEE_ID", "5") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/authenticate/ -> Response status 400 not defined for path '/api/authenticate/'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"username\": \"8aPcf5fiNbqq\" " + + .body(" { " + + " \"username\": \"8aPcf5fiNbqq\" " + " } ") - .post(baseUrlOfSut + "/app/api/authenticate/?" + - "password=m8qYgPY&" + + .post(baseUrlOfSut + "/app/api/authenticate/?" + + "password=m8qYgPY&" + "username=") .then() .statusCode(400) @@ -4766,8 +4766,8 @@ public void test_97() throws Exception { .body("'msg'", containsString("Bad credentials")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments/save @@ -4777,39 +4777,39 @@ public void test_97() throws Exception { */ @Test @Timeout(60) public void test_98() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments/save -> Response status 400 not defined for path '/api/assignments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"12-12-202016:43:48\", " + - " \"commitEmpDesc\": \"_EM_494_XYZ_\", " + - " \"commitMgrDesc\": \"you need to implement sec solution\", " + - " \"employee\": { " + - " \"email\": \"KL1Lpdtux\", " + - " \"employeeId\": 970, " + - " \"hiredate\": \"d1qRqRP0S\", " + - " \"lastName\": \"g4xo547\", " + - " \"phone\": \"_EM_497_XYZ_\", " + - " \"salary\": 0.06578326796072143 " + - " }, " + - " \"employeeId\": 551, " + - " \"project\": { " + - " \"endDate\": \"\", " + - " \"projectId\": 490, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"status\": \"_EM_498_XYZ_\", " + - " \"title\": \"Jyv_HSYdLkl4btz\" " + - " } " + + .body(" { " + + " \"commitDate\": \"12-12-202016:43:48\", " + + " \"commitEmpDesc\": \"_EM_494_XYZ_\", " + + " \"commitMgrDesc\": \"you need to implement sec solution\", " + + " \"employee\": { " + + " \"email\": \"KL1Lpdtux\", " + + " \"employeeId\": 970, " + + " \"hiredate\": \"d1qRqRP0S\", " + + " \"lastName\": \"g4xo547\", " + + " \"phone\": \"_EM_497_XYZ_\", " + + " \"salary\": 0.06578326796072143 " + + " }, " + + " \"employeeId\": 551, " + + " \"project\": { " + + " \"endDate\": \"\", " + + " \"projectId\": 490, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"status\": \"_EM_498_XYZ_\", " + + " \"title\": \"Jyv_HSYdLkl4btz\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/assignments/save") .then() @@ -4819,8 +4819,8 @@ public void test_98() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"d1qRqRP0S\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'd1qRqRP0S' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"d1qRqRP0S\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'd1qRqRP0S' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 185] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -4828,25 +4828,25 @@ public void test_98() throws Exception { */ @Test @Timeout(60) public void test_99() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentName\": \"SXdINjRKnc\", " + - " \"location\": { " + - " \"locationId\": 299, " + - " \"postalCode\": \"fYmB\" " + - " } " + + .body(" { " + + " \"departmentName\": \"SXdINjRKnc\", " + + " \"location\": { " + + " \"locationId\": 299, " + + " \"postalCode\": \"fYmB\" " + + " } " + " } ") .put(baseUrlOfSut + "/app/api/departments") .then() @@ -4856,8 +4856,8 @@ public void test_99() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [FK1_DEPT]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments/update @@ -4867,39 +4867,39 @@ public void test_99() throws Exception { */ @Test @Timeout(60) public void test_100() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments/update -> Response status 400 not defined for path '/api/assignments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"AK\", " + - " \"commitMgrDesc\": \"AK\", " + - " \"employee\": { " + - " \"email\": \"\", " + - " \"employeeId\": 280, " + - " \"firstName\": \"ejtbu_\", " + - " \"hiredate\": \"kut_o965Dz5byr\", " + - " \"job\": \"x\", " + - " \"salary\": 0.5090050256472601 " + - " }, " + - " \"employeeId\": 404, " + - " \"project\": { " + - " \"endDate\": \"\", " + - " \"projectId\": 228, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"status\": \"_EM_1087_XYZ_\", " + - " \"title\": \"v5KXF2of1Gw468A\" " + - " }, " + - " \"projectId\": 986 " + + .body(" { " + + " \"commitEmpDesc\": \"AK\", " + + " \"commitMgrDesc\": \"AK\", " + + " \"employee\": { " + + " \"email\": \"\", " + + " \"employeeId\": 280, " + + " \"firstName\": \"ejtbu_\", " + + " \"hiredate\": \"kut_o965Dz5byr\", " + + " \"job\": \"x\", " + + " \"salary\": 0.5090050256472601 " + + " }, " + + " \"employeeId\": 404, " + + " \"project\": { " + + " \"endDate\": \"\", " + + " \"projectId\": 228, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"status\": \"_EM_1087_XYZ_\", " + + " \"title\": \"v5KXF2of1Gw468A\" " + + " }, " + + " \"projectId\": 986 " + " } ") .put(baseUrlOfSut + "/app/api/assignments/update") .then() @@ -4909,8 +4909,8 @@ public void test_100() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"kut_o965Dz5byr\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'kut_o965Dz5byr' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"kut_o965Dz5byr\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'kut_o965Dz5byr' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 121] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -4920,32 +4920,32 @@ public void test_100() throws Exception { */ @Test @Timeout(60) public void test_101() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"ShHKh0k6vPvnPdqH\", " + - " \"employee\": { " + - " \"credential\": {}, " + - " \"department\": { " + - " \"location\": {} " + - " }, " + - " \"email\": \"puOlRHrzoy\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"lastName\": \"MWviXI4zYMuWNf9\", " + - " \"phone\": \"aWtvlRK\" " + - " }, " + - " \"employeeId\": 675 " + + .body(" { " + + " \"commitMgrDesc\": \"ShHKh0k6vPvnPdqH\", " + + " \"employee\": { " + + " \"credential\": {}, " + + " \"department\": { " + + " \"location\": {} " + + " }, " + + " \"email\": \"puOlRHrzoy\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"lastName\": \"MWviXI4zYMuWNf9\", " + + " \"phone\": \"aWtvlRK\" " + + " }, " + + " \"employeeId\": 675 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -4955,8 +4955,8 @@ public void test_101() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 130] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/locations @@ -4964,23 +4964,23 @@ public void test_101() throws Exception { */ @Test @Timeout(60) public void test_102() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"adr\": \"_EM_867_XYZ_\", " + - " \"locationId\": 2, " + - " \"postalCode\": \"YC7E\" " + + .body(" { " + + " \"adr\": \"_EM_867_XYZ_\", " + + " \"locationId\": 2, " + + " \"postalCode\": \"YC7E\" " + " } ") .put(baseUrlOfSut + "/app/api/locations") .then() @@ -4990,8 +4990,8 @@ public void test_102() throws Exception { .body("'msg'", containsString("Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments/save @@ -4999,26 +4999,26 @@ public void test_102() throws Exception { */ @Test @Timeout(60) public void test_103() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments/save -> Response status 400 not defined for path '/api/departments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentName\": \"743ZkqUW\", " + - " \"location\": { " + - " \"city\": \"sqnDVgM6Hf\", " + - " \"locationId\": 866, " + - " \"postalCode\": \"F6f\" " + - " } " + + .body(" { " + + " \"departmentName\": \"743ZkqUW\", " + + " \"location\": { " + + " \"city\": \"sqnDVgM6Hf\", " + + " \"locationId\": 866, " + + " \"postalCode\": \"F6f\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments/save") .then() @@ -5028,8 +5028,8 @@ public void test_103() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [FK1_DEPT]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects @@ -5037,21 +5037,21 @@ public void test_103() throws Exception { */ @Test @Timeout(60) public void test_104() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"projectId\": 9 " + + .body(" { " + + " \"projectId\": 9 " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -5061,8 +5061,8 @@ public void test_104() throws Exception { .body("'msg'", containsString("Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -5070,22 +5070,22 @@ public void test_104() throws Exception { */ @Test @Timeout(60) public void test_105() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitDate\": \"12-12-202015:10:28\", " + - " \"employee\": { " + - " \"job\": \"_EM_387_XYZ_\", " + - " \"salary\": 0.6035240934929194 " + - " }, " + - " \"employeeId\": 183, " + - " \"project\": { " + - " \"endDate\": \"04-11-2020\", " + - " \"status\": \"f\" " + - " } " + + .body(" { " + + " \"commitDate\": \"12-12-202015:10:28\", " + + " \"employee\": { " + + " \"job\": \"_EM_387_XYZ_\", " + + " \"salary\": 0.6035240934929194 " + + " }, " + + " \"employeeId\": 183, " + + " \"project\": { " + + " \"endDate\": \"04-11-2020\", " + + " \"status\": \"f\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -5095,8 +5095,8 @@ public void test_105() throws Exception { .body("'msg'", containsString("org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.employee -> com.pfa.app.model.entity.Employee; nested exception is java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.employee -> com.pfa.app.model.entity.Employee")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments @@ -5104,26 +5104,26 @@ public void test_105() throws Exception { */ @Test @Timeout(60) public void test_106() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentId\": 4, " + - " \"departmentName\": \"pTDhLagW2G79mV\", " + - " \"location\": { " + - " \"adr\": \"KskXldkyZ\", " + - " \"postalCode\": \"zrH\" " + - " } " + + .body(" { " + + " \"departmentId\": 4, " + + " \"departmentName\": \"pTDhLagW2G79mV\", " + + " \"location\": { " + + " \"adr\": \"KskXldkyZ\", " + + " \"postalCode\": \"zrH\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments") .then() @@ -5133,8 +5133,8 @@ public void test_106() throws Exception { .body("'msg'", containsString("org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.pfa.app.model.entity.Department.location -> com.pfa.app.model.entity.Location; nested exception is java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.pfa.app.model.entity.Department.location -> com.pfa.app.model.entity.Location")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -5142,47 +5142,47 @@ public void test_106() throws Exception { */ @Test @Timeout(60) public void test_107() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"3nYr9XOcbBqJ\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"password\": \"arf8zd_\", " + - " \"role\": \"ZKP8TwWRP4Lsa_w\" " + - " }, " + - " \"department\": { " + - " \"departmentName\": \"gTPQ\", " + - " \"location\": { " + - " \"locationId\": 994 " + - " } " + - " }, " + - " \"email\": \"qCiMPKQSRwE\", " + - " \"firstName\": \"\", " + - " \"hiredate\": \"UERVgHEwCBM9mvR\", " + - " \"job\": \"bSPAId0R\", " + - " \"lastName\": \"IB1x\", " + - " \"phone\": \"vV8y\" " + - " }, " + - " \"employeeId\": 957, " + - " \"project\": { " + - " \"endDate\": \"CSOl4tHVcolb\" " + - " }, " + - " \"projectId\": 319 " + + .body(" { " + + " \"commitEmpDesc\": \"3nYr9XOcbBqJ\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"password\": \"arf8zd_\", " + + " \"role\": \"ZKP8TwWRP4Lsa_w\" " + + " }, " + + " \"department\": { " + + " \"departmentName\": \"gTPQ\", " + + " \"location\": { " + + " \"locationId\": 994 " + + " } " + + " }, " + + " \"email\": \"qCiMPKQSRwE\", " + + " \"firstName\": \"\", " + + " \"hiredate\": \"UERVgHEwCBM9mvR\", " + + " \"job\": \"bSPAId0R\", " + + " \"lastName\": \"IB1x\", " + + " \"phone\": \"vV8y\" " + + " }, " + + " \"employeeId\": 957, " + + " \"project\": { " + + " \"endDate\": \"CSOl4tHVcolb\" " + + " }, " + + " \"projectId\": 319 " + " } ") - .post(baseUrlOfSut + "/app/api/assignments?" + - "password=NLwZZDt6D_dppu&" + + .post(baseUrlOfSut + "/app/api/assignments?" + + "password=NLwZZDt6D_dppu&" + "username=FHUP078Y") .then() .statusCode(400) @@ -5191,8 +5191,8 @@ public void test_107() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"UERVgHEwCBM9mvR\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'UERVgHEwCBM9mvR' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"UERVgHEwCBM9mvR\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'UERVgHEwCBM9mvR' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 230] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments @@ -5200,31 +5200,31 @@ public void test_107() throws Exception { */ @Test @Timeout(60) public void test_108() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"_EM_167_XYZ_\", " + - " \"commitMgrDesc\": \"_EM_168_XYZ_\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"credentialId\": 230, " + - " \"enabled\": true, " + - " \"password\": \"_EM_169_XYZ_\", " + - " \"username\": \"_BZRksp\" " + - " }, " + - " \"employeeId\": 844, " + - " \"lastName\": \"Tlemseni\", " + - " \"salary\": 0.4894450152136409 " + - " }, " + - " \"employeeId\": 14, " + - " \"project\": { " + - " \"projectId\": 560, " + - " \"status\": \"_EM_175_XYZ_\" " + - " }, " + - " \"projectId\": 873 " + + .body(" { " + + " \"commitEmpDesc\": \"_EM_167_XYZ_\", " + + " \"commitMgrDesc\": \"_EM_168_XYZ_\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"credentialId\": 230, " + + " \"enabled\": true, " + + " \"password\": \"_EM_169_XYZ_\", " + + " \"username\": \"_BZRksp\" " + + " }, " + + " \"employeeId\": 844, " + + " \"lastName\": \"Tlemseni\", " + + " \"salary\": 0.4894450152136409 " + + " }, " + + " \"employeeId\": 14, " + + " \"project\": { " + + " \"projectId\": 560, " + + " \"status\": \"_EM_175_XYZ_\" " + + " }, " + + " \"projectId\": 873 " + " } ") .put(baseUrlOfSut + "/app/api/assignments") .then() @@ -5234,8 +5234,8 @@ public void test_108() throws Exception { .body("'msg'", containsString("Unable to find com.pfa.app.model.entity.Employee with id 844; nested exception is javax.persistence.EntityNotFoundException: Unable to find com.pfa.app.model.entity.Employee with id 844")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -5243,34 +5243,34 @@ public void test_108() throws Exception { */ @Test @Timeout(60) public void test_109() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"h6c2gObl\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"credentialId\": 837, " + - " \"password\": \"fmr2j\" " + - " }, " + - " \"department\": { " + - " \"departmentId\": 604, " + - " \"departmentName\": \"_EM_532_XYZ_\" " + - " }, " + - " \"hiredate\": \"01-01-2559\", " + - " \"job\": \"_EM_536_XYZ_\", " + - " \"phone\": \"22125144\" " + - " } " + + .body(" { " + + " \"commitMgrDesc\": \"h6c2gObl\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"credentialId\": 837, " + + " \"password\": \"fmr2j\" " + + " }, " + + " \"department\": { " + + " \"departmentId\": 604, " + + " \"departmentName\": \"_EM_532_XYZ_\" " + + " }, " + + " \"hiredate\": \"01-01-2559\", " + + " \"job\": \"_EM_536_XYZ_\", " + + " \"phone\": \"22125144\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() diff --git a/web-report/src/lib/utils.tsx b/web-report/src/lib/utils.tsx index 9a603f8..c61951b 100644 --- a/web-report/src/lib/utils.tsx +++ b/web-report/src/lib/utils.tsx @@ -84,20 +84,71 @@ export const extractCodeLines = ( return lines.slice(startIndex, endIndex + 2).join('\n'); }; +// A line that opens with a "continuation" token (a leading '.', ',' or closing bracket) is, in +// virtually every mainstream language's formatting convention, the tail end of a statement that +// started on an earlier physical line (a chained method call, a wrapped argument list, ...) - +// never the start of a new one. +const isContinuationLine = (trimmed: string): boolean => /^[.,)\]}]/.test(trimmed); + +// Distinguishes a documentation comment (which introduces the statement that follows it) from a +// comment embedded in the middle of one (e.g. a disabled/commented-out line inside a call chain): +// +// // this explains the call below +// doSomething() +// .step1() +// // .step2() <- the next real line of code continues the previous statement, +// .step3() so this comment is part of that statement, not documentation +// +// A comment group is kept unless the nearest code line that follows it is a continuation line; +// in that case the comment sits inside an ongoing statement and is dropped along with it. This +// only looks at leading punctuation, so it holds regardless of source language or code style. export const extractComments = (code: string): string => { const lines = code.split("\n"); + const lineCount = lines.length; + + const isCodeLine: boolean[] = new Array(lineCount).fill(false); + { + let inBlock = false; + for (let i = 0; i < lineCount; i++) { + const trimmed = lines[i].trim(); + if (inBlock) { + if (trimmed.indexOf("*/") >= 0) inBlock = false; + continue; + } + if (trimmed.startsWith("/*")) { + if (trimmed.indexOf("*/", 2) < 0) inBlock = true; + continue; + } + if (/^(?:#|\/\/)/.test(trimmed)) continue; + if (trimmed.length > 0) isCodeLine[i] = true; + } + } + + const nextCodeLine = (fromIndex: number): string | null => { + for (let i = fromIndex; i < lineCount; i++) { + if (isCodeLine[i]) return lines[i].trim(); + } + return null; + }; + const groups: string[] = []; let current: string[] = []; let inBlock = false; - const flush = () => { + const flush = (endedAtLine: number) => { if (current.length === 0) return; const text = current.join("\n").trim(); - if (text.length > 0) groups.push(text); + if (text.length > 0) { + const following = nextCodeLine(endedAtLine); + if (!(following !== null && isContinuationLine(following))) { + groups.push(text); + } + } current = []; }; - for (const raw of lines) { + for (let i = 0; i < lineCount; i++) { + const raw = lines[i]; const trimmed = raw.trim(); if (inBlock) { @@ -106,7 +157,7 @@ export const extractComments = (code: string): string => { if (body.length > 0) current.push(body); if (endIdx >= 0) { inBlock = false; - flush(); + flush(i + 1); } continue; } @@ -117,7 +168,7 @@ export const extractComments = (code: string): string => { if (endIdx >= 0) { const body = afterOpen.slice(0, endIdx).trim(); if (body) current.push(body); - flush(); + flush(i + 1); } else { inBlock = true; if (afterOpen.length > 0) current.push(afterOpen); @@ -131,9 +182,9 @@ export const extractComments = (code: string): string => { continue; } - flush(); + flush(i); } - flush(); + flush(lineCount); return groups.join("\n\n"); }; From 51d8cf62ff08b7e9a753292034d934b61c4f194b Mon Sep 17 00:00:00 2001 From: Omur Date: Thu, 6 Aug 2026 11:24:36 +0300 Subject: [PATCH 2/2] update faults file --- web-report/src-e2e/static/faults.java | 1894 ++++++++++++------------- 1 file changed, 947 insertions(+), 947 deletions(-) diff --git a/web-report/src-e2e/static/faults.java b/web-report/src-e2e/static/faults.java index 73ec18f..6fea1c7 100644 --- a/web-report/src-e2e/static/faults.java +++ b/web-report/src-e2e/static/faults.java @@ -2,7 +2,7 @@ * LICENSE DISCLAIMER * This file has been generated by EvoMaster. * The content of this file is not subject to the license of EvoMaster itself, i.e., LGPL. -* This generated software (i.e., the test suite in this file) can be freely used, modified, +* This generated software (i.e., the test suite in this file) can be freely used, modified, * and distributed as you see fit without any restrictions. */ import org.junit.jupiter.api.AfterAll; @@ -48,11 +48,11 @@ */ public class EvoMaster_faults_Test { - + private static final SutHandler controller = new em.embedded.com.pfa.app.EmbeddedEvoMasterController(); private static String baseUrlOfSut; - - + + @BeforeAll public static void initClass() { controller.setupForGeneratedTest(); @@ -66,23 +66,23 @@ public static void initClass() { .jsonConfig(JsonConfig.jsonConfig().numberReturnType(JsonPathConfig.NumberReturnType.DOUBLE)) .redirect(redirectConfig().followRedirects(false)); } - - + + @AfterAll public static void tearDown() { controller.stopSut(); } - - + + @BeforeEach public void initTest() { controller.resetDatabase(Arrays.asList("ASSIGNMENTS","DEPARTMENTS","EMPLOYEES","LOCATIONS","PROJECTS","USER_CREDENTIALS","employees","projects","user_credentials")); controller.resetStateOfSUT(); } - - - - + + + + /** * Calls: * (200) GET:/app/api/credentials/ @@ -90,7 +90,7 @@ public void initTest() { */ @Test @Timeout(60) public void test_0() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/ -> [Path '/collection/14/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/ -> [Path '/collection/14/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") @@ -118,8 +118,8 @@ public void test_0() throws Exception { .body("'collection'[2].'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 12 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/projects @@ -177,7 +177,7 @@ public void test_1() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/endDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") @@ -205,8 +205,8 @@ public void test_1() throws Exception { .body("'collection'[2].'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 7 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/projects @@ -264,13 +264,13 @@ public void test_2() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/endDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects -> [Path '/collection/9/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") - .get(baseUrlOfSut + "/app/api/projects?" + - "password=g6BKahBUdL4eVi7y&" + + .get(baseUrlOfSut + "/app/api/projects?" + + "password=g6BKahBUdL4eVi7y&" + "username=wa") .then() .statusCode(200) @@ -294,8 +294,8 @@ public void test_2() throws Exception { .body("'collection'[2].'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 7 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) POST:/app/api/departments @@ -303,18 +303,18 @@ public void test_2() throws Exception { */ @Test @Timeout(60) public void test_3() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> [Path '/location/postalCode'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"departmentName\": \"Billing\", " + - " \"location\": { " + - " \"adr\": \"EnvNyIV4cb\", " + - " \"city\": \"_EM_99_XYZ_\", " + - " \"locationId\": 2 " + - " } " + + .body(" { " + + " \"departmentName\": \"Billing\", " + + " \"location\": { " + + " \"adr\": \"EnvNyIV4cb\", " + + " \"city\": \"_EM_99_XYZ_\", " + + " \"locationId\": 2 " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments?EMextraParam123=42") .then() @@ -328,8 +328,8 @@ public void test_3() throws Exception { .body("'location'.'postalCode'", nullValue()) .body("'location'.'city'", containsString("_EM_99_XYZ_")); } - - + + /** * Calls: * (200) POST:/app/api/credentials/save @@ -337,14 +337,14 @@ public void test_3() throws Exception { */ @Test @Timeout(60) public void test_4() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> [Path '/password'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> [Path '/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> [Path '/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -352,8 +352,8 @@ public void test_4() throws Exception { .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"enabled\": true " + + .body(" { " + + " \"enabled\": true " + " } ") .post(baseUrlOfSut + "/app/api/credentials/save") .then() @@ -366,8 +366,8 @@ public void test_4() throws Exception { .body("'enabled'", equalTo(true)) .body("'role'", nullValue()); } - - + + /** * Calls: * (200) GET:/app/api/employees/data/manager-project-data/{employeeId} @@ -375,14 +375,14 @@ public void test_4() throws Exception { */ @Test @Timeout(60) public void test_5() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> [Path '/collection/0/title'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> [Path '/collection/1/title'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> [Path '/collection/2/title'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -411,8 +411,8 @@ public void test_5() throws Exception { .body("'collection'[2].'endDate'", containsString("2021-03-02")) .body("'collection'[2].'projectId'", numberMatches(9.0)); } - - + + /** * Calls: * (200) POST:/app/api/credentials @@ -420,24 +420,24 @@ public void test_5() throws Exception { */ @Test @Timeout(60) public void test_6() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> [Path '/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> [Path '/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"credentialId\": 344, " + - " \"enabled\": false, " + - " \"password\": \"$2a$10$P0oYDJiBYpHBpaRZ65r/w.nprqp.LU1F6Lxr4z9fOcchEMlvCBjvq\" " + + .body(" { " + + " \"credentialId\": 344, " + + " \"enabled\": false, " + + " \"password\": \"$2a$10$P0oYDJiBYpHBpaRZ65r/w.nprqp.LU1F6Lxr4z9fOcchEMlvCBjvq\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -450,8 +450,8 @@ public void test_6() throws Exception { .body("'enabled'", equalTo(false)) .body("'role'", nullValue()); } - - + + /** * Calls: * (200) POST:/app/api/credentials @@ -459,24 +459,24 @@ public void test_6() throws Exception { */ @Test @Timeout(60) public void test_7() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> [Path '/password'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"credentialId\": 20, " + - " \"enabled\": false, " + - " \"role\": \"IsyAMnRlC\", " + - " \"username\": \"TFLe2toPC\" " + + .body(" { " + + " \"credentialId\": 20, " + + " \"enabled\": false, " + + " \"role\": \"IsyAMnRlC\", " + + " \"username\": \"TFLe2toPC\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -489,8 +489,8 @@ public void test_7() throws Exception { .body("'enabled'", equalTo(false)) .body("'role'", containsString("IsyAMnRlC")); } - - + + /** * Calls: * (200) PUT:/app/api/credentials/update @@ -498,23 +498,23 @@ public void test_7() throws Exception { */ @Test @Timeout(60) public void test_8() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/credentials/update -> [Path '/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"enabled\": true, " + - " \"password\": \"kdD2FySGiB6XGLxL\", " + - " \"role\": \"ZGixuplV\" " + + .body(" { " + + " \"enabled\": true, " + + " \"password\": \"kdD2FySGiB6XGLxL\", " + + " \"role\": \"ZGixuplV\" " + " } ") .put(baseUrlOfSut + "/app/api/credentials/update") .then() @@ -527,8 +527,8 @@ public void test_8() throws Exception { .body("'enabled'", equalTo(true)) .body("'role'", containsString("ZGixuplV")); } - - + + /** * Calls: * (200) POST:/app/api/departments @@ -536,26 +536,26 @@ public void test_8() throws Exception { */ @Test @Timeout(60) public void test_9() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> [Path '/location/adr'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentName\": \"RMc9xpuA\", " + - " \"location\": { " + - " \"city\": \"T8j3egl\", " + - " \"locationId\": 2, " + - " \"postalCode\": \"xc9NPDxyIOXD7OE\" " + - " } " + + .body(" { " + + " \"departmentName\": \"RMc9xpuA\", " + + " \"location\": { " + + " \"city\": \"T8j3egl\", " + + " \"locationId\": 2, " + + " \"postalCode\": \"xc9NPDxyIOXD7OE\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments") .then() @@ -569,8 +569,8 @@ public void test_9() throws Exception { .body("'location'.'postalCode'", containsString("xc9NPDxyIOXD7OE")) .body("'location'.'city'", containsString("T8j3egl")); } - - + + /** * Calls: * (200) POST:/app/api/projects @@ -578,24 +578,24 @@ public void test_9() throws Exception { */ @Test @Timeout(60) public void test_10() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> [Path '/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"endDate\": \"01-05-2021\", " + - " \"projectId\": 9, " + - " \"status\": \"G8\", " + - " \"title\": \"1V3eM\" " + + .body(" { " + + " \"endDate\": \"01-05-2021\", " + + " \"projectId\": 9, " + + " \"status\": \"G8\", " + + " \"title\": \"1V3eM\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -608,8 +608,8 @@ public void test_10() throws Exception { .body("'endDate'", containsString("01-05-2021")) .body("'status'", containsString("G8")); } - - + + /** * Calls: * 1 - (400) POST:/app/api/credentials @@ -618,15 +618,15 @@ public void test_10() throws Exception { */ @Test @Timeout(60) public void test_11() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> Response status 400 not defined for path '/api/credentials'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"credentialId\": 3, " + - " \"role\": \"pEgKhuzkX\", " + - " \"username\": \"_EM_407_XYZ_\" " + + .body(" { " + + " \"credentialId\": 3, " + + " \"role\": \"pEgKhuzkX\", " + + " \"username\": \"_EM_407_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -635,7 +635,7 @@ public void test_11() throws Exception { .contentType("application/json") .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials -> [Path '/collection/14/password'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials -> [Path '/collection/14/role'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials -> [Path '/collection/14/username'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -667,8 +667,8 @@ public void test_11() throws Exception { .body("'collection'[2].'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 14 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/employees @@ -676,7 +676,7 @@ public void test_11() throws Exception { */ @Test @Timeout(60) public void test_12() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees -> [Path '/collection/0/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees -> [Path '/collection/0/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees -> [Path '/collection/1/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -837,8 +837,8 @@ public void test_12() throws Exception { .body("'collection'[2].'credential'.'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 11 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/employees/ @@ -846,7 +846,7 @@ public void test_12() throws Exception { */ @Test @Timeout(60) public void test_13() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/ -> [Path '/collection/0/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/ -> [Path '/collection/0/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/ -> [Path '/collection/1/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) @@ -1007,8 +1007,8 @@ public void test_13() throws Exception { .body("'collection'[2].'credential'.'role'", containsString("ROLE_EMP")) ; // Skipping assertions on the remaining 11 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * 1 - (400) PUT:/app/api/locations @@ -1017,22 +1017,22 @@ public void test_13() throws Exception { */ @Test @Timeout(60) public void test_14() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"adr\": \"WirX\", " + - " \"postalCode\": \"Z\" " + + .body(" { " + + " \"adr\": \"WirX\", " + + " \"postalCode\": \"Z\" " + " } ") .put(baseUrlOfSut + "/app/api/locations") .then() @@ -1041,15 +1041,15 @@ public void test_14() throws Exception { .contentType("application/json") .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); - + given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"adr\": \"WirX\", " + - " \"city\": \"_FxO6dv6KTq\", " + - " \"postalCode\": \"Z\" " + + .body(" { " + + " \"adr\": \"WirX\", " + + " \"city\": \"_FxO6dv6KTq\", " + + " \"postalCode\": \"Z\" " + " } ") .post(baseUrlOfSut + "/app/api/locations") .then() @@ -1061,8 +1061,8 @@ public void test_14() throws Exception { .body("'postalCode'", containsString("Z")) .body("'city'", containsString("_FxO6dv6KTq")); } - - + + /** * Calls: * 1 - (200) POST:/app/api/projects @@ -1073,23 +1073,23 @@ public void test_14() throws Exception { */ @Test @Timeout(60) public void test_15() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> [Path '/endDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> [Path '/startDate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"status\": \"x03Fs\", " + - " \"title\": \"pkZsE6JebHQ\" " + + .body(" { " + + " \"status\": \"x03Fs\", " + + " \"title\": \"pkZsE6JebHQ\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -1101,16 +1101,16 @@ public void test_15() throws Exception { .body("'startDate'", nullValue()) .body("'endDate'", nullValue()) .body("'status'", containsString("x03Fs")); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"pkZsE6JebHQ\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"pkZsE6JebHQ\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -1120,8 +1120,8 @@ public void test_15() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (200) GET:/app/api/assignments @@ -1129,7 +1129,7 @@ public void test_15() throws Exception { */ @Test @Timeout(60) public void test_16() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments -> [Path '/collection/0/commitEmpDesc'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments -> [Path '/collection/0/employee/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments -> [Path '/collection/0/employee/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) @@ -1479,8 +1479,8 @@ public void test_16() throws Exception { .body("'collection'[2].'project'.'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 56 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (200) GET:/app/api/assignments/ @@ -1488,7 +1488,7 @@ public void test_16() throws Exception { */ @Test @Timeout(60) public void test_17() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/ -> [Path '/collection/0/commitEmpDesc'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/ -> [Path '/collection/0/employee/manager/hiredate'] Instance type (null) does not match any allowed primitive type (allowed: ["string"]) // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/ -> [Path '/collection/0/employee/manager/manager'] Instance type (null) does not match any allowed primitive type (allowed: ["object"]) @@ -1838,8 +1838,8 @@ public void test_17() throws Exception { .body("'collection'[2].'project'.'status'", containsString("COMPLETED")) ; // Skipping assertions on the remaining 56 elements. This limit of 3 elements can be increased in the configurations } - - + + /** * Calls: * (400) GET:/app/api/assignments/{employeeId}/{projectId} @@ -1847,7 +1847,7 @@ public void test_17() throws Exception { */ @Test @Timeout(60) public void test_18() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_20_XYZ_") @@ -1859,8 +1859,8 @@ public void test_18() throws Exception { .body("'msg'", containsString("HttpStatus must not be null")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects @@ -1890,16 +1890,16 @@ public void test_19() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"endDate\": \"Wqv0TJI2AlNI\", " + - " \"projectId\": 684, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"Rgv69OCx\" " + + .body(" { " + + " \"endDate\": \"Wqv0TJI2AlNI\", " + + " \"projectId\": 684, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"Rgv69OCx\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -1909,8 +1909,8 @@ public void test_19() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"Wqv0TJI2AlNI\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'Wqv0TJI2AlNI' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"Wqv0TJI2AlNI\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'Wqv0TJI2AlNI' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects/save @@ -1920,16 +1920,16 @@ public void test_19() throws Exception { */ @Test @Timeout(60) public void test_20() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects/save -> Response status 400 not defined for path '/api/projects/save'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"projectId\": 993, " + - " \"status\": \"L\", " + - " \"title\": \"CAupGxCXIVblTeB\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"projectId\": 993, " + + " \"status\": \"L\", " + + " \"title\": \"CAupGxCXIVblTeB\" " + " } ") .post(baseUrlOfSut + "/app/api/projects/save?EMextraParam123=42") .then() @@ -1939,8 +1939,8 @@ public void test_20() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/assignments/delete/{employeeId}/{projectId}/{commitDate} @@ -1948,7 +1948,7 @@ public void test_20() throws Exception { */ @Test @Timeout(60) public void test_21() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/assignments/delete/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/delete/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_8_XYZ_") @@ -1960,8 +1960,8 @@ public void test_21() throws Exception { .body("'msg'", containsString("For input string: \"IdJKO1g\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/data/department/{departmentId} @@ -1969,7 +1969,7 @@ public void test_21() throws Exception { */ @Test @Timeout(60) public void test_22() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/department/{departmentId} -> Response status 400 not defined for path '/api/employees/data/department/{departmentId}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_15_XYZ_") @@ -1981,8 +1981,8 @@ public void test_22() throws Exception { .body("'msg'", containsString("For input string: \"nvUVjYS\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/departments/delete/{id} @@ -1990,7 +1990,7 @@ public void test_22() throws Exception { */ @Test @Timeout(60) public void test_23() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/departments/delete/{id} -> Response status 400 not defined for path '/api/departments/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_24_XYZ_") @@ -2002,8 +2002,8 @@ public void test_23() throws Exception { .body("'msg'", containsString("For input string: \"1dMK5kwtYSQKYPjC\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/{id} @@ -2011,7 +2011,7 @@ public void test_23() throws Exception { */ @Test @Timeout(60) public void test_24() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/{id} -> Response status 400 not defined for path '/api/employees/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_43_XYZ_") @@ -2023,8 +2023,8 @@ public void test_24() throws Exception { .body("'msg'", containsString("For input string: \"OaF6He\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/locations/delete/{id} @@ -2032,7 +2032,7 @@ public void test_24() throws Exception { */ @Test @Timeout(60) public void test_25() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/locations/delete/{id} -> Response status 400 not defined for path '/api/locations/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "42") @@ -2044,8 +2044,8 @@ public void test_25() throws Exception { .body("'msg'", containsString("For input string: \"FVVwKoYGzNdBUSRN\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/projects/delete/{id} @@ -2053,7 +2053,7 @@ public void test_25() throws Exception { */ @Test @Timeout(60) public void test_26() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/projects/delete/{id} -> Response status 400 not defined for path '/api/projects/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2065,8 +2065,8 @@ public void test_26() throws Exception { .body("'msg'", containsString("For input string: \"ZqGYwxwopuxsihuC\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/departments/{id} @@ -2074,7 +2074,7 @@ public void test_26() throws Exception { */ @Test @Timeout(60) public void test_27() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/departments/{id} -> Response status 400 not defined for path '/api/departments/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2086,8 +2086,8 @@ public void test_27() throws Exception { .body("'msg'", containsString("For input string: \"s6\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -2145,16 +2145,16 @@ public void test_28() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"endDate\": \"mRxcIhXyWj\", " + - " \"projectId\": 397, " + - " \"startDate\": \"\", " + - " \"status\": \"QqBr1o8CH4jL\" " + + .body(" { " + + " \"endDate\": \"mRxcIhXyWj\", " + + " \"projectId\": 397, " + + " \"startDate\": \"\", " + + " \"status\": \"QqBr1o8CH4jL\" " + " } ") .put(baseUrlOfSut + "/app/api/projects?password=6vsVo9Vy") .then() @@ -2164,8 +2164,8 @@ public void test_28() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyWj' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyWj' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -2223,19 +2223,19 @@ public void test_29() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"endDate\": \"mRxcIhXyHWj\", " + - " \"projectId\": 397, " + - " \"startDate\": \"W\", " + - " \"status\": \"QqBr1o8CH4jL\" " + + .body(" { " + + " \"endDate\": \"mRxcIhXyHWj\", " + + " \"projectId\": 397, " + + " \"startDate\": \"W\", " + + " \"status\": \"QqBr1o8CH4jL\" " + " } ") - .put(baseUrlOfSut + "/app/api/projects?" + - "password=6vsVo9Vy&" + + .put(baseUrlOfSut + "/app/api/projects?" + + "password=6vsVo9Vy&" + "username=QP2C") .then() .statusCode(400) @@ -2244,8 +2244,8 @@ public void test_29() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyHWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyHWj' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"mRxcIhXyHWj\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'mRxcIhXyHWj' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} @@ -2253,7 +2253,7 @@ public void test_29() throws Exception { */ @Test @Timeout(60) public void test_30() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2265,8 +2265,8 @@ public void test_30() throws Exception { .body("'msg'", containsString("For input string: \"_EM_3_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/{employeeId}/{projectId}/{commitDate} @@ -2274,7 +2274,7 @@ public void test_30() throws Exception { */ @Test @Timeout(60) public void test_31() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2286,8 +2286,8 @@ public void test_31() throws Exception { .body("'msg'", containsString("For input string: \"_EM_9_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/data/manager-project-data/{employeeId} @@ -2295,7 +2295,7 @@ public void test_31() throws Exception { */ @Test @Timeout(60) public void test_32() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/manager-project-data/{employeeId} -> Response status 400 not defined for path '/api/employees/data/manager-project-data/{employeeId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2307,8 +2307,8 @@ public void test_32() throws Exception { .body("'msg'", containsString("For input string: \"_EM_16_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/delete/{id} @@ -2316,7 +2316,7 @@ public void test_32() throws Exception { */ @Test @Timeout(60) public void test_33() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/delete/{id} -> Response status 400 not defined for path '/api/credentials/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_22_XYZ_") @@ -2328,8 +2328,8 @@ public void test_33() throws Exception { .body("'msg'", containsString("For input string: \"_EM_21_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/credentials/{id} @@ -2337,7 +2337,7 @@ public void test_33() throws Exception { */ @Test @Timeout(60) public void test_34() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/{id} -> Response status 400 not defined for path '/api/credentials/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_30_XYZ_") @@ -2347,10 +2347,10 @@ public void test_34() throws Exception { .assertThat() .contentType("application/json") .body("'msg'", containsString("For input string: \"_EM_29_XYZ_\"")) - // .body("'status'", containsString("BAD_REQUEST")); + .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/{id} @@ -2358,7 +2358,7 @@ public void test_34() throws Exception { */ @Test @Timeout(60) public void test_35() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/{id} -> Response status 400 not defined for path '/api/employees/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_41_XYZ_") @@ -2370,8 +2370,8 @@ public void test_35() throws Exception { .body("'msg'", containsString("For input string: \"_EM_39_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/projects/{id} @@ -2379,7 +2379,7 @@ public void test_35() throws Exception { */ @Test @Timeout(60) public void test_36() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/projects/{id} -> Response status 400 not defined for path '/api/projects/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2391,8 +2391,8 @@ public void test_36() throws Exception { .body("'msg'", containsString("For input string: \"_EM_47_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/projects/{id} @@ -2400,7 +2400,7 @@ public void test_36() throws Exception { */ @Test @Timeout(60) public void test_37() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/projects/{id} -> Response status 400 not defined for path '/api/projects/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2412,8 +2412,8 @@ public void test_37() throws Exception { .body("'msg'", containsString("For input string: \"_EM_49_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/username/{username} @@ -2421,7 +2421,7 @@ public void test_37() throws Exception { */ @Test @Timeout(60) public void test_38() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/username/{username} -> Response status 400 not defined for path '/api/credentials/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2433,8 +2433,8 @@ public void test_38() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: _EM_28_XYZ_ ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/username/{username} @@ -2442,7 +2442,7 @@ public void test_38() throws Exception { */ @Test @Timeout(60) public void test_39() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/username/{username} -> Response status 400 not defined for path '/api/employees/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "42") @@ -2454,8 +2454,8 @@ public void test_39() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: _EM_36_XYZ_ ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/credentials/username/{username} @@ -2513,7 +2513,7 @@ public void test_40() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/username/{username} -> Response status 400 not defined for path '/api/credentials/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -2525,8 +2525,8 @@ public void test_40() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: ceJohDIBfm ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments @@ -2536,28 +2536,28 @@ public void test_40() throws Exception { */ @Test @Timeout(60) public void test_41() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + - " \"commitMgrDesc\": \"p508Asdp_\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"password\": \"_EM_250_XYZ_\", " + - " \"username\": \"_EM_252_XYZ_\" " + - " }, " + - " \"department\": { " + - " \"location\": { " + - " \"locationId\": 724 " + - " } " + - " }, " + - " \"email\": \"rn35t30WfU\", " + - " \"job\": \"_EM_255_XYZ_\", " + - " \"lastName\": \"Chaouachi\" " + - " } " + + .body(" { " + + " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + + " \"commitMgrDesc\": \"p508Asdp_\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"password\": \"_EM_250_XYZ_\", " + + " \"username\": \"_EM_252_XYZ_\" " + + " }, " + + " \"department\": { " + + " \"location\": { " + + " \"locationId\": 724 " + + " } " + + " }, " + + " \"email\": \"rn35t30WfU\", " + + " \"job\": \"_EM_255_XYZ_\", " + + " \"lastName\": \"Chaouachi\" " + + " } " + " } ") .put(baseUrlOfSut + "/app/api/assignments") .then() @@ -2567,8 +2567,8 @@ public void test_41() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/credentials/username/{username} @@ -2652,12 +2652,12 @@ public void test_42() throws Exception { .d("EMPLOYEE_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/credentials/username/{username} -> Response status 400 not defined for path '/api/credentials/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") - .get(baseUrlOfSut + "/app/api/credentials/username/ceJohDIBfm?" + - "password=aOzT_nFXeb67NIC3&" + + .get(baseUrlOfSut + "/app/api/credentials/username/ceJohDIBfm?" + + "password=aOzT_nFXeb67NIC3&" + "username=BWFEdeljOm") .then() .statusCode(400) @@ -2666,8 +2666,8 @@ public void test_42() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: ceJohDIBfm ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/locations/save @@ -2675,13 +2675,13 @@ public void test_42() throws Exception { */ @Test @Timeout(60) public void test_43() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/locations/save -> Response status 400 not defined for path '/api/locations/save'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"postalCode\": \"_EM_81_XYZ_\" " + + .body(" { " + + " \"postalCode\": \"_EM_81_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/locations/save?EMextraParam123=42") .then() @@ -2691,8 +2691,8 @@ public void test_43() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=adr, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/locations/update @@ -2700,14 +2700,14 @@ public void test_43() throws Exception { */ @Test @Timeout(60) public void test_44() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations/update -> Response status 400 not defined for path '/api/locations/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"adr\": \"RUE DE BLA BLA\", " + - " \"locationId\": 546 " + + .body(" { " + + " \"adr\": \"RUE DE BLA BLA\", " + + " \"locationId\": 546 " + " } ") .put(baseUrlOfSut + "/app/api/locations/update") .then() @@ -2717,8 +2717,8 @@ public void test_44() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=postalCode, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -2776,14 +2776,14 @@ public void test_45() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"departmentId\": 366, " + - " \"departmentName\": \"tt5LjlA2yeX\" " + + .body(" { " + + " \"departmentId\": 366, " + + " \"departmentName\": \"tt5LjlA2yeX\" " + " } ") .put(baseUrlOfSut + "/app/api/departments") .then() @@ -2793,8 +2793,8 @@ public void test_45() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -2852,17 +2852,17 @@ public void test_46() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"departmentId\": 366, " + - " \"departmentName\": \"tt5LjlA2yeX\" " + + .body(" { " + + " \"departmentId\": 366, " + + " \"departmentName\": \"tt5LjlA2yeX\" " + " } ") - .put(baseUrlOfSut + "/app/api/departments?" + - "password=6VMIUt&" + + .put(baseUrlOfSut + "/app/api/departments?" + + "password=6VMIUt&" + "username=Hu") .then() .statusCode(400) @@ -2871,8 +2871,8 @@ public void test_46() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/authenticate @@ -2880,13 +2880,13 @@ public void test_46() throws Exception { */ @Test @Timeout(60) public void test_47() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/authenticate -> Response status 400 not defined for path '/api/authenticate'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"password\": \"_EM_93_XYZ_\" " + + .body(" { " + + " \"password\": \"_EM_93_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/authenticate") .then() @@ -2896,8 +2896,8 @@ public void test_47() throws Exception { .body("'msg'", containsString("Bad credentials")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -2905,18 +2905,18 @@ public void test_47() throws Exception { */ @Test @Timeout(60) public void test_48() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_126_XYZ_") .contentType("application/json") - .body(" { " + - " \"departmentId\": 435, " + - " \"location\": { " + - " \"adr\": \"S\", " + - " \"city\": \"_EM_123_XYZ_\", " + - " \"locationId\": 1 " + - " } " + + .body(" { " + + " \"departmentId\": 435, " + + " \"location\": { " + + " \"adr\": \"S\", " + + " \"city\": \"_EM_123_XYZ_\", " + + " \"locationId\": 1 " + + " } " + " } ") .put(baseUrlOfSut + "/app/api/departments?EMextraParam123=_EM_125_XYZ_") .then() @@ -2926,8 +2926,8 @@ public void test_48() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not blank**', propertyPath=departmentName, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/employees @@ -2935,20 +2935,20 @@ public void test_48() throws Exception { */ @Test @Timeout(60) public void test_49() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/employees -> Response status 400 not defined for path '/api/employees'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"department\": { " + - " \"departmentId\": 765, " + - " \"departmentName\": \"_EM_128_XYZ_\" " + - " }, " + - " \"email\": \"_EM_129_XYZ_\", " + - " \"employeeId\": 425, " + - " \"lastName\": \"_EM_132_XYZ_\", " + - " \"salary\": 0.00593367434706038 " + + .body(" { " + + " \"department\": { " + + " \"departmentId\": 765, " + + " \"departmentName\": \"_EM_128_XYZ_\" " + + " }, " + + " \"email\": \"_EM_129_XYZ_\", " + + " \"employeeId\": 425, " + + " \"lastName\": \"_EM_132_XYZ_\", " + + " \"salary\": 0.00593367434706038 " + " } ") .put(baseUrlOfSut + "/app/api/employees?EMextraParam123=_EM_134_XYZ_") .then() @@ -2958,8 +2958,8 @@ public void test_49() throws Exception { .body("'msg'", nullValue()) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/employees/update @@ -2967,28 +2967,28 @@ public void test_49() throws Exception { */ @Test @Timeout(60) public void test_50() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/employees/update -> Response status 400 not defined for path '/api/employees/update'. given().accept("*/*") .header("x-EMextraHeader123", "_EM_159_XYZ_") .contentType("application/json") - .body(" { " + - " \"credential\": { " + - " \"credentialId\": 138, " + - " \"enabled\": false, " + - " \"password\": \"dFEFA\", " + - " \"role\": \"_EM_154_XYZ_\", " + - " \"username\": \"maryemtlemseni\" " + - " }, " + - " \"department\": { " + - " \"departmentName\": \"0y\", " + - " \"location\": { " + - " \"locationId\": 480, " + - " \"postalCode\": \"oc55Ajqa_hx083_\" " + - " } " + - " }, " + - " \"hiredate\": \"AxwB\", " + - " \"salary\": 0.4401792996387375 " + + .body(" { " + + " \"credential\": { " + + " \"credentialId\": 138, " + + " \"enabled\": false, " + + " \"password\": \"dFEFA\", " + + " \"role\": \"_EM_154_XYZ_\", " + + " \"username\": \"maryemtlemseni\" " + + " }, " + + " \"department\": { " + + " \"departmentName\": \"0y\", " + + " \"location\": { " + + " \"locationId\": 480, " + + " \"postalCode\": \"oc55Ajqa_hx083_\" " + + " } " + + " }, " + + " \"hiredate\": \"AxwB\", " + + " \"salary\": 0.4401792996387375 " + " } ") .put(baseUrlOfSut + "/app/api/employees/update") .then() @@ -2998,8 +2998,8 @@ public void test_50() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"AxwB\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'AxwB' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"AxwB\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'AxwB' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 238] (through reference chain: com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/credentials @@ -3007,15 +3007,15 @@ public void test_50() throws Exception { */ @Test @Timeout(60) public void test_51() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials -> Response status 400 not defined for path '/api/credentials'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"credentialId\": 3, " + - " \"role\": \"pEgKhuzkX\", " + - " \"username\": \"_EM_407_XYZ_\" " + + .body(" { " + + " \"credentialId\": 3, " + + " \"role\": \"pEgKhuzkX\", " + + " \"username\": \"_EM_407_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials") .then() @@ -3025,8 +3025,8 @@ public void test_51() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/employees/save @@ -3084,21 +3084,21 @@ public void test_52() throws Exception { .d("COMMIT_MGR_DESC", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/employees/save -> Response status 400 not defined for path '/api/employees/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"credential\": { " + - " \"credentialId\": 1665453008, " + - " \"password\": \"hOdfB__qZ\", " + - " \"role\": \"IGK7ECsVr9\" " + - " }, " + - " \"email\": \"ILHw7m_bk\", " + - " \"job\": \"WU1j6NtBol29z\", " + - " \"lastName\": \"JEG\", " + - " \"salary\": 0.551561401413652 " + + .body(" { " + + " \"credential\": { " + + " \"credentialId\": 1665453008, " + + " \"password\": \"hOdfB__qZ\", " + + " \"role\": \"IGK7ECsVr9\" " + + " }, " + + " \"email\": \"ILHw7m_bk\", " + + " \"job\": \"WU1j6NtBol29z\", " + + " \"lastName\": \"JEG\", " + + " \"salary\": 0.551561401413652 " + " } ") .post(baseUrlOfSut + "/app/api/employees/save?password=") .then() @@ -3108,8 +3108,8 @@ public void test_52() throws Exception { .body("'msg'", nullValue()) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments/update @@ -3117,14 +3117,14 @@ public void test_52() throws Exception { */ @Test @Timeout(60) public void test_53() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments/update -> Response status 400 not defined for path '/api/assignments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"\", " + - " \"projectId\": 78 " + + .body(" { " + + " \"commitEmpDesc\": \"\", " + + " \"projectId\": 78 " + " } ") .put(baseUrlOfSut + "/app/api/assignments/update?EMextraParam123=_EM_146_XYZ_") .then() @@ -3134,8 +3134,8 @@ public void test_53() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -3143,15 +3143,15 @@ public void test_53() throws Exception { */ @Test @Timeout(60) public void test_54() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"_EM_373_XYZ_\", " + - " \"employeeId\": 655, " + - " \"projectId\": 3 " + + .body(" { " + + " \"commitMgrDesc\": \"_EM_373_XYZ_\", " + + " \"employeeId\": 655, " + + " \"projectId\": 3 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -3161,8 +3161,8 @@ public void test_54() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [FK2_ASSIGN]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{projectId} @@ -3170,14 +3170,14 @@ public void test_54() throws Exception { */ @Test @Timeout(60) public void test_55() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3190,8 +3190,8 @@ public void test_55() throws Exception { .body("'msg'", containsString("For input string: \"_EM_1068_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/projects/{id} @@ -3199,14 +3199,14 @@ public void test_55() throws Exception { */ @Test @Timeout(60) public void test_56() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/projects/{id} -> Response status 400 not defined for path '/api/projects/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3219,8 +3219,8 @@ public void test_56() throws Exception { .body("'msg'", containsString("For input string: \"Qb3\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/locations/{id} @@ -3228,14 +3228,14 @@ public void test_56() throws Exception { */ @Test @Timeout(60) public void test_57() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/locations/{id} -> Response status 400 not defined for path '/api/locations/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3248,8 +3248,8 @@ public void test_57() throws Exception { .body("'msg'", containsString("For input string: \"_EM_701_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -3259,23 +3259,23 @@ public void test_57() throws Exception { */ @Test @Timeout(60) public void test_58() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"pkZsE6JebHQ\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"pkZsE6JebHQ\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -3285,8 +3285,8 @@ public void test_58() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/username/{username} @@ -3294,14 +3294,14 @@ public void test_58() throws Exception { */ @Test @Timeout(60) public void test_59() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/username/{username} -> Response status 400 not defined for path '/api/employees/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3314,8 +3314,8 @@ public void test_59() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: 0OH80Jdl4 ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects/save @@ -3325,24 +3325,24 @@ public void test_59() throws Exception { */ @Test @Timeout(60) public void test_60() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects/save -> Response status 400 not defined for path '/api/projects/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"_EM_811_XYZ_\", " + - " \"projectId\": 628, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"1duKP3\" " + + .body(" { " + + " \"endDate\": \"_EM_811_XYZ_\", " + + " \"projectId\": 628, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"1duKP3\" " + " } ") .post(baseUrlOfSut + "/app/api/projects/save") .then() @@ -3352,8 +3352,8 @@ public void test_60() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"_EM_811_XYZ_\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text '_EM_811_XYZ_' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"_EM_811_XYZ_\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text '_EM_811_XYZ_' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects @@ -3363,23 +3363,23 @@ public void test_60() throws Exception { */ @Test @Timeout(60) public void test_61() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"hZYfkLoAy\", " + - " \"title\": \"P0HJZLqdAh\" " + + .body(" { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"hZYfkLoAy\", " + + " \"title\": \"P0HJZLqdAh\" " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -3389,8 +3389,8 @@ public void test_61() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 12] (through reference chain: com.pfa.app.model.entity.Project[\"endDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/username/{username} @@ -3445,20 +3445,20 @@ public void test_62() throws Exception { .d("EMPLOYEE_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/username/{username} -> Response status 400 not defined for path '/api/employees/username/{username}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) - .delete(baseUrlOfSut + "/app/api/employees/username/0OH80Jfl4?" + - "password=KTzELGllTH&" + + .delete(baseUrlOfSut + "/app/api/employees/username/0OH80Jfl4?" + + "password=KTzELGllTH&" + "username=xVKnegGAbts") .then() .statusCode(400) @@ -3467,8 +3467,8 @@ public void test_62() throws Exception { .body("'msg'", containsString("###### NO Credential object FOUND with username: 0OH80Jfl4 ! ######")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} @@ -3476,14 +3476,14 @@ public void test_62() throws Exception { */ @Test @Timeout(60) public void test_63() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3496,8 +3496,8 @@ public void test_63() throws Exception { .body("'msg'", containsString("For input string: \"eg6IX7JsGkzJqK\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} @@ -3505,20 +3505,20 @@ public void test_63() throws Exception { */ @Test @Timeout(60) public void test_64() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) - .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/1wD/oM9Sx?" + - "password=BwvR_6c&" + + .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/1wD/oM9Sx?" + + "password=BwvR_6c&" + "username=IOervlhojejjGBc0") .then() .statusCode(400) @@ -3527,8 +3527,8 @@ public void test_64() throws Exception { .body("'msg'", containsString("For input string: \"1wD\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/assignments/{employeeId}/{projectId}/{commitDate} @@ -3536,14 +3536,14 @@ public void test_64() throws Exception { */ @Test @Timeout(60) public void test_65() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/assignments/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3556,8 +3556,8 @@ public void test_65() throws Exception { .body("'msg'", containsString("For input string: \"Gv\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/employees/data/employee-project-data/{employeeId} @@ -3565,20 +3565,20 @@ public void test_65() throws Exception { */ @Test @Timeout(60) public void test_66() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/employees/data/employee-project-data/{employeeId} -> Response status 400 not defined for path '/api/employees/data/employee-project-data/{employeeId}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) - .get(baseUrlOfSut + "/app/api/employees/data/employee-project-data/hSPpZnftGQUH?" + - "password=&" + + .get(baseUrlOfSut + "/app/api/employees/data/employee-project-data/hSPpZnftGQUH?" + + "password=&" + "username=VwSeKtqvu") .then() .statusCode(400) @@ -3587,8 +3587,8 @@ public void test_66() throws Exception { .body("'msg'", containsString("For input string: \"hSPpZnftGQUH\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/departments/{id} @@ -3596,14 +3596,14 @@ public void test_66() throws Exception { */ @Test @Timeout(60) public void test_67() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/departments/{id} -> Response status 400 not defined for path '/api/departments/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3616,8 +3616,8 @@ public void test_67() throws Exception { .body("'msg'", containsString("For input string: \"DIz\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/locations/{id} @@ -3625,14 +3625,14 @@ public void test_67() throws Exception { */ @Test @Timeout(60) public void test_68() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/locations/{id} -> Response status 400 not defined for path '/api/locations/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3645,8 +3645,8 @@ public void test_68() throws Exception { .body("'msg'", containsString("For input string: \"9wto\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} @@ -3668,20 +3668,20 @@ public void test_69() throws Exception { .d("COMMIT_MGR_DESC", "\"\"") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate}'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) - .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/OWZrj_/4F86INwC_Cj/sqEN4qJpeBSNVa?" + - "password=kYfkw0&" + + .get(baseUrlOfSut + "/app/api/assignments/data/project-commit/OWZrj_/4F86INwC_Cj/sqEN4qJpeBSNVa?" + + "password=kYfkw0&" + "username=QN") .then() .statusCode(400) @@ -3690,8 +3690,8 @@ public void test_69() throws Exception { .body("'msg'", containsString("For input string: \"OWZrj_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} @@ -3699,14 +3699,14 @@ public void test_69() throws Exception { */ @Test @Timeout(60) public void test_70() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. GET:/app/api/assignments/data/project-commit/{employeeId}/{projectId} -> Response status 400 not defined for path '/api/assignments/data/project-commit/{employeeId}/{projectId}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3719,8 +3719,8 @@ public void test_70() throws Exception { .body("'msg'", containsString("For input string: \"z0m\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/{id} @@ -3728,14 +3728,14 @@ public void test_70() throws Exception { */ @Test @Timeout(60) public void test_71() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/{id} -> Response status 400 not defined for path '/api/credentials/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3748,8 +3748,8 @@ public void test_71() throws Exception { .body("'msg'", containsString("For input string: \"_EM_476_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/employees/delete/{id} @@ -3757,14 +3757,14 @@ public void test_71() throws Exception { */ @Test @Timeout(60) public void test_72() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/employees/delete/{id} -> Response status 400 not defined for path '/api/employees/delete/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3777,8 +3777,8 @@ public void test_72() throws Exception { .body("'msg'", containsString("For input string: \"_EM_469_XYZ_\"")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/employees/save @@ -3788,24 +3788,24 @@ public void test_72() throws Exception { */ @Test @Timeout(60) public void test_73() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/employees/save -> Response status 400 not defined for path '/api/employees/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"email\": \"springabcxyzboot@gmail.com\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"lastName\": \"zWQ2RTIRoyyDi\", " + - " \"phone\": \"22125144\" " + + .body(" { " + + " \"email\": \"springabcxyzboot@gmail.com\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"lastName\": \"zWQ2RTIRoyyDi\", " + + " \"phone\": \"22125144\" " + " } ") .post(baseUrlOfSut + "/app/api/employees/save") .then() @@ -3815,8 +3815,8 @@ public void test_73() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 51] (through reference chain: com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects/update @@ -3826,23 +3826,23 @@ public void test_73() throws Exception { */ @Test @Timeout(60) public void test_74() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects/update -> Response status 400 not defined for path '/api/projects/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"projectId\": 753, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"status\": \"IN_PROGRESS\" " + + .body(" { " + + " \"projectId\": 753, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"status\": \"IN_PROGRESS\" " + " } ") .put(baseUrlOfSut + "/app/api/projects/update") .then() @@ -3852,8 +3852,8 @@ public void test_74() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 31] (through reference chain: com.pfa.app.model.entity.Project[\"startDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/locations @@ -3861,14 +3861,14 @@ public void test_74() throws Exception { */ @Test @Timeout(60) public void test_75() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -3883,8 +3883,8 @@ public void test_75() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Location] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=postalCode, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=city, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must Not blank**', propertyPath=adr, rootBeanClass=class com.pfa.app.model.entity.Location, messageTemplate='*Must Not blank**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -3894,29 +3894,29 @@ public void test_75() throws Exception { */ @Test @Timeout(60) public void test_76() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + - " \"commitMgrDesc\": \"_EM_631_XYZ_\", " + - " \"employeeId\": 666, " + - " \"project\": { " + - " \"projectId\": 9, " + - " \"startDate\": \"9_\", " + - " \"title\": \"_EM_634_XYZ_\" " + - " }, " + - " \"projectId\": 469 " + + .body(" { " + + " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + + " \"commitMgrDesc\": \"_EM_631_XYZ_\", " + + " \"employeeId\": 666, " + + " \"project\": { " + + " \"projectId\": 9, " + + " \"startDate\": \"9_\", " + + " \"title\": \"_EM_634_XYZ_\" " + + " }, " + + " \"projectId\": 469 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -3926,8 +3926,8 @@ public void test_76() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments/update @@ -3937,40 +3937,40 @@ public void test_76() throws Exception { */ @Test @Timeout(60) public void test_77() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments/update -> Response status 400 not defined for path '/api/assignments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"jGOTiv5k\", " + - " \"commitMgrDesc\": \"qu2r\", " + - " \"employee\": { " + - " \"department\": { " + - " \"departmentName\": \"Digital\", " + - " \"location\": { " + - " \"city\": \"3ady1Mpa\", " + - " \"postalCode\": \"\" " + - " } " + - " }, " + - " \"email\": \"_EM_1047_XYZ_\", " + - " \"firstName\": \"gB7szWN4\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"job\": \"OjcdSk\" " + - " }, " + - " \"project\": { " + - " \"endDate\": \"7\", " + - " \"projectId\": 5 " + - " }, " + - " \"projectId\": 3 " + + .body(" { " + + " \"commitDate\": \"jGOTiv5k\", " + + " \"commitMgrDesc\": \"qu2r\", " + + " \"employee\": { " + + " \"department\": { " + + " \"departmentName\": \"Digital\", " + + " \"location\": { " + + " \"city\": \"3ady1Mpa\", " + + " \"postalCode\": \"\" " + + " } " + + " }, " + + " \"email\": \"_EM_1047_XYZ_\", " + + " \"firstName\": \"gB7szWN4\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"job\": \"OjcdSk\" " + + " }, " + + " \"project\": { " + + " \"endDate\": \"7\", " + + " \"projectId\": 5 " + + " }, " + + " \"projectId\": 3 " + " } ") .put(baseUrlOfSut + "/app/api/assignments/update") .then() @@ -3980,8 +3980,8 @@ public void test_77() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"jGOTiv5k\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'jGOTiv5k' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"jGOTiv5k\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'jGOTiv5k' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments/save @@ -3992,34 +3992,34 @@ public void test_77() throws Exception { */ @Test @Timeout(60) public void test_78() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments/save -> Response status 400 not defined for path '/api/assignments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + - " \"commitEmpDesc\": \"8VE\", " + - " \"employee\": { " + - " \"department\": { " + - " \"location\": { " + - " \"city\": \"_FxO6dv6KTq\", " + - " \"locationId\": 167 " + - " } " + - " }, " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"job\": \"_EM_1030_XYZ_\", " + - " \"lastName\": \"x9Es5Sthot\" " + - " }, " + - " \"employeeId\": 68 " + + .body(" { " + + " \"commitDate\": \"dd-MM-yyyyHH:mm:ss\", " + + " \"commitEmpDesc\": \"8VE\", " + + " \"employee\": { " + + " \"department\": { " + + " \"location\": { " + + " \"city\": \"_FxO6dv6KTq\", " + + " \"locationId\": 167 " + + " } " + + " }, " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"job\": \"_EM_1030_XYZ_\", " + + " \"lastName\": \"x9Es5Sthot\" " + + " }, " + + " \"employeeId\": 68 " + " } ") .post(baseUrlOfSut + "/app/api/assignments/save") .then() @@ -4029,8 +4029,8 @@ public void test_78() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"dd-MM-yyyyHH:mm:ss\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyyHH:mm:ss' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments @@ -4038,14 +4038,14 @@ public void test_78() throws Exception { */ @Test @Timeout(60) public void test_79() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -4060,8 +4060,8 @@ public void test_79() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not blank**', propertyPath=departmentName, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not blank**'}\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -4071,39 +4071,39 @@ public void test_79() throws Exception { */ @Test @Timeout(60) public void test_80() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"I0ZCwTo\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"enabled\": false, " + - " \"role\": \"42Xcf5NeLLjHM6VN\" " + - " }, " + - " \"email\": \"77ms\", " + - " \"employeeId\": 5, " + - " \"job\": \"Chef service Billing\", " + - " \"lastName\": \"4gtOK\", " + - " \"salary\": 0.05239085058550608 " + - " }, " + - " \"employeeId\": 419, " + - " \"project\": { " + - " \"endDate\": \"dd-MM-yyyy\", " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"title\": \"5Bw4dS8lw6Ix_h\" " + - " }, " + - " \"projectId\": 69 " + + .body(" { " + + " \"commitDate\": \"I0ZCwTo\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"enabled\": false, " + + " \"role\": \"42Xcf5NeLLjHM6VN\" " + + " }, " + + " \"email\": \"77ms\", " + + " \"employeeId\": 5, " + + " \"job\": \"Chef service Billing\", " + + " \"lastName\": \"4gtOK\", " + + " \"salary\": 0.05239085058550608 " + + " }, " + + " \"employeeId\": 419, " + + " \"project\": { " + + " \"endDate\": \"dd-MM-yyyy\", " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"title\": \"5Bw4dS8lw6Ix_h\" " + + " }, " + + " \"projectId\": 69 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -4113,8 +4113,8 @@ public void test_80() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"I0ZCwTo\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'I0ZCwTo' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String \"I0ZCwTo\": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text 'I0ZCwTo' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 15] (through reference chain: com.pfa.app.model.entity.Assignment[\"commitDate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/credentials @@ -4122,21 +4122,21 @@ public void test_80() throws Exception { */ @Test @Timeout(60) public void test_81() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/credentials -> Response status 400 not defined for path '/api/credentials'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"username\": \"7B_1xnA6\" " + + .body(" { " + + " \"username\": \"7B_1xnA6\" " + " } ") .put(baseUrlOfSut + "/app/api/credentials") .then() @@ -4146,8 +4146,8 @@ public void test_81() throws Exception { .body("'msg'", containsString("rawPassword cannot be null")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects/update @@ -4155,21 +4155,21 @@ public void test_81() throws Exception { */ @Test @Timeout(60) public void test_82() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects/update -> Response status 400 not defined for path '/api/projects/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"status\": \"T\" " + + .body(" { " + + " \"status\": \"T\" " + " } ") .put(baseUrlOfSut + "/app/api/projects/update") .then() @@ -4179,8 +4179,8 @@ public void test_82() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Project] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='Must not blank*', propertyPath=title, rootBeanClass=class com.pfa.app.model.entity.Project, messageTemplate='Must not blank*'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -4188,21 +4188,21 @@ public void test_82() throws Exception { */ @Test @Timeout(60) public void test_83() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"status\": \"csQ_xm8ovT\" " + + .body(" { " + + " \"status\": \"csQ_xm8ovT\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -4212,8 +4212,8 @@ public void test_83() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Project] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='Must not blank*', propertyPath=title, rootBeanClass=class com.pfa.app.model.entity.Project, messageTemplate='Must not blank*'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments/save @@ -4221,22 +4221,22 @@ public void test_83() throws Exception { */ @Test @Timeout(60) public void test_84() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments/save -> Response status 400 not defined for path '/api/departments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentId\": 1, " + - " \"departmentName\": \"M1rLB5\" " + + .body(" { " + + " \"departmentId\": 1, " + + " \"departmentName\": \"M1rLB5\" " + " } ") .post(baseUrlOfSut + "/app/api/departments/save") .then() @@ -4246,8 +4246,8 @@ public void test_84() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments/update @@ -4255,22 +4255,22 @@ public void test_84() throws Exception { */ @Test @Timeout(60) public void test_85() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments/update -> Response status 400 not defined for path '/api/departments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentId\": 258, " + - " \"departmentName\": \"Rwiu\" " + + .body(" { " + + " \"departmentId\": 258, " + + " \"departmentName\": \"Rwiu\" " + " } ") .put(baseUrlOfSut + "/app/api/departments/update?username=CwlZMZZr9U5h8") .then() @@ -4280,8 +4280,8 @@ public void test_85() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments/update @@ -4298,25 +4298,25 @@ public void test_86() throws Exception { .d("LOCATION_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments/update -> Response status 400 not defined for path '/api/departments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentId\": 258, " + - " \"departmentName\": \"Rwiu\" " + + .body(" { " + + " \"departmentId\": 258, " + + " \"departmentName\": \"Rwiu\" " + " } ") - .put(baseUrlOfSut + "/app/api/departments/update?" + - "password=qfT2oU6&" + + .put(baseUrlOfSut + "/app/api/departments/update?" + + "password=qfT2oU6&" + "username=CwlZMZZr8U5h8") .then() .statusCode(400) @@ -4325,8 +4325,8 @@ public void test_86() throws Exception { .body("'msg'", containsString("Validation failed for classes [com.pfa.app.model.entity.Department] during persist time for groups [javax.validation.groups.Default, ]\nList of constraint violations:[\n\tConstraintViolationImpl{interpolatedMessage='*Must not NULL**', propertyPath=location, rootBeanClass=class com.pfa.app.model.entity.Department, messageTemplate='*Must not NULL**'}\n]")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/credentials/save @@ -4334,23 +4334,23 @@ public void test_86() throws Exception { */ @Test @Timeout(60) public void test_87() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/credentials/save -> Response status 400 not defined for path '/api/credentials/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"credentialId\": 620, " + - " \"password\": \"Nutm\", " + - " \"role\": \"HEbdBH\" " + + .body(" { " + + " \"credentialId\": 620, " + + " \"password\": \"Nutm\", " + + " \"role\": \"HEbdBH\" " + " } ") .post(baseUrlOfSut + "/app/api/credentials/save") .then() @@ -4360,8 +4360,8 @@ public void test_87() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/credentials/update @@ -4369,23 +4369,23 @@ public void test_87() throws Exception { */ @Test @Timeout(60) public void test_88() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/credentials/update -> Response status 400 not defined for path '/api/credentials/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"credentialId\": 123, " + - " \"enabled\": false, " + - " \"role\": \"uf3aruhEMZAkS\" " + + .body(" { " + + " \"credentialId\": 123, " + + " \"enabled\": false, " + + " \"role\": \"uf3aruhEMZAkS\" " + " } ") .put(baseUrlOfSut + "/app/api/credentials/update") .then() @@ -4395,8 +4395,8 @@ public void test_88() throws Exception { .body("'msg'", containsString("rawPassword cannot be null")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -4404,19 +4404,19 @@ public void test_88() throws Exception { */ @Test @Timeout(60) public void test_89() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "42") .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"kX4T\", " + - " \"employeeId\": 999, " + - " \"project\": { " + - " \"endDate\": \"\", " + - " \"title\": \"SYNCH_BSCS_IMX\" " + - " }, " + - " \"projectId\": 6 " + + .body(" { " + + " \"commitMgrDesc\": \"kX4T\", " + + " \"employeeId\": 999, " + + " \"project\": { " + + " \"endDate\": \"\", " + + " \"title\": \"SYNCH_BSCS_IMX\" " + + " }, " + + " \"projectId\": 6 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -4426,8 +4426,8 @@ public void test_89() throws Exception { .body("'msg'", containsString("org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.project -> com.pfa.app.model.entity.Project; nested exception is java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.project -> com.pfa.app.model.entity.Project")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments/update @@ -4435,21 +4435,21 @@ public void test_89() throws Exception { */ @Test @Timeout(60) public void test_90() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments/update -> Response status 400 not defined for path '/api/departments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentId\": 1 " + + .body(" { " + + " \"departmentId\": 1 " + " } ") .put(baseUrlOfSut + "/app/api/departments/update") .then() @@ -4459,8 +4459,8 @@ public void test_90() throws Exception { .body("'msg'", containsString("Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) DELETE:/app/api/credentials/{id} @@ -4468,14 +4468,14 @@ public void test_90() throws Exception { */ @Test @Timeout(60) public void test_91() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. DELETE:/app/api/credentials/{id} -> Response status 400 not defined for path '/api/credentials/{id}'. given().accept("*/*") .header("x-EMextraHeader123", "") @@ -4488,8 +4488,8 @@ public void test_91() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"FK2_EMP: PUBLIC.EMPLOYEES FOREIGN KEY(MANAGER_ID) REFERENCES PUBLIC.EMPLOYEES(EMPLOYEE_ID) (5)\"; SQL statement:\n/* delete com.pfa.app.model.entity.Employee */ delete from employees where employee_id=? [23503-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/employees @@ -4499,33 +4499,33 @@ public void test_91() throws Exception { */ @Test @Timeout(60) public void test_92() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/employees -> Response status 400 not defined for path '/api/employees'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"credential\": { " + - " \"credentialId\": 638, " + - " \"enabled\": true, " + - " \"password\": \"r\", " + - " \"role\": \"m4GiSzsPuZr0TEp\" " + - " }, " + - " \"firstName\": \"QukZDeqlUW\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"lastName\": \"uN7\", " + - " \"phone\": \"NTNR8XPGZ0OBZn\" " + + .body(" { " + + " \"credential\": { " + + " \"credentialId\": 638, " + + " \"enabled\": true, " + + " \"password\": \"r\", " + + " \"role\": \"m4GiSzsPuZr0TEp\" " + + " }, " + + " \"firstName\": \"QukZDeqlUW\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"lastName\": \"uN7\", " + + " \"phone\": \"NTNR8XPGZ0OBZn\" " + " } ") - .post(baseUrlOfSut + "/app/api/employees?" + - "password=&" + + .post(baseUrlOfSut + "/app/api/employees?" + + "password=&" + "username=cqD3ahZpx") .then() .statusCode(400) @@ -4534,8 +4534,8 @@ public void test_92() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 132] (through reference chain: com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/locations @@ -4543,24 +4543,24 @@ public void test_92() throws Exception { */ @Test @Timeout(60) public void test_93() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"adr\": \"RUE DE LA BOURSE\", " + - " \"city\": \"_EM_699_XYZ_\", " + - " \"locationId\": 465, " + - " \"postalCode\": \"_EM_700_XYZ_\" " + + .body(" { " + + " \"adr\": \"RUE DE LA BOURSE\", " + + " \"city\": \"_EM_699_XYZ_\", " + + " \"locationId\": 465, " + + " \"postalCode\": \"_EM_700_XYZ_\" " + " } ") .post(baseUrlOfSut + "/app/api/locations") .then() @@ -4570,8 +4570,8 @@ public void test_93() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"PRIMARY KEY ON PUBLIC.LOCATIONS(LOCATION_ID) [2, 'RUE DE BLA BLA', '2016', 'CHARGUIA']\"; SQL statement:\n/* insert com.pfa.app.model.entity.Location */ insert into locations (location_id, adr, city, postal_code) values (null, ?, ?, ?) [23505-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/authenticate/ @@ -4607,21 +4607,21 @@ public void test_94() throws Exception { .d("EMPLOYEE_ID", "NULL") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/authenticate/ -> Response status 400 not defined for path '/api/authenticate/'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"username\": \"8aPcf5fiNbqq\" " + + .body(" { " + + " \"username\": \"8aPcf5fiNbqq\" " + " } ") .post(baseUrlOfSut + "/app/api/authenticate/") .then() @@ -4631,8 +4631,8 @@ public void test_94() throws Exception { .body("'msg'", containsString("Bad credentials")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/projects @@ -4640,24 +4640,24 @@ public void test_94() throws Exception { */ @Test @Timeout(60) public void test_95() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"projectId\": 817, " + - " \"startDate\": \"29-01-2021\", " + - " \"status\": \"AOKW11N\", " + - " \"title\": \"Niu4TlzpIU\" " + + .body(" { " + + " \"projectId\": 817, " + + " \"startDate\": \"29-01-2021\", " + + " \"status\": \"AOKW11N\", " + + " \"title\": \"Niu4TlzpIU\" " + " } ") .put(baseUrlOfSut + "/app/api/projects") .then() @@ -4667,8 +4667,8 @@ public void test_95() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"PRIMARY KEY ON PUBLIC.PROJECTS(PROJECT_ID) [1, 'TRANSBSCS', DATE '2020-09-28', DATE '2020-11-04', 'COMPLETED']\"; SQL statement:\n/* insert com.pfa.app.model.entity.Project */ insert into projects (project_id, end_date, start_date, status, title) values (null, ?, ?, ?, ?) [23505-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/locations/update @@ -4676,24 +4676,24 @@ public void test_95() throws Exception { */ @Test @Timeout(60) public void test_96() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations/update -> Response status 400 not defined for path '/api/locations/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"adr\": \"RUE DE LA BOURSE\", " + - " \"city\": \"xpfSAmJjiJU7\", " + - " \"locationId\": 908, " + - " \"postalCode\": \"FVuCCsLyZ4L\" " + + .body(" { " + + " \"adr\": \"RUE DE LA BOURSE\", " + + " \"city\": \"xpfSAmJjiJU7\", " + + " \"locationId\": 908, " + + " \"postalCode\": \"FVuCCsLyZ4L\" " + " } ") .put(baseUrlOfSut + "/app/api/locations/update") .then() @@ -4703,8 +4703,8 @@ public void test_96() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [\"PRIMARY KEY ON PUBLIC.LOCATIONS(LOCATION_ID) [2, 'RUE DE BLA BLA', '2016', 'CHARGUIA']\"; SQL statement:\n/* insert com.pfa.app.model.entity.Location */ insert into locations (location_id, adr, city, postal_code) values (null, ?, ?, ?) [23505-200]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/authenticate/ @@ -4740,24 +4740,24 @@ public void test_97() throws Exception { .d("EMPLOYEE_ID", "5") .dtos(); InsertionResultsDto insertionsresult = controller.execInsertionsIntoDatabase(insertions); - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/authenticate/ -> Response status 400 not defined for path '/api/authenticate/'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"username\": \"8aPcf5fiNbqq\" " + + .body(" { " + + " \"username\": \"8aPcf5fiNbqq\" " + " } ") - .post(baseUrlOfSut + "/app/api/authenticate/?" + - "password=m8qYgPY&" + + .post(baseUrlOfSut + "/app/api/authenticate/?" + + "password=m8qYgPY&" + "username=") .then() .statusCode(400) @@ -4766,8 +4766,8 @@ public void test_97() throws Exception { .body("'msg'", containsString("Bad credentials")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments/save @@ -4777,39 +4777,39 @@ public void test_97() throws Exception { */ @Test @Timeout(60) public void test_98() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments/save -> Response status 400 not defined for path '/api/assignments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"commitDate\": \"12-12-202016:43:48\", " + - " \"commitEmpDesc\": \"_EM_494_XYZ_\", " + - " \"commitMgrDesc\": \"you need to implement sec solution\", " + - " \"employee\": { " + - " \"email\": \"KL1Lpdtux\", " + - " \"employeeId\": 970, " + - " \"hiredate\": \"d1qRqRP0S\", " + - " \"lastName\": \"g4xo547\", " + - " \"phone\": \"_EM_497_XYZ_\", " + - " \"salary\": 0.06578326796072143 " + - " }, " + - " \"employeeId\": 551, " + - " \"project\": { " + - " \"endDate\": \"\", " + - " \"projectId\": 490, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"status\": \"_EM_498_XYZ_\", " + - " \"title\": \"Jyv_HSYdLkl4btz\" " + - " } " + + .body(" { " + + " \"commitDate\": \"12-12-202016:43:48\", " + + " \"commitEmpDesc\": \"_EM_494_XYZ_\", " + + " \"commitMgrDesc\": \"you need to implement sec solution\", " + + " \"employee\": { " + + " \"email\": \"KL1Lpdtux\", " + + " \"employeeId\": 970, " + + " \"hiredate\": \"d1qRqRP0S\", " + + " \"lastName\": \"g4xo547\", " + + " \"phone\": \"_EM_497_XYZ_\", " + + " \"salary\": 0.06578326796072143 " + + " }, " + + " \"employeeId\": 551, " + + " \"project\": { " + + " \"endDate\": \"\", " + + " \"projectId\": 490, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"status\": \"_EM_498_XYZ_\", " + + " \"title\": \"Jyv_HSYdLkl4btz\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/assignments/save") .then() @@ -4819,8 +4819,8 @@ public void test_98() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"d1qRqRP0S\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'd1qRqRP0S' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"d1qRqRP0S\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'd1qRqRP0S' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 185] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/departments @@ -4828,25 +4828,25 @@ public void test_98() throws Exception { */ @Test @Timeout(60) public void test_99() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentName\": \"SXdINjRKnc\", " + - " \"location\": { " + - " \"locationId\": 299, " + - " \"postalCode\": \"fYmB\" " + - " } " + + .body(" { " + + " \"departmentName\": \"SXdINjRKnc\", " + + " \"location\": { " + + " \"locationId\": 299, " + + " \"postalCode\": \"fYmB\" " + + " } " + " } ") .put(baseUrlOfSut + "/app/api/departments") .then() @@ -4856,8 +4856,8 @@ public void test_99() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [FK1_DEPT]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments/update @@ -4867,39 +4867,39 @@ public void test_99() throws Exception { */ @Test @Timeout(60) public void test_100() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments/update -> Response status 400 not defined for path '/api/assignments/update'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"AK\", " + - " \"commitMgrDesc\": \"AK\", " + - " \"employee\": { " + - " \"email\": \"\", " + - " \"employeeId\": 280, " + - " \"firstName\": \"ejtbu_\", " + - " \"hiredate\": \"kut_o965Dz5byr\", " + - " \"job\": \"x\", " + - " \"salary\": 0.5090050256472601 " + - " }, " + - " \"employeeId\": 404, " + - " \"project\": { " + - " \"endDate\": \"\", " + - " \"projectId\": 228, " + - " \"startDate\": \"dd-MM-yyyy\", " + - " \"status\": \"_EM_1087_XYZ_\", " + - " \"title\": \"v5KXF2of1Gw468A\" " + - " }, " + - " \"projectId\": 986 " + + .body(" { " + + " \"commitEmpDesc\": \"AK\", " + + " \"commitMgrDesc\": \"AK\", " + + " \"employee\": { " + + " \"email\": \"\", " + + " \"employeeId\": 280, " + + " \"firstName\": \"ejtbu_\", " + + " \"hiredate\": \"kut_o965Dz5byr\", " + + " \"job\": \"x\", " + + " \"salary\": 0.5090050256472601 " + + " }, " + + " \"employeeId\": 404, " + + " \"project\": { " + + " \"endDate\": \"\", " + + " \"projectId\": 228, " + + " \"startDate\": \"dd-MM-yyyy\", " + + " \"status\": \"_EM_1087_XYZ_\", " + + " \"title\": \"v5KXF2of1Gw468A\" " + + " }, " + + " \"projectId\": 986 " + " } ") .put(baseUrlOfSut + "/app/api/assignments/update") .then() @@ -4909,8 +4909,8 @@ public void test_100() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"kut_o965Dz5byr\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'kut_o965Dz5byr' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"kut_o965Dz5byr\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'kut_o965Dz5byr' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 121] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -4920,32 +4920,32 @@ public void test_100() throws Exception { */ @Test @Timeout(60) public void test_101() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"ShHKh0k6vPvnPdqH\", " + - " \"employee\": { " + - " \"credential\": {}, " + - " \"department\": { " + - " \"location\": {} " + - " }, " + - " \"email\": \"puOlRHrzoy\", " + - " \"hiredate\": \"dd-MM-yyyy\", " + - " \"lastName\": \"MWviXI4zYMuWNf9\", " + - " \"phone\": \"aWtvlRK\" " + - " }, " + - " \"employeeId\": 675 " + + .body(" { " + + " \"commitMgrDesc\": \"ShHKh0k6vPvnPdqH\", " + + " \"employee\": { " + + " \"credential\": {}, " + + " \"department\": { " + + " \"location\": {} " + + " }, " + + " \"email\": \"puOlRHrzoy\", " + + " \"hiredate\": \"dd-MM-yyyy\", " + + " \"lastName\": \"MWviXI4zYMuWNf9\", " + + " \"phone\": \"aWtvlRK\" " + + " }, " + + " \"employeeId\": 675 " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -4955,8 +4955,8 @@ public void test_101() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"dd-MM-yyyy\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'dd-MM-yyyy' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 130] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/locations @@ -4964,23 +4964,23 @@ public void test_101() throws Exception { */ @Test @Timeout(60) public void test_102() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/locations -> Response status 400 not defined for path '/api/locations'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"adr\": \"_EM_867_XYZ_\", " + - " \"locationId\": 2, " + - " \"postalCode\": \"YC7E\" " + + .body(" { " + + " \"adr\": \"_EM_867_XYZ_\", " + + " \"locationId\": 2, " + + " \"postalCode\": \"YC7E\" " + " } ") .put(baseUrlOfSut + "/app/api/locations") .then() @@ -4990,8 +4990,8 @@ public void test_102() throws Exception { .body("'msg'", containsString("Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments/save @@ -4999,26 +4999,26 @@ public void test_102() throws Exception { */ @Test @Timeout(60) public void test_103() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments/save -> Response status 400 not defined for path '/api/departments/save'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"departmentName\": \"743ZkqUW\", " + - " \"location\": { " + - " \"city\": \"sqnDVgM6Hf\", " + - " \"locationId\": 866, " + - " \"postalCode\": \"F6f\" " + - " } " + + .body(" { " + + " \"departmentName\": \"743ZkqUW\", " + + " \"location\": { " + + " \"city\": \"sqnDVgM6Hf\", " + + " \"locationId\": 866, " + + " \"postalCode\": \"F6f\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments/save") .then() @@ -5028,8 +5028,8 @@ public void test_103() throws Exception { .body("'msg'", containsString("could not execute statement; SQL [n/a]; constraint [FK1_DEPT]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/projects @@ -5037,21 +5037,21 @@ public void test_103() throws Exception { */ @Test @Timeout(60) public void test_104() throws Exception { - + final Map cookies_ROLE_MGR = given() .contentType("application/x-www-form-urlencoded") .body("username=soumayahajjem&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/projects -> Response status 400 not defined for path '/api/projects'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_MGR) .contentType("application/json") - .body(" { " + - " \"projectId\": 9 " + + .body(" { " + + " \"projectId\": 9 " + " } ") .post(baseUrlOfSut + "/app/api/projects") .then() @@ -5061,8 +5061,8 @@ public void test_104() throws Exception { .body("'msg'", containsString("Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -5070,22 +5070,22 @@ public void test_104() throws Exception { */ @Test @Timeout(60) public void test_105() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitDate\": \"12-12-202015:10:28\", " + - " \"employee\": { " + - " \"job\": \"_EM_387_XYZ_\", " + - " \"salary\": 0.6035240934929194 " + - " }, " + - " \"employeeId\": 183, " + - " \"project\": { " + - " \"endDate\": \"04-11-2020\", " + - " \"status\": \"f\" " + - " } " + + .body(" { " + + " \"commitDate\": \"12-12-202015:10:28\", " + + " \"employee\": { " + + " \"job\": \"_EM_387_XYZ_\", " + + " \"salary\": 0.6035240934929194 " + + " }, " + + " \"employeeId\": 183, " + + " \"project\": { " + + " \"endDate\": \"04-11-2020\", " + + " \"status\": \"f\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then() @@ -5095,8 +5095,8 @@ public void test_105() throws Exception { .body("'msg'", containsString("org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.employee -> com.pfa.app.model.entity.Employee; nested exception is java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.pfa.app.model.entity.Assignment.employee -> com.pfa.app.model.entity.Employee")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/departments @@ -5104,26 +5104,26 @@ public void test_105() throws Exception { */ @Test @Timeout(60) public void test_106() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/departments -> Response status 400 not defined for path '/api/departments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"departmentId\": 4, " + - " \"departmentName\": \"pTDhLagW2G79mV\", " + - " \"location\": { " + - " \"adr\": \"KskXldkyZ\", " + - " \"postalCode\": \"zrH\" " + - " } " + + .body(" { " + + " \"departmentId\": 4, " + + " \"departmentName\": \"pTDhLagW2G79mV\", " + + " \"location\": { " + + " \"adr\": \"KskXldkyZ\", " + + " \"postalCode\": \"zrH\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/departments") .then() @@ -5133,8 +5133,8 @@ public void test_106() throws Exception { .body("'msg'", containsString("org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.pfa.app.model.entity.Department.location -> com.pfa.app.model.entity.Location; nested exception is java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.pfa.app.model.entity.Department.location -> com.pfa.app.model.entity.Location")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -5142,47 +5142,47 @@ public void test_106() throws Exception { */ @Test @Timeout(60) public void test_107() throws Exception { - + final Map cookies_ROLE_EMP = given() .contentType("application/x-www-form-urlencoded") .body("username=selimhorri&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_EMP) .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"3nYr9XOcbBqJ\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"password\": \"arf8zd_\", " + - " \"role\": \"ZKP8TwWRP4Lsa_w\" " + - " }, " + - " \"department\": { " + - " \"departmentName\": \"gTPQ\", " + - " \"location\": { " + - " \"locationId\": 994 " + - " } " + - " }, " + - " \"email\": \"qCiMPKQSRwE\", " + - " \"firstName\": \"\", " + - " \"hiredate\": \"UERVgHEwCBM9mvR\", " + - " \"job\": \"bSPAId0R\", " + - " \"lastName\": \"IB1x\", " + - " \"phone\": \"vV8y\" " + - " }, " + - " \"employeeId\": 957, " + - " \"project\": { " + - " \"endDate\": \"CSOl4tHVcolb\" " + - " }, " + - " \"projectId\": 319 " + + .body(" { " + + " \"commitEmpDesc\": \"3nYr9XOcbBqJ\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"password\": \"arf8zd_\", " + + " \"role\": \"ZKP8TwWRP4Lsa_w\" " + + " }, " + + " \"department\": { " + + " \"departmentName\": \"gTPQ\", " + + " \"location\": { " + + " \"locationId\": 994 " + + " } " + + " }, " + + " \"email\": \"qCiMPKQSRwE\", " + + " \"firstName\": \"\", " + + " \"hiredate\": \"UERVgHEwCBM9mvR\", " + + " \"job\": \"bSPAId0R\", " + + " \"lastName\": \"IB1x\", " + + " \"phone\": \"vV8y\" " + + " }, " + + " \"employeeId\": 957, " + + " \"project\": { " + + " \"endDate\": \"CSOl4tHVcolb\" " + + " }, " + + " \"projectId\": 319 " + " } ") - .post(baseUrlOfSut + "/app/api/assignments?" + - "password=NLwZZDt6D_dppu&" + + .post(baseUrlOfSut + "/app/api/assignments?" + + "password=NLwZZDt6D_dppu&" + "username=FHUP078Y") .then() .statusCode(400) @@ -5191,8 +5191,8 @@ public void test_107() throws Exception { .body("'msg'", containsString("JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String \"UERVgHEwCBM9mvR\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'UERVgHEwCBM9mvR' could not be parsed at index 0; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String \"UERVgHEwCBM9mvR\": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text 'UERVgHEwCBM9mvR' could not be parsed at index 0\n at [Source: (ByteArrayInputStream); line: 1, column: 230] (through reference chain: com.pfa.app.model.entity.Assignment[\"employee\"]->com.pfa.app.model.entity.Employee[\"hiredate\"])")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) PUT:/app/api/assignments @@ -5200,31 +5200,31 @@ public void test_107() throws Exception { */ @Test @Timeout(60) public void test_108() throws Exception { - + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. PUT:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .contentType("application/json") - .body(" { " + - " \"commitEmpDesc\": \"_EM_167_XYZ_\", " + - " \"commitMgrDesc\": \"_EM_168_XYZ_\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"credentialId\": 230, " + - " \"enabled\": true, " + - " \"password\": \"_EM_169_XYZ_\", " + - " \"username\": \"_BZRksp\" " + - " }, " + - " \"employeeId\": 844, " + - " \"lastName\": \"Tlemseni\", " + - " \"salary\": 0.4894450152136409 " + - " }, " + - " \"employeeId\": 14, " + - " \"project\": { " + - " \"projectId\": 560, " + - " \"status\": \"_EM_175_XYZ_\" " + - " }, " + - " \"projectId\": 873 " + + .body(" { " + + " \"commitEmpDesc\": \"_EM_167_XYZ_\", " + + " \"commitMgrDesc\": \"_EM_168_XYZ_\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"credentialId\": 230, " + + " \"enabled\": true, " + + " \"password\": \"_EM_169_XYZ_\", " + + " \"username\": \"_BZRksp\" " + + " }, " + + " \"employeeId\": 844, " + + " \"lastName\": \"Tlemseni\", " + + " \"salary\": 0.4894450152136409 " + + " }, " + + " \"employeeId\": 14, " + + " \"project\": { " + + " \"projectId\": 560, " + + " \"status\": \"_EM_175_XYZ_\" " + + " }, " + + " \"projectId\": 873 " + " } ") .put(baseUrlOfSut + "/app/api/assignments") .then() @@ -5234,8 +5234,8 @@ public void test_108() throws Exception { .body("'msg'", containsString("Unable to find com.pfa.app.model.entity.Employee with id 844; nested exception is javax.persistence.EntityNotFoundException: Unable to find com.pfa.app.model.entity.Employee with id 844")) .body("'status'", containsString("BAD_REQUEST")); } - - + + /** * Calls: * (400) POST:/app/api/assignments @@ -5243,34 +5243,34 @@ public void test_108() throws Exception { */ @Test @Timeout(60) public void test_109() throws Exception { - + final Map cookies_ROLE_ADMIN = given() .contentType("application/x-www-form-urlencoded") .body("username=admin&password=test") .post(baseUrlOfSut + "/app/login") .then().extract().cookies(); - - + + // Fault200. Received A Response From API That Is Not Valid According To Its Schema. POST:/app/api/assignments -> Response status 400 not defined for path '/api/assignments'. given().accept("*/*") .header("x-EMextraHeader123", "") .cookies(cookies_ROLE_ADMIN) .contentType("application/json") - .body(" { " + - " \"commitMgrDesc\": \"h6c2gObl\", " + - " \"employee\": { " + - " \"credential\": { " + - " \"credentialId\": 837, " + - " \"password\": \"fmr2j\" " + - " }, " + - " \"department\": { " + - " \"departmentId\": 604, " + - " \"departmentName\": \"_EM_532_XYZ_\" " + - " }, " + - " \"hiredate\": \"01-01-2559\", " + - " \"job\": \"_EM_536_XYZ_\", " + - " \"phone\": \"22125144\" " + - " } " + + .body(" { " + + " \"commitMgrDesc\": \"h6c2gObl\", " + + " \"employee\": { " + + " \"credential\": { " + + " \"credentialId\": 837, " + + " \"password\": \"fmr2j\" " + + " }, " + + " \"department\": { " + + " \"departmentId\": 604, " + + " \"departmentName\": \"_EM_532_XYZ_\" " + + " }, " + + " \"hiredate\": \"01-01-2559\", " + + " \"job\": \"_EM_536_XYZ_\", " + + " \"phone\": \"22125144\" " + + " } " + " } ") .post(baseUrlOfSut + "/app/api/assignments") .then()