Skip to content

logCaptor to hava method that checks existance of a string #179

Description

@nagkumar

When migrating from system.out to logging framework , it is usual to have the code like this

assertFalse(errContent.toString().contains("Multiple (2) .dbc spec files found"),
		    "Should print an error message to System.err");

It would be easy to make such asserts migration easy, with simple method that checks if the .out and .err strings exists in the inmemory version of the log-capter.. do consider to provide such method.

i.e. have method like logCaptor.inErrorHas("abc string") etc..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions