@Test public void assertAtLeast() { ServerVersion.from(0, 0, 0).assertAtLeast(ServerVersion.from(0, 0, 0)); ServerVersion.from(1, 0, 0).assertAtLeast(ServerVersion.from(1, 0, 0)); ServerVersion.from(1, 1, 0).assertAtLeast(ServerVersion.from(1, 0, 0)); ServerVersion.from(1, 1, 0).assertAtLeast(ServerVersion.from(1, 1, 0)); ServerVersion.from(2, 0, 0).assertAtLeast(ServerVersion.from(1, 0, 0)); ServerVersion.from(2, 0, 0).assertAtLeast(ServerVersion.from(1, 1, 0)); ServerVersion.from(2, 0, 0).assertAtLeast(ServerVersion.from(2, 0, 0)); ServerVersion.from(2, 1, 0).assertAtLeast(ServerVersion.from(2, 1, 0)); try { ServerVersion.from(0, 0, 0).assertAtLeast(ServerVersion.from(1, 0, 0)); throw new RuntimeException("failed"); } catch (AssertionError ignored) { } try { ServerVersion.from(1, 0, 0).assertAtLeast(ServerVersion.from(1, 1, 0)); throw new RuntimeException("failed"); } catch (AssertionError ignored) { } try { ServerVersion.from(1, 0, 0).assertAtLeast(ServerVersion.from(2, 0, 0)); throw new RuntimeException("failed"); } catch (AssertionError ignored) { } try { ServerVersion.from(2, 0, 0).assertAtLeast(ServerVersion.from(2, 1, 0)); throw new RuntimeException("failed"); } catch (AssertionError ignored) { } }
public void assertAtLeast(ServerVersion minimum) { assertAtLeast(minimum, null); }
ServerVersion { public void assertAtLeast(ServerVersion minimum) { assertAtLeast(minimum, null); } }
ServerVersion { public void assertAtLeast(ServerVersion minimum) { assertAtLeast(minimum, null); } private  ServerVersion(int major, int minor, int micro); }
ServerVersion { public void assertAtLeast(ServerVersion minimum) { assertAtLeast(minimum, null); } private  ServerVersion(int major, int minor, int micro); static ServerVersion from(int major, int minor, int micro); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); ServerVersionRange upTo(ServerVersion other); ServerVersionRange upToAndIncluding(ServerVersion other); boolean equalTo(ServerVersion that); boolean lessThan(ServerVersion that); boolean lessThanOrEqualTo(ServerVersion that); boolean greaterThan(ServerVersion that); boolean greaterThanOrEqualTo(ServerVersion that); @Deprecated boolean inRange(ServerVersion min, ServerVersion max); boolean inRange(ServerVersionRange range); void assertAtLeast(ServerVersion minimum); void assertAtLeast(ServerVersion minimum, String message); }
ServerVersion { public void assertAtLeast(ServerVersion minimum) { assertAtLeast(minimum, null); } private  ServerVersion(int major, int minor, int micro); static ServerVersion from(int major, int minor, int micro); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); ServerVersionRange upTo(ServerVersion other); ServerVersionRange upToAndIncluding(ServerVersion other); boolean equalTo(ServerVersion that); boolean lessThan(ServerVersion that); boolean lessThanOrEqualTo(ServerVersion that); boolean greaterThan(ServerVersion that); boolean greaterThanOrEqualTo(ServerVersion that); @Deprecated boolean inRange(ServerVersion min, ServerVersion max); boolean inRange(ServerVersionRange range); void assertAtLeast(ServerVersion minimum); void assertAtLeast(ServerVersion minimum, String message); static final ServerVersion VERSION_0_0_0; static final ServerVersion VERSION_1_0_0; static final ServerVersion VERSION_1_1_0; static final ServerVersion VERSION_1_2_0; static final ServerVersion VERSION_1_3_0; static final ServerVersion VERSION_1_4_0; static final ServerVersion VERSION_1_5_0; static final ServerVersion VERSION_1_6_0; static final ServerVersion VERSION_1_7_0; static final ServerVersion VERSION_1_8_0; static final ServerVersion VERSION_2_0_0; static final ServerVersion VERSION_2_1_0; static final ServerVersion VERSION_2_2_0; static final ServerVersion VERSION_3_0_0; static final ServerVersion VERSION_4_0_0; static final ServerVersion VERSION_4_1_0; static final ServerVersion VERSION_4_2_0; static final ServerVersion VERSION_5_0_0; static final ServerVersion VERSION_6_0_0; static final ServerVersion VERSION_7_0_0; static final ServerVersion VERSION_8_0_0; }