From 41652eb273eaa7ea7fbb3de18abdaa55fe5a3ca8 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Sat, 25 Aug 2018 12:17:14 +0200 Subject: Test global rank profiles --- .../java/com/yahoo/searchdefinition/RankProfileRegistryTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/RankProfileRegistryTest.java') 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) -- cgit v1.2.3