Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-15149: messages expected in tests fixed

Alessandro Benedetti0671ef5e5ffc
diff --git a/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestLinearModel.java b/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestLinearModel.java
index 91e033b9a70..df03896859f 100644
--- a/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestLinearModel.java
+++ b/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestLinearModel.java
@@ -232,7 +232,7 @@ public class TestLinearModel extends TestRerankBase {
@Test
public void notExistentStore_shouldThrowMeaningFulException(){
final ModelException expectedException =
- new ModelException("Feature Store not found: not_existent_store");
+ new ModelException("Missing or empty feature store: not_existent_store");
ModelException ex = expectThrows(ModelException.class, () -> {
createModelFromFiles("linear-model_notExistentStore.json",
@@ -244,7 +244,7 @@ public class TestLinearModel extends TestRerankBase {
@Test
public void notExistentFeature_shouldThrowMeaningFulException(){
final ModelException expectedException =
- new ModelException("Feature:notExist1 not found in store: test");
+ new ModelException("Feature: notExist1 not found in store: test");
ModelException ex = expectThrows(ModelException.class, () -> {
createModelFromFiles("linear-model_notExistentFeature.json",
diff --git a/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestMultipleAdditiveTreesModel.java b/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestMultipleAdditiveTreesModel.java
index 1cf2798842a..4ae25df2e06 100644
--- a/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestMultipleAdditiveTreesModel.java
+++ b/solr/contrib/ltr/src/test/org/apache/solr/ltr/model/TestMultipleAdditiveTreesModel.java
@@ -229,7 +229,7 @@ public class TestMultipleAdditiveTreesModel extends TestRerankBase {
@Test
public void multipleAdditiveTreesTestMissingFeatureStore(){
final ModelException expectedException =
- new ModelException("Feature Store not found: not_existent_store");
+ new ModelException("Missing or empty feature store: not_existent_store");
ModelException ex = expectThrows(ModelException.class, () -> {
createModelFromFiles("multipleadditivetreesmodel_notExistentStore.json",
@@ -241,7 +241,7 @@ public class TestMultipleAdditiveTreesModel extends TestRerankBase {
@Test
public void multipleAdditiveTreesTestUnknownFeature(){
final ModelException expectedException =
- new ModelException("Feature:notExist1 not found in store: _DEFAULT_");
+ new ModelException("Feature: notExist1 not found in store: _DEFAULT_");
ModelException ex = expectThrows(ModelException.class, () -> {
createModelFromFiles("multipleadditivetreesmodel_unknownFeature.json",