core/src/test/java/org/elasticsearch/VersionTests.java
public void testUnknownVersions() {
        assertUnknownVersion(V_20_0_0_UNRELEASED);
        expectThrows(AssertionError.class, () -> assertUnknownVersion(Version.CURRENT));
        assertUnknownVersion(AliasFilter.V_5_1_0); // once we released 5.1.0 and it's added to Version.java we need to remove this constant
        assertUnknownVersion(OsStats.V_5_1_0); // once we released 5.1.0 and it's added to Version.java we need to remove this constant
        assertUnknownVersion(QueryStringQueryBuilder.V_5_1_0_UNRELEASED);
        assertUnknownVersion(SimpleQueryStringBuilder.V_5_1_0_UNRELEASED);
        // once we released 5.0.0 and it's added to Version.java we need to remove this constant
        assertUnknownVersion(Script.V_5_1_0_UNRELEASED);
        // once we released 5.0.0 and it's added to Version.java we need to remove this constant
    }
// see comment in Version.java about this test
see comment in Version.java about this test
see comment in Version . java about this test
public void testUnknownVersions() {
        assertUnknownVersion(V_20_0_0_UNRELEASED);
        expectThrows(AssertionError.class, () -> assertUnknownVersion(Version.CURRENT));
        assertUnknownVersion(AliasFilter.V_5_1_0); 
        assertUnknownVersion(OsStats.V_5_1_0); 
        assertUnknownVersion(QueryStringQueryBuilder.V_5_1_0_UNRELEASED);
        assertUnknownVersion(SimpleQueryStringBuilder.V_5_1_0_UNRELEASED);
        assertUnknownVersion(Script.V_5_1_0_UNRELEASED);
    }
public void testUnknownVersions ( ) { assertUnknownVersion ( V_20_0_0_UNRELEASED ) ; expectThrows ( AssertionError . class , ( ) -> assertUnknownVersion ( Version . CURRENT ) ) ; assertUnknownVersion ( AliasFilter . V_5_1_0 ) ; assertUnknownVersion ( OsStats . V_5_1_0 ) ; assertUnknownVersion ( QueryStringQueryBuilder . V_5_1_0_UNRELEASED ) ; assertUnknownVersion ( SimpleQueryStringBuilder . V_5_1_0_UNRELEASED ) ; assertUnknownVersion ( Script . V_5_1_0_UNRELEASED ) ; }
see comment in Version.java about this test
see comment in Version . java about this test
// once we released 5.1.0 and it's added to Version.java we need to remove this constant // once we released 5.1.0 and it's added to Version.java we need to remove this constant // once we released 5.0.0 and it's added to Version.java we need to remove this constant // once we released 5.0.0 and it's added to Version.java we need to remove this constant