feature/use-case-acceptance-tests-2 #117
@ -68,6 +68,6 @@ class TemplateResolverUnitTest {
|
|||||||
einfach,
|
einfach,
|
||||||
verschachtelt,
|
verschachtelt,
|
||||||
3%263+AG
|
3%263+AG
|
||||||
""");
|
""".trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user