Class AbstractAntTester

    • Field Detail

      • JUNIT_TEST_NAME

        protected static final String JUNIT_TEST_NAME
        Field JUNIT_TEST_NAME. (value is "junit.test.name")
        See Also:
        Constant Field Values
      • TEMP_FILE_PROP

        protected static final String TEMP_FILE_PROP
        Field TEMP_FILE_PROP. (value is "temp.file")
        See Also:
        Constant Field Values
      • TESTCASES_DIR

        protected static final String TESTCASES_DIR
        Field TESTCASES_DIR. (value is "src/test/resources/testcases/")
        See Also:
        Constant Field Values
      • watchman

        public final org.junit.rules.TestWatcher watchman
        Field watchman.
    • Constructor Detail

      • AbstractAntTester

        public AbstractAntTester()
    • Method Detail

      • assertTempFileMatchExpected

        protected final void assertTempFileMatchExpected​(String reference)
                                                  throws IOException
        Compares the temporary file with a reference file.
        Parameters:
        reference - String
        Throws:
        IOException - if comparator fails
      • assertFullLogContaining

        protected final void assertFullLogContaining​(String substring)
        Method assertFullLogContaining.
        Parameters:
        substring - String
      • expectFullLogContaining

        protected final void expectFullLogContaining​(String target,
                                                     String log)
        Assert that the given message has been logged when running the given target.
        Parameters:
        target - String
        log - String