mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-09 14:17:39 +00:00
Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
This commit is contained in:
@@ -90,8 +90,8 @@ public class AnnotationBasedRepositoryTest {
|
||||
|
||||
assertEquals(3, persons.size());
|
||||
assertTrue(persons.stream().allMatch((item) -> {
|
||||
return item.getAge() > 20 && item.getAge() < 40;
|
||||
}));
|
||||
return item.getAge() > 20 && item.getAge() < 40;
|
||||
}));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.iluwatar.repository;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
@@ -36,8 +37,6 @@ public class AppConfigTest {
|
||||
|
||||
/**
|
||||
* Test for correct query execution
|
||||
*
|
||||
* @throws SQLException
|
||||
*/
|
||||
@Test
|
||||
@Transactional
|
||||
|
||||
@@ -88,8 +88,8 @@ public class RepositoryTest {
|
||||
|
||||
assertEquals(3, persons.size());
|
||||
assertTrue(persons.stream().allMatch((item) -> {
|
||||
return item.getAge() > 20 && item.getAge() < 40;
|
||||
}));
|
||||
return item.getAge() > 20 && item.getAge() < 40;
|
||||
}));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user