|
|
@ -8,8 +8,9 @@ import net.hostsharing.hsadminng.hs.office.scenarios.contact.ReplaceContactData;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.CreateExternalDebitorForPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.CreateExternalDebitorForPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.CreateSelfDebitorForPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.CreateSelfDebitorForPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.CreateSepaMandateForDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.CreateSepaMandateForDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.FinallyDeleteSepaMandateForDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.DeleteDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.DontDeleteDefaultDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.DontDeleteDefaultDebitor;
|
|
|
|
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.FinallyDeleteSepaMandateForDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.InvalidateSepaMandateForDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.InvalidateSepaMandateForDebitor;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.CancelMembership;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.CancelMembership;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.CreateMembership;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.CreateMembership;
|
|
|
@ -20,10 +21,9 @@ import net.hostsharing.hsadminng.hs.office.scenarios.membership.coopshares.Creat
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.coopshares.CreateCoopSharesRevertTransaction;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.coopshares.CreateCoopSharesRevertTransaction;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.coopshares.CreateCoopSharesSubscriptionTransaction;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.membership.coopshares.CreateCoopSharesSubscriptionTransaction;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.AddOperationsContactToPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.AddOperationsContactToPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.CreatePartner;
|
|
|
|
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.debitor.DeleteDebitor;
|
|
|
|
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.DeletePartner;
|
|
|
|
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.AddRepresentativeToPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.AddRepresentativeToPartner;
|
|
|
|
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.CreatePartner;
|
|
|
|
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.partner.DeletePartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.person.ShouldUpdatePersonData;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.person.ShouldUpdatePersonData;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.subscription.RemoveOperationsContactFromPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.subscription.RemoveOperationsContactFromPartner;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.subscription.SubscribeToMailinglist;
|
|
|
|
import net.hostsharing.hsadminng.hs.office.scenarios.subscription.SubscribeToMailinglist;
|
|
|
@ -55,7 +55,7 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Order(1010)
|
|
|
|
@Order(1010)
|
|
|
|
@Produces(explicitly = "Partner: P-31010 - Test AG", implicitly = {"Person: Test AG", "Contact: Test AG - Hamburg"})
|
|
|
|
@Produces(explicitly = "Partner: P-31010 - Test AG", implicitly = { "Person: Test AG", "Contact: Test AG - Hamburg" })
|
|
|
|
void shouldCreateLegalPersonAsPartner() {
|
|
|
|
void shouldCreateLegalPersonAsPartner() {
|
|
|
|
new CreatePartner(this)
|
|
|
|
new CreatePartner(this)
|
|
|
|
.given("partnerNumber", "P-31010")
|
|
|
|
.given("partnerNumber", "P-31010")
|
|
|
@ -77,7 +77,8 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Order(1011)
|
|
|
|
@Order(1011)
|
|
|
|
@Produces(explicitly = "Partner: P-31011 - Michelle Matthieu", implicitly = {"Person: Michelle Matthieu", "Contact: Michelle Matthieu"})
|
|
|
|
@Produces(explicitly = "Partner: P-31011 - Michelle Matthieu", implicitly = { "Person: Michelle Matthieu",
|
|
|
|
|
|
|
|
"Contact: Michelle Matthieu" })
|
|
|
|
void shouldCreateNaturalPersonAsPartner() {
|
|
|
|
void shouldCreateNaturalPersonAsPartner() {
|
|
|
|
new CreatePartner(this)
|
|
|
|
new CreatePartner(this)
|
|
|
|
.given("partnerNumber", "P-31011")
|
|
|
|
.given("partnerNumber", "P-31011")
|
|
|
@ -200,7 +201,7 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
"province": "Guangdong Province",
|
|
|
|
"province": "Guangdong Province",
|
|
|
|
"country": "China"
|
|
|
|
"country": "China"
|
|
|
|
""")
|
|
|
|
""")
|
|
|
|
.given("newOfficePhoneNumber", "++15 999 654321" )
|
|
|
|
.given("newOfficePhoneNumber", "++15 999 654321")
|
|
|
|
.given("newEmailAddress", "norden@test-ag.example.org")
|
|
|
|
.given("newEmailAddress", "norden@test-ag.example.org")
|
|
|
|
.doRun();
|
|
|
|
.doRun();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -218,9 +219,9 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Order(2010)
|
|
|
|
@Order(2010)
|
|
|
|
@Requires("Partner: P-31010 - Test AG")
|
|
|
|
@Requires("Partner: P-31010 - Test AG")
|
|
|
|
@Produces("Debitor: Test AG - main debitor")
|
|
|
|
@Produces("Debitor: D-3101000 - Test AG - main debitor")
|
|
|
|
void shouldCreateSelfDebitorForPartner() {
|
|
|
|
void shouldCreateSelfDebitorForPartner() {
|
|
|
|
new CreateSelfDebitorForPartner(this, "Debitor: Test AG - main debitor")
|
|
|
|
new CreateSelfDebitorForPartner(this)
|
|
|
|
.given("partnerPersonTradeName", "Test AG")
|
|
|
|
.given("partnerPersonTradeName", "Test AG")
|
|
|
|
.given("billingContactCaption", "Test AG - billing department")
|
|
|
|
.given("billingContactCaption", "Test AG - billing department")
|
|
|
|
.given("billingContactEmailAddress", "billing@test-ag.example.org")
|
|
|
|
.given("billingContactEmailAddress", "billing@test-ag.example.org")
|
|
|
@ -238,7 +239,7 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Order(2011)
|
|
|
|
@Order(2011)
|
|
|
|
@Requires("Person: Test AG")
|
|
|
|
@Requires("Person: Test AG")
|
|
|
|
@Produces("Debitor: D-3101000 - Test AG - main debitor")
|
|
|
|
@Produces("Debitor: D-3101001 - Test AG - main debitor")
|
|
|
|
void shouldCreateExternalDebitorForPartner() {
|
|
|
|
void shouldCreateExternalDebitorForPartner() {
|
|
|
|
new CreateExternalDebitorForPartner(this)
|
|
|
|
new CreateExternalDebitorForPartner(this)
|
|
|
|
.given("partnerPersonTradeName", "Test AG")
|
|
|
|
.given("partnerPersonTradeName", "Test AG")
|
|
|
@ -258,6 +259,7 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
@Order(2020)
|
|
|
|
@Order(2020)
|
|
|
|
@Requires("Person: Test AG")
|
|
|
|
@Requires("Person: Test AG")
|
|
|
|
|
|
|
|
@Produces(explicitly = "Debitor: D-3101000 - Test AG - delete debitor", permanent = false)
|
|
|
|
void shouldDeleteDebitor() {
|
|
|
|
void shouldDeleteDebitor() {
|
|
|
|
new DeleteDebitor(this)
|
|
|
|
new DeleteDebitor(this)
|
|
|
|
.given("partnerNumber", "P-31020")
|
|
|
|
.given("partnerNumber", "P-31020")
|
|
|
@ -378,7 +380,7 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
new CreateCoopAssetsDepositTransaction(this)
|
|
|
|
new CreateCoopAssetsDepositTransaction(this)
|
|
|
|
.given("memberNumber", "M-3101000")
|
|
|
|
.given("memberNumber", "M-3101000")
|
|
|
|
.given("reference", "sign 2024-01-15")
|
|
|
|
.given("reference", "sign 2024-01-15")
|
|
|
|
.given("assetValue", 100*64)
|
|
|
|
.given("assetValue", 100 * 64)
|
|
|
|
.given("comment", "disposal for initial shares")
|
|
|
|
.given("comment", "disposal for initial shares")
|
|
|
|
.given("transactionDate", "2024-01-15")
|
|
|
|
.given("transactionDate", "2024-01-15")
|
|
|
|
.doRun();
|
|
|
|
.doRun();
|
|
|
@ -403,7 +405,7 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|
|
|
new CreateCoopAssetsDisbursalTransaction(this)
|
|
|
|
new CreateCoopAssetsDisbursalTransaction(this)
|
|
|
|
.given("memberNumber", "M-3101000")
|
|
|
|
.given("memberNumber", "M-3101000")
|
|
|
|
.given("reference", "cancel 2024-01-15")
|
|
|
|
.given("reference", "cancel 2024-01-15")
|
|
|
|
.given("valueToDisburse", 8*64)
|
|
|
|
.given("valueToDisburse", 8 * 64)
|
|
|
|
.given("comment", "disbursal according to shares cancellation")
|
|
|
|
.given("comment", "disbursal according to shares cancellation")
|
|
|
|
.given("transactionDate", "2024-02-15")
|
|
|
|
.given("transactionDate", "2024-02-15")
|
|
|
|
.doRun();
|
|
|
|
.doRun();
|
|
|
|