Package de.cuioss.test.generator.domain
package de.cuioss.test.generator.domain
Provides domain-specific test data generators implementing
TypedGenerator.
These generators create realistic test data for various business domains, particularly focused on
personal information, location data, and organizational structures.
Generator Categories
Personal Information
PersonGenerator- Complete person objects with configurable attributesFullNameGenerator- Locale-aware name generation (German/English)EmailGenerator- Valid email addresses with realistic patternsPhoneNumberGenerator- German-format phone numbers
Location Data
CityGenerator- Major German city namesStreetGenerator- Complete street addresses with numbersStreetNameGenerator- Common German street namesZipCodeGenerator- Valid German postal codes
Organization and Professional Data
OrganizationNameGenerator- Famous fictional company namesTitleGenerator- Academic and professional titlesDistinguishedNamesGenerator- LDAP DN strings
Content Generation
BlindTextGenerator- Multi-language placeholder textsMailSubjectGenerator- Healthcare-focused email subjects
Technical Identifiers
UUIDGenerator- UUID objectsUUIDStringGenerator- Formatted UUID strings
Usage Patterns
Most generators provide:
- Realistic data for visual/integration testing
- Technical variants for unit testing
- Thread-safe operation
- Deterministic output when seeded
Example usage:
// Create a complete person with realistic data
var person = new PersonGenerator().next();
// Generate a German address
var address = new StreetGenerator().next() + "\n" +
new ZipCodeGenerator().next() + " " +
new CityGenerator().next();
- See Also:
-
ClassDescriptionProvides a collection of placeholder texts (blind texts) for testing purposes.Generates names of major German cities for testing purposes.Generates LDAP Distinguished Names (DN) for testing purposes.Generates syntactically valid email addresses for testing purposes.Generates full names in the format 'firstname lastname' based on the specified locale.Generates realistic email subject lines for testing purposes, particularly focused on healthcare-related communications.Provides a collection of name generators for testing purposes.Provides lists of names for creating name
Generator.Provides generators for organization names, including well-known fictional companies.Immutable value object representing a person with basic identifying information.Generates realisticPersonobjects for testing purposes.Generates random German-style phone numbers for testing purposes.Generates complete German street addresses by combining street names fromStreetNameGeneratorwith random house numbers.Generates typical German street names for test data generation.Provides generators for academic and professional titles.Creates instances of UUIDsGenerates random UUID strings in the standard 8-4-4-4-12 format (e.g. "550e8400-e29b-41d4-a716-446655440000").Generates German postal codes (Postleitzahlen) for test data generation.