Making unit test future proof by using old version, in case versions change

This commit is contained in:
Alexander Reelsen 2013-10-28 18:46:35 +01:00
parent ec0880df45
commit b1b52b641d
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ public class PreBuiltAnalyzerTests extends ElasticsearchTestCase {
@Test
public void testThatInstancesWithSameLuceneVersionAreReused() {
// both are lucene 4.4 and should return the same instance
assertThat(PreBuiltAnalyzers.CATALAN.getAnalyzer(Version.V_0_90_5),
is(PreBuiltAnalyzers.CATALAN.getAnalyzer(Version.V_0_90_6)));
assertThat(PreBuiltAnalyzers.CATALAN.getAnalyzer(Version.V_0_90_4),
is(PreBuiltAnalyzers.CATALAN.getAnalyzer(Version.V_0_90_5)));
}
@Test