@Test public void getSemanticVersion_whenEmpty_returnsEmpty() { VersionInformation versionInformation = new VersionInformation(() -> ""); assertThat(versionInformation.getSemanticVersion(), is("")); }
public String getSemanticVersion() { return getVersionDescriptionComponents()[0]; }
VersionInformation { public String getSemanticVersion() { return getVersionDescriptionComponents()[0]; } }
VersionInformation { public String getSemanticVersion() { return getVersionDescriptionComponents()[0]; } VersionInformation(VersionDescriptionProvider versionDescriptionProvider); }
VersionInformation { public String getSemanticVersion() { return getVersionDescriptionComponents()[0]; } VersionInformation(VersionDescriptionProvider versionDescriptionProvider); String getSemanticVersion(); @Nullable Integer getBetaNumber(); @Nullable String getCommitSHA(); @Nullable Integer getCommitCount(); boolean isRelease(); boolean isDirty(); }
VersionInformation { public String getSemanticVersion() { return getVersionDescriptionComponents()[0]; } VersionInformation(VersionDescriptionProvider versionDescriptionProvider); String getSemanticVersion(); @Nullable Integer getBetaNumber(); @Nullable String getCommitSHA(); @Nullable Integer getCommitCount(); boolean isRelease(); boolean isDirty();  }