diff options
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionValidationTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionValidationTestCase.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionValidationTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionValidationTestCase.java index 66e773cf3f8..a66a4cd8648 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionValidationTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionValidationTestCase.java @@ -11,7 +11,7 @@ import static org.junit.Assert.fail; /** * @author bratseth */ -public class RankingExpressionValidationTestCase extends SchemaTestCase { +public class RankingExpressionValidationTestCase extends AbstractSchemaTestCase { @Test public void testInvalidExpressionProducesException() throws ParseException { @@ -22,8 +22,8 @@ public class RankingExpressionValidationTestCase extends SchemaTestCase { private void assertFailsExpression(String expression) throws ParseException { try { RankProfileRegistry registry = new RankProfileRegistry(); - Search search = importWithExpression(expression, registry); - new DerivedConfiguration(search, registry); // cause rank profile parsing + Schema schema = importWithExpression(expression, registry); + new DerivedConfiguration(schema, registry); // cause rank profile parsing fail("No exception on incorrect ranking expression " + expression); } catch (IllegalArgumentException e) { // Success @@ -31,7 +31,7 @@ public class RankingExpressionValidationTestCase extends SchemaTestCase { } } - private Search importWithExpression(String expression, RankProfileRegistry registry) throws ParseException { + private Schema importWithExpression(String expression, RankProfileRegistry registry) throws ParseException { SearchBuilder builder = new SearchBuilder(registry); builder.importString("search test {" + " document test { " + |