@Test public void isUuidShouldNotMatch() { assertThat(matcher.matches("892d2942-4253")).isFalse(); assertThat(matcher.matches("not a uuid")).isFalse(); assertThat(matcher.matches(null)).isFalse(); }
@Override public boolean matches(Object item) { try { UUID.fromString(String.valueOf(item)); } catch (IllegalArgumentException exception) { return false; } return true; }
UuidMatcher extends BaseMatcher<String> { @Override public boolean matches(Object item) { try { UUID.fromString(String.valueOf(item)); } catch (IllegalArgumentException exception) { return false; } return true; } }
UuidMatcher extends BaseMatcher<String> { @Override public boolean matches(Object item) { try { UUID.fromString(String.valueOf(item)); } catch (IllegalArgumentException exception) { return false; } return true; }  }
UuidMatcher extends BaseMatcher<String> { @Override public boolean matches(Object item) { try { UUID.fromString(String.valueOf(item)); } catch (IllegalArgumentException exception) { return false; } return true; }  @Override boolean matches(Object item); @Override void describeTo(Description description); static Matcher<String> isUuid(); }
UuidMatcher extends BaseMatcher<String> { @Override public boolean matches(Object item) { try { UUID.fromString(String.valueOf(item)); } catch (IllegalArgumentException exception) { return false; } return true; }  @Override boolean matches(Object item); @Override void describeTo(Description description); static Matcher<String> isUuid();  }