Class BlindTextGenerator

java.lang.Object
de.cuioss.test.generator.domain.BlindTextGenerator
All Implemented Interfaces:
TypedGenerator<String>

public class BlindTextGenerator extends Object implements TypedGenerator<String>
Provides a collection of placeholder texts (blind texts) for testing purposes. These texts are sourced from blindtextgenerator.de and include various styles and languages.

Available text types:

  • German blind texts
  • Lorem ipsum variants
  • Pangrams (sentences containing every letter of the alphabet)
  • Fictional language samples

Example usage:

 var generator = new BlindTextGenerator();
 String text = generator.next(); // Returns one of eight predefined texts
 

The texts vary in length and content, making them suitable for different testing scenarios such as layout testing, text field validation, or content display testing.

Author:
Oliver Wolff
  • Constructor Details

  • Method Details

    • next

      public String next()
      Description copied from interface: TypedGenerator
      Generates the next instance based on the generator's configuration. Implementations must ensure thread-safety.
      Specified by:
      next in interface TypedGenerator<String>
      Returns:
      A newly created instance. May be null if the generator explicitly supports null value generation.