Class SimpleGeneratorWatcher.Context

  • Enclosing class:
    SimpleGeneratorWatcher

    public static class SimpleGeneratorWatcher.Context
    extends net.morimekta.providence.testing.generator.GeneratorContext<SimpleGeneratorWatcher.Context>
    Context for generating messages with information related to each other. Also contains references to basic options affecting the generation like the random generator, and default max collection size.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class net.morimekta.providence.testing.generator.GeneratorContext

        net.morimekta.providence.testing.generator.GeneratorContext.Simple
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.codearte.jfairy.Fairy getFairy()  
      java.util.Locale getLocale()  
      SimpleGeneratorWatcher.Context setFairy​(io.codearte.jfairy.Fairy fairy)  
      SimpleGeneratorWatcher.Context setLocale​(java.util.Locale locale)  
      • Methods inherited from class net.morimekta.providence.testing.generator.GeneratorContext

        clearGeneratedMessages, createPropertyIfAbsent, deepCopy, generatorFor, generatorForDescriptor, getGeneratedMessages, getProperty, getRandom, nextCollectionSize, nextFieldIsPresent, nextMessage, nextMessage, setFillRate, setMaxCollectionSize, setMinCollectionSize, setProperty, setRandom, withGenerator, withMessageGenerator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFairy

        @Nonnull
        public io.codearte.jfairy.Fairy getFairy()
        Returns:
        The current fairy instance.
      • getLocale

        @Nonnull
        public java.util.Locale getLocale()