Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.

This commit is contained in:
Ilkka Seppala
2015-12-25 23:49:28 +02:00
parent 9fbb085985
commit cec9a99410
167 changed files with 1242 additions and 969 deletions
@@ -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