DefaultTeiidVersion implements TeiidVersion { @Override public TeiidVersion getMinimumVersion() { if (! this.hasWildCards()) return this; String major = getMajor().equals(WILDCARD) ? SEVEN : getMajor(); String minor = getMinor().equals(WILDCARD) ? ZERO : getMinor(); String micro = getMicro().equals(WILDCARD) ? ZERO : getMicro(); return new DefaultTeiidVersion(major, minor, micro); } DefaultTeiidVersion(String major, String minor, String micro);  DefaultTeiidVersion(String versionString); @Override String toString(); @Override String getMajor(); @Override String getMinor(); @Override String getMicro(); @Override boolean hasWildCards(); @Override int hashCode(); @Override boolean equals(Object obj); @Override boolean compareTo(TeiidVersion otherVersion); @Override boolean isSevenInstance(); @Override TeiidVersion getMinimumVersion(); @Override TeiidVersion getMaximumVersion(); @Override boolean isGreaterThan(TeiidVersion otherVersion); @Override boolean isGreaterThan(Version otherVersion); @Override boolean isLessThan(TeiidVersion otherVersion); @Override boolean isLessThan(Version otherVersion); @Override boolean isGreaterThanOrEqualTo(TeiidVersion otherVersion); @Override boolean isGreaterThanOrEqualTo(Version otherVersion); @Override boolean isLessThanOrEqualTo(TeiidVersion otherVersion); @Override boolean isLessThanOrEqualTo(Version otherVersion);  }
@Test public void testGetMinimum() { assertEquals(version("8.0.0"), version("8.0.0").getMinimumVersion()); assertEquals(version("8.0.0"), version("8.x.0").getMinimumVersion()); assertEquals(version("8.0.0"), version("8.0.x").getMinimumVersion()); assertEquals(version("8.0.0"), version("8.x.x").getMinimumVersion()); }