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,
verschachtelt,
3%263+AG
""");
""".trim());
}
}

View File

@ -77,7 +77,7 @@ public class CreatePartner extends UseCase<CreatePartner> {
protected void verify() {
verify(
"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)
);
}

View File

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