core/src/test/java/org/elasticsearch/VersionTests.java
public void testLuceneVersionIsSameOnMinorRelease() {
        for (Version version : VersionUtils.allVersions()) {
            for (Version other : VersionUtils.allVersions()) {
                if (other.onOrAfter(version)) {
                    assertTrue("lucene versions must be "  + other + " >= " + version,
                        other.luceneVersion.onOrAfter(version.luceneVersion));
                }
                if (other.isAlpha() == false && version.isAlpha() == false
                        && other.major == version.major && other.minor == version.minor) {
                    assertEquals(other.luceneVersion.major, version.luceneVersion.major);
                    assertEquals(other.luceneVersion.minor, version.luceneVersion.minor);
                    // should we also assert the lucene bugfix version?
                }
            }
        }
    }
// this test ensures we never bump the lucene version in a bugfix release
this test ensures we never bump the lucene version in a bugfix release
this test ensures we never bump the lucene version in a bugfix release
public void testLuceneVersionIsSameOnMinorRelease() {
        for (Version version : VersionUtils.allVersions()) {
            for (Version other : VersionUtils.allVersions()) {
                if (other.onOrAfter(version)) {
                    assertTrue("lucene versions must be "  + other + " >= " + version,
                        other.luceneVersion.onOrAfter(version.luceneVersion));
                }
                if (other.isAlpha() == false && version.isAlpha() == false
                        && other.major == version.major && other.minor == version.minor) {
                    assertEquals(other.luceneVersion.major, version.luceneVersion.major);
                    assertEquals(other.luceneVersion.minor, version.luceneVersion.minor);
                }
            }
        }
    }
public void testLuceneVersionIsSameOnMinorRelease ( ) { for ( Version version : VersionUtils . allVersions ( ) ) { for ( Version other : VersionUtils . allVersions ( ) ) { if ( other . onOrAfter ( version ) ) { assertTrue ( "lucene versions must be " + other + " >= " + version , other . luceneVersion . onOrAfter ( version . luceneVersion ) ) ; } if ( other . isAlpha ( ) == false && version . isAlpha ( ) == false && other . major == version . major && other . minor == version . minor ) { assertEquals ( other . luceneVersion . major , version . luceneVersion . major ) ; assertEquals ( other . luceneVersion . minor , version . luceneVersion . minor ) ; } } } }
this test ensures we never bump the lucene version in a bugfix release
this test ensures we never bump the lucene version in a bugfix release
// should we also assert the lucene bugfix version?