Class LoadModelTaskTests.LoadModelTaskWithSpy

  • All Implemented Interfaces:
    java.lang.Cloneable
    Enclosing class:
    LoadModelTaskTests

    public static class LoadModelTaskTests.LoadModelTaskWithSpy
    extends LoadModelTask
    An extension to LoadModelTask that stubs out the createModel method to return a spy (which can be interrogated by the tests) rather than a real model.
    • Constructor Detail

      • LoadModelTaskWithSpy

        public LoadModelTaskWithSpy()
    • Method Detail

      • createModel

        protected IModel createModel​(java.lang.String type)
                              throws org.apache.tools.ant.BuildException
        Overrides:
        createModel in class LoadModelTask
        Throws:
        org.apache.tools.ant.BuildException