CurrentMavenVersion { public boolean hasBuiltInColor() { return isGreaterThanOrEqualTo("3.5.0-SNAPSHOT"); } CurrentMavenVersion();   CurrentMavenVersion(String buildConfigLocation); static CurrentMavenVersion read(); boolean isGreaterThanOrEqualTo(String version); boolean hasBuiltInColor();  }
@Test public void return_true_when_current_version_has_color() { CurrentMavenVersion version = new CurrentMavenVersion("/version/3.5.0.properties"); assertThat(version.hasBuiltInColor()).isTrue(); }
@Test public void return_true_when_current_version_has_no_color() { CurrentMavenVersion version = new CurrentMavenVersion("/version/3.3.9.properties"); assertThat(version.hasBuiltInColor()).isFalse(); }