Class SimpleGeneratorWatcher.Context
- java.lang.Object
-
- net.morimekta.providence.testing.generator.GeneratorContext<SimpleGeneratorWatcher.Context>
-
- net.morimekta.providence.testing.junit4.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.
-
-
Constructor Summary
Constructors Constructor Description Context()Context(SimpleGeneratorWatcher.Context copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.codearte.jfairy.FairygetFairy()java.util.LocalegetLocale()SimpleGeneratorWatcher.ContextsetFairy(io.codearte.jfairy.Fairy fairy)SimpleGeneratorWatcher.ContextsetLocale(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
-
-
-
-
Constructor Detail
-
Context
public Context()
-
Context
public Context(SimpleGeneratorWatcher.Context copy)
-
-
Method Detail
-
setFairy
@Nonnull public SimpleGeneratorWatcher.Context setFairy(io.codearte.jfairy.Fairy fairy)
-
setLocale
@Nonnull public SimpleGeneratorWatcher.Context setLocale(@Nonnull java.util.Locale locale)
-
getFairy
@Nonnull public io.codearte.jfairy.Fairy getFairy()
- Returns:
- The current fairy instance.
-
getLocale
@Nonnull public java.util.Locale getLocale()
-
-