BuildNumber implements Comparable<BuildNumber> { public boolean isSnapshot() { return myBuildNumber == Integer.MAX_VALUE; } BuildNumber(@NotNull String productCode, int baselineVersion, int buildNumber);  BuildNumber(@NotNull String productCode, int baselineVersion, int buildNumber, @Nullable String attemptInfo); String asString(); String asStringWithoutProductCode(); static BuildNumber fromString(String version); static BuildNumber fromString(String version, @Nullable String name); static BuildNumber fallback(); @Override String toString(); @Override int compareTo(@NotNull BuildNumber o); @NotNull String getProductCode(); int getBaselineVersion(); int getBuildNumber(); @Override boolean equals(Object o); @Override int hashCode(); boolean isSnapshot(); String asStringWithAllDetails();  }
@Test public void isSnapshot() { assertTrue(BuildNumber.fromString("__BUILD_NUMBER__").isSnapshot()); assertTrue(BuildNumber.fromString("IU-90.SNAPSHOT").isSnapshot()); assertTrue(BuildNumber.fromString("IC-90.*").isSnapshot()); assertFalse(BuildNumber.fromString("90.9999999").isSnapshot()); }