Skip to content

Commit

Permalink
fix TestMapSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieTask committed Jan 29, 2024
1 parent c2c1994 commit 408742d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/test/java/hexlet/code/TestMapSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void beforeEach() {
@Test
public void beforeRequiredTest() {
assertTrue(schema.isValid(null));
assertTrue(schema.isValid(new HashMap()));
assertTrue(schema.isValid(new HashMap<>()));
assertTrue(schema.isValid(""));
assertTrue(schema.isValid(1));
}
Expand All @@ -46,7 +46,7 @@ public void requiredIsValidTest() {
@Test
public void firstRequiredMethodsChainTest() {
schema.required();
assertTrue(schema.isValid(new HashMap()));
assertTrue(schema.isValid(new HashMap<>()));
Map<String, String> data = new HashMap<>();
data.put("key1", "value1");
assertTrue(schema.isValid(data));
Expand Down

0 comments on commit 408742d

Please sign in to comment.