fix failing tests

This commit is contained in:
Michael Hoennig 2024-11-05 09:47:03 +01:00
parent 1a14d2e19e
commit 5255a3f365
3 changed files with 5 additions and 5 deletions

View File

@ -68,6 +68,6 @@ class TemplateResolverUnitTest {
einfach, einfach,
verschachtelt, verschachtelt,
3%263+AG 3%263+AG
"""); """.trim());
} }
} }

View File

@ -77,7 +77,7 @@ public class CreatePartner extends UseCase<CreatePartner> {
protected void verify() { protected void verify() {
verify( verify(
"Verify the New Partner Relation", "Verify the New Partner Relation",
() -> httpGet("/api/hs/office/relations?relationType=PARTNER&personData=" + uriEncoded("%{%{tradeName???}???%{givenName???} %{familyName???}}")) () -> httpGet("/api/hs/office/relations?relationType=PARTNER&contactData=&{contactCaption}")
.expecting(OK).expecting(JSON).expectArrayElements(1) .expecting(OK).expecting(JSON).expectArrayElements(1)
); );
} }

View File

@ -4,6 +4,7 @@ import net.hostsharing.hsadminng.hs.office.scenarios.ScenarioTest;
import net.hostsharing.hsadminng.hs.office.scenarios.UseCase; import net.hostsharing.hsadminng.hs.office.scenarios.UseCase;
import static io.restassured.http.ContentType.JSON; import static io.restassured.http.ContentType.JSON;
import static org.springframework.http.HttpStatus.NOT_FOUND;
import static org.springframework.http.HttpStatus.NO_CONTENT; import static org.springframework.http.HttpStatus.NO_CONTENT;
import static org.springframework.http.HttpStatus.OK; import static org.springframework.http.HttpStatus.OK;
@ -35,9 +36,8 @@ public class RemoveOperationsContactFromPartner extends UseCase<RemoveOperations
protected void verify() { protected void verify() {
verify( verify(
"Verify the New OPERATIONS Relation", "Verify the New OPERATIONS Relation",
() -> httpGet("/api/hs/office/relations?relationType=OPERATIONS&personData=" + uriEncoded( () -> httpGet("/api/hs/office/relations/&{Operations-Contact: %{operationsContactPerson}}")
"%{operationsContactFamilyName}")) .expecting(NOT_FOUND)
.expecting(OK).expecting(JSON).expectArrayElements(0)
); );
} }
} }