public static Member createInvalidMemberWithNoNationalNumber() { return Member.MemberBuilder.member() .withAddress("DefaultAdress") .withCity("DefaultCity") .withEmail("DefaultEmail") .withFirstName("Stumpy") .withLastName("Lumpy") .withPostalCode(123123) .withBirthDate(LocalDate.now()) .withPhoneNumber(07673322222) .build(); }
public static Member createMemberWithNoUUID() { return Member.MemberBuilder.member() .withAddress("DefaultAdress") .withCity("DefaultCity") .withEmail("DefaultEmail") .withFirstName("Stumpy") .withLastName("Lumpy") .withNationalNumber(RandomStringUtils.randomNumeric(12)) .withPostalCode(123123) .withBirthDate(LocalDate.now()) .withPhoneNumber(07673322222) .build(); }
public static Member createMember() { LocalDate date = LocalDate.of(2015, 4, 4); return Member.MemberBuilder.member() .withAddress("DefaultAdress") .withCity("DefaultCity") .withEmail("DefaultEmail") .withFirstName("Stumpy") .withLastName("Lumpy") .withNationalNumber(String.valueOf(RandomStringUtils.randomNumeric(12))) .withPostalCode(123123) .withUUID(UUID.randomUUID().toString()) .withBirthDate(date) .withPhoneNumber(07673322222) .build(); }