Mike Beckerle created DAFFODIL-2643:
---------------------------------------

             Summary: unit test needed that shows how to capture and examine 
log for proper logging
                 Key: DAFFODIL-2643
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2643
             Project: Daffodil
          Issue Type: Bug
          Components: Infrastructure, QA
    Affects Versions: 3.2.1
            Reporter: Mike Beckerle


Proper logging should be testable.

We need a unit test that sets up a logger and verifies that a particular 
logging message is present. The purpose of this test is (a) show logging is 
working at all (b) show how to do this so as to insure certain log messages are 
present.

Ideally the TDML language should have a way of specifying expected log output:
{code:java}
<logs>
  <log>string here that must be in log message case insensitive</log>
  <log>another such string</log>
</logs>{code}
And consistent with DAFFODIL-864, which calls for TDML negative errors, 
warnings, validation errors, etc. there should be negative log checking as 
well. 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to