summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-08-25 12:17:14 +0200
committerJon Bratseth <bratseth@oath.com>2018-08-25 12:17:14 +0200
commit41652eb273eaa7ea7fbb3de18abdaa55fe5a3ca8 (patch)
tree9b9d1b71396fbb1f37d0f0ee2f86113c6480d590 /config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java
parent35e957f09c4018c2e1bab70da2e632130b0b43e6 (diff)
Test global rank profiles
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java')
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java b/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java
index 82ebdbb9939..28559f351ac 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java
@@ -9,10 +9,9 @@ import org.junit.Test;
import java.io.File;
-import static org.hamcrest.Matchers.is;
+import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
/**
* @author Ulf Lilleengen
@@ -25,8 +24,8 @@ public class RankProfileRegistryTest {
TestRoot root = new TestDriver().buildModel(FilesApplicationPackage.fromFile(new File(TESTDIR)));
RankProfilesConfig left = root.getConfig(RankProfilesConfig.class, "inherit/search/cluster.inherit/left");
RankProfilesConfig right = root.getConfig(RankProfilesConfig.class, "inherit/search/cluster.inherit/right");
- assertThat(left.rankprofile().size(), is(3));
- assertThat(right.rankprofile().size(), is(2));
+ assertEquals(3, left.rankprofile().size());
+ assertEquals(2, right.rankprofile().size());
}
@Test(expected = IllegalArgumentException.class)