LogMessageRegex { public static String getRegex() { return REGEX; }  static String getRegex(); static Pattern getPattern();  }
@Test public void regexMatchesLogLine() { assertThat(logLine).matches(getRegex()); }
@Test public void logLevelRegexMatchesLogLevel() { Matcher matcher = Pattern.compile(LOG_LEVEL.getRegex()).matcher(logLevel); assertThat(matcher.matches()).isTrue(); }
@Test public void dateRegexMatchesDate() { Matcher matcher = Pattern.compile(DATE.getRegex()).matcher(date); assertThat(matcher.matches()).isTrue(); }
@Test public void timeRegexMatchesTime() { Matcher matcher = Pattern.compile(TIME.getRegex()).matcher(time); assertThat(matcher.matches()).isTrue(); }
@Test public void timeZoneRegexMatchesTimeZone() { Matcher matcher = Pattern.compile(TIME_ZONE.getRegex()).matcher(timeZone); assertThat(matcher.matches()).isTrue(); }
@Test public void memberNameRegexMatchesMemberName() { Matcher matcher = Pattern.compile(MEMBER_NAME.getRegex()).matcher(memberName); assertThat(matcher.matches()).isTrue(); }
@Test public void threadNameRegexMatchesThreadName() { Matcher matcher = Pattern.compile(THREAD_NAME.getRegex()).matcher(threadName); assertThat(matcher.matches()).isTrue(); }
@Test public void threadIdRegexMatchesThreadId() { Matcher matcher = Pattern.compile(THREAD_ID.getRegex()).matcher(threadId); assertThat(matcher.matches()).isTrue(); }
@Test public void messageRegexMatchesMessage() { Matcher matcher = Pattern.compile(MESSAGE.getRegex()).matcher(message); assertThat(matcher.matches()).isTrue(); }
@Test public void memberNameRegexMatchesMissingMemberName() { Matcher matcher = Pattern.compile(MEMBER_NAME.getRegex()).matcher(""); assertThat(matcher.matches()).isTrue(); }
@Test public void memberNameRegexMatchesMemberNameWithNoSpaces() { Matcher matcher = Pattern.compile(MEMBER_NAME.getRegex()).matcher(""); assertThat(matcher.matches()).isTrue(); }
@Test public void memberNameRegexMatchesMemberNameWithOneSpace() { Matcher matcher = Pattern.compile(MEMBER_NAME.getRegex()).matcher("hello world"); assertThat(matcher.matches()).isTrue(); }
@Test public void memberNameRegexMatchesMemberNameWithMultipleSpaces() { Matcher matcher = Pattern.compile(MEMBER_NAME.getRegex()).matcher("this is a name"); assertThat(matcher.matches()).isTrue(); }