Class PactFolderLoader

  • All Implemented Interfaces:
    au.com.dius.pact.provider.junitsupport.loader.PactLoader

    
    public final class PactFolderLoader
     implements PactLoader
                        

    Out-of-the-box implementation of PactLoader that loads pacts from either a subfolder of project resource folder or a directory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String description() Returns a description of this pact loader
      List<Pact> load(String providerName) Load pacts from appropriate source
      DirectorySource getPactSource() Returns the source object that the pacts where loaded from
      • Methods inherited from class au.com.dius.pact.provider.junitsupport.loader.PactLoader

        enablePendingPacts, initLoader, setValueResolver
      • Methods inherited from class java.lang.Object

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

      • PactFolderLoader

        PactFolderLoader(String path, KClass<out ValueResolver> valueResolverClass, ValueResolver valueResolver, ExpressionParser ep)
      • PactFolderLoader

        PactFolderLoader(String path, KClass<out ValueResolver> valueResolverClass, ValueResolver valueResolver)
      • PactFolderLoader

        PactFolderLoader(String path, KClass<out ValueResolver> valueResolverClass)
      • PactFolderLoader

        PactFolderLoader(String path)
      • PactFolderLoader

        PactFolderLoader(PactFolder pactFolder)
      • PactFolderLoader

        PactFolderLoader(File path)
    • Method Detail

      • load

         List<Pact> load(String providerName)

        Load pacts from appropriate source

      • getPactSource

         DirectorySource getPactSource()

        Returns the source object that the pacts where loaded from