void () { assertClassifiedAs(LogConsolePreferences.DEBUG, "<DEBUG> some debug data"); assertClassifiedAs(LogConsolePreferences.DEBUG, "some debug data"); assertClassifiedAs(LogConsolePreferences.DEBUG, "debugger"); assertClassifiedAs(LogConsolePreferences.ERROR, "2017.02.16 09:00:00 [ERROR] some problem"); assertClassifiedAs(LogConsolePreferences.ERROR, "Thu Feb 16 17:00:00 CET 2017 <error> Throwable at "); assertClassifiedAs(LogConsolePreferences.ERROR, "MESSAGE: we have not seen any errors for long time"); assertClassifiedAs(LogConsolePreferences.WARNING, "09:00:00 WARN: some problem"); assertClassifiedAs(LogConsolePreferences.WARNING, new Date().toString() + " WARNING: another one"); assertClassifiedAs(LogConsolePreferences.WARNING, "WARN: at start of the line"); assertClassifiedAs(LogConsolePreferences.WARNING, "warn"); assertClassifiedAs(LogConsolePreferences.WARNING, "this is the last wArNiNg!"); assertClassifiedAs(LogConsolePreferences.INFO, "09:02:02 INFO: something "); assertClassifiedAs(LogConsolePreferences.INFO, "<info>: and more data"); assertClassifiedAs(LogConsolePreferences.INFO, "we need more information"); }