From ea2d2c9100212b3325daa86a1f49b1b34cdf1b84 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Tue, 18 Oct 2022 18:53:18 +0200 Subject: [PATCH] add TestHsMembership instance --- .../office/membership/TestHsMembership.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/java/net/hostsharing/hsadminng/hs/office/membership/TestHsMembership.java diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/membership/TestHsMembership.java b/src/test/java/net/hostsharing/hsadminng/hs/office/membership/TestHsMembership.java new file mode 100644 index 00000000..5e26ac81 --- /dev/null +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/membership/TestHsMembership.java @@ -0,0 +1,19 @@ +package net.hostsharing.hsadminng.hs.office.membership; + +import com.vladmihalcea.hibernate.type.range.Range; + +import java.time.LocalDate; +import java.util.UUID; + +import static net.hostsharing.hsadminng.hs.office.partner.TestHsOfficePartner.testPartner; + +public class TestHsMembership { + + public static final HsOfficeMembershipEntity testMembership = + HsOfficeMembershipEntity.builder() + .uuid(UUID.randomUUID()) + .partner(testPartner) + .memberNumber(300001) + .validity(Range.closedInfinite(LocalDate.parse("2020-01-01"))) + .build(); +}