Class TemplateResolverTest

    • Constructor Detail

      • TemplateResolverTest

        public TemplateResolverTest()
    • Method Detail

      • setUpT

        public void setUpT()
                    throws Exception
        This before method is named setUpT() to avoid overwriting the super setUp method that is invoke automatically before this one.
        Throws:
        Exception
      • testResolveDependencies

        public void testResolveDependencies()
                                     throws Exception
        Tests template resolving with dependencies etc. The following test data is build up: Say there is dependency tree: A depends on B and C, B depends on D and E, C depends on F and G Then the returned result is computed depth-first: D, E, B, F, G, C, A
        Throws:
        Exception
      • testResolveDependenciesWithOverrides

        public void testResolveDependenciesWithOverrides()
                                                  throws Exception
        Tests dependencies and overrides. The following test data is build up: Say there is dependency tree: A depends on B and C, B depends on D and E, C depends on F and G Then the B template is overridden by H which depends on I and J. Then the returned result is computed depth-first: I, J, H, F, G, C, A The last test overrides template A with a template K. The resolve should just return K.
        Throws:
        Exception