CurrentMavenVersion { public boolean isGreaterThanOrEqualTo(String version) { return this.version.compareTo(new ComparableVersion(version)) >= 0; } CurrentMavenVersion();   CurrentMavenVersion(String buildConfigLocation); static CurrentMavenVersion read(); boolean isGreaterThanOrEqualTo(String version); boolean hasBuiltInColor();  }
@Test public void return_true_when_current_version_is_greater() { CurrentMavenVersion version = new CurrentMavenVersion("/version/1.0.properties"); assertThat(version.isGreaterThanOrEqualTo("0.1")).isTrue(); }
@Test public void return_true_when_current_version_is_equal() { CurrentMavenVersion version = new CurrentMavenVersion("/version/1.0.properties"); assertThat(version.isGreaterThanOrEqualTo("1.0")).isTrue(); }
@Test public void return_false_when_current_version_is_lower() { CurrentMavenVersion version = new CurrentMavenVersion("/version/1.0.properties"); assertThat(version.isGreaterThanOrEqualTo("2.0")).isFalse(); }