Skip to content

Commit

Permalink
Finished an entity model validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Moore authored and Dave Moore committed Jun 11, 2024
1 parent f11eaa0 commit 5b2e14b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/io/zentity/model/entity/ModelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public void testValid() throws Exception {
Assert.assertEquals(0.5, model.attributes().get("attribute_array").score(), 0.0);
Assert.assertEquals("string", model.attributes().get("attribute_object").type());
Assert.assertEquals(0.5, model.attributes().get("attribute_object").score(), 0.0);
//Assert.assertTrue(model.resolvers().get("resolver_name_a").attributes().contains("string"));
//Assert.assertTrue(model.resolvers().get("resolver_name_b").attributes().contains("string"));
//Assert.assertTrue(model.resolvers().get("resolver_name_c").attributes().contains("string"));
Assert.assertTrue(model.resolvers().get("resolver_name_a").attributes().contains("attribute_a"));
Assert.assertTrue(model.resolvers().get("resolver_name_b").attributes().contains("attribute_a"));
Assert.assertTrue(model.resolvers().get("resolver_name_c").attributes().contains("attribute_a"));
Assert.assertEquals("{\"match\":{\"{{ field }}\":\"{{ value }}\"}}", model.matchers().get("matcher_name").clause());
Assert.assertEquals("foo", model.indices().get("index_name_a").fields().get("index_field_name").attribute());
Assert.assertEquals("bar", model.indices().get("index_name_a").fields().get("index_field_name").matcher());
Expand Down

0 comments on commit 5b2e14b

Please sign in to comment.