Class RegistrableGenerator<T>

java.lang.Object
mocka.generator.AbstractGenerator<T>
mocka.generator.registrable.RegistrableGenerator<T>
All Implemented Interfaces:
Generator<T>

public class RegistrableGenerator<T> extends AbstractGenerator<T>
A Generator that is registered in the DataRegistry. Each instance holds a file path and provides random access to the file’s data through the get method, returning values from it.
  • Constructor Details

    • RegistrableGenerator

      public RegistrableGenerator(String key, String resourcePath, Class<T> type)
  • Method Details

    • get

      public T get()
    • getPath

      public String getPath()