Class FormattedLoggerTest

    • Constructor Detail

      • FormattedLoggerTest

        public FormattedLoggerTest()
    • Method Detail

      • setUp

        public void setUp()
      • tearDown

        public void tearDown()
      • shouldLogOnlyPreparedStatementByDefault

        public void shouldLogOnlyPreparedStatementByDefault()
      • shouldLogQueryWithRealParamsIfConfigured

        public void shouldLogQueryWithRealParamsIfConfigured()
      • shouldLogQueryWithRealParamsAndStacktraceIfConfigured

        public void shouldLogQueryWithRealParamsAndStacktraceIfConfigured()
      • shouldLogQueryWithStacktraceIfConfigured

        public void shouldLogQueryWithStacktraceIfConfigured()
      • shouldLogQueryWithSqlParamsIfConfiguredAndInputSqlDoesNotContainStacktrace

        public void shouldLogQueryWithSqlParamsIfConfiguredAndInputSqlDoesNotContainStacktrace()
      • shouldLogQueryWithoutSqlParamsIfNotConfiguredAndInputSqlDoesNotContainStacktrace

        public void shouldLogQueryWithoutSqlParamsIfNotConfiguredAndInputSqlDoesNotContainStacktrace()
      • shouldLogQueryWithoutSqlParamsIfNotConfiguredAndInputSqlDoesNotContainStacktraceButPreparedStatementContainsComment

        public void shouldLogQueryWithoutSqlParamsIfNotConfiguredAndInputSqlDoesNotContainStacktraceButPreparedStatementContainsComment()
      • shouldLogQueryWithoutStacktraceIfStacktraceIsEmpty

        public void shouldLogQueryWithoutStacktraceIfStacktraceIsEmpty()
      • shouldLogQueryWithoutSqlParamsEvenItIsConfiguredIfInputSqlIsNull

        public void shouldLogQueryWithoutSqlParamsEvenItIsConfiguredIfInputSqlIsNull()
      • shouldLogQueryWithoutSqlParamsEvenItIsConfiguredIfInputSqlIsBlank

        public void shouldLogQueryWithoutSqlParamsEvenItIsConfiguredIfInputSqlIsBlank()