@Test public void testDeprecatedVersions() throws Exception { SoftAssertions.assertSoftly(softly -> { softly.assertThat(new PythonVersion(2, 6, 6).isDeprecated()).isTrue(); softly.assertThat(new PythonVersion(3, 2, 1).isDeprecated()).isTrue(); softly.assertThat(new PythonVersion(3, 3, 1).isDeprecated()).isTrue(); }); }
public boolean isDeprecated() { return major == 2 && minor < 7 || major == 3 && minor < 4; }
PythonVersion { public boolean isDeprecated() { return major == 2 && minor < 7 || major == 3 && minor < 4; } }
PythonVersion { public boolean isDeprecated() { return major == 2 && minor < 7 || major == 3 && minor < 4; } PythonVersion(final int major, final int minor, final int micro); }
PythonVersion { public boolean isDeprecated() { return major == 2 && minor < 7 || major == 3 && minor < 4; } PythonVersion(final int major, final int minor, final int micro); static PythonVersion from(final String version); boolean isDeprecated(); String asString(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); }
PythonVersion { public boolean isDeprecated() { return major == 2 && minor < 7 || major == 3 && minor < 4; } PythonVersion(final int major, final int minor, final int micro); static PythonVersion from(final String version); boolean isDeprecated(); String asString(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }