From f5c539f8baacbffa77989e6e7e1a0a2f522bb5f3 Mon Sep 17 00:00:00 2001 From: Dassi orleando Date: Sat, 23 Sep 2017 07:22:07 +0100 Subject: [PATCH] BAEL-1107: formating and version (#2660) * Different types of bean injection in Spring * Difference between two dates in java * Update README.md * Simple clean of difference between dates * Clean my test article * Improve dates diff: for dates and datetimes * Move difference between dates from core-java to libraries * BAEL-890 - Kotlin-Allopen with Spring example * BAEL-1107 - Introduction to Apache Cayenne Orm * BAEL-1107: update formating and version of libs --- apache-cayenne/pom.xml | 2 +- .../apachecayenne/CayenneOperationTests.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apache-cayenne/pom.xml b/apache-cayenne/pom.xml index 23837d7019..52631e8594 100644 --- a/apache-cayenne/pom.xml +++ b/apache-cayenne/pom.xml @@ -20,7 +20,7 @@ UTF-8 UTF-8 1.8 - 5.1.31 + 5.1.44 4.0.M5 4.12 diff --git a/apache-cayenne/src/test/java/com/baeldung/apachecayenne/CayenneOperationTests.java b/apache-cayenne/src/test/java/com/baeldung/apachecayenne/CayenneOperationTests.java index da9667b029..b92096c0fa 100644 --- a/apache-cayenne/src/test/java/com/baeldung/apachecayenne/CayenneOperationTests.java +++ b/apache-cayenne/src/test/java/com/baeldung/apachecayenne/CayenneOperationTests.java @@ -20,7 +20,7 @@ public class CayenneOperationTests { private static ObjectContext context = null; @BeforeClass - public static void setupTheCayenneContext(){ + public static void setupTheCayenneContext() { ServerRuntime cayenneRuntime = ServerRuntime.builder() .addConfig("cayenne-project.xml") .build(); @@ -28,7 +28,7 @@ public class CayenneOperationTests { } @After - public void deleteAllRecords(){ + public void deleteAllRecords() { SQLTemplate deleteArticles = new SQLTemplate(Article.class, "delete from article"); SQLTemplate deleteAuthors = new SQLTemplate(Author.class, "delete from author"); @@ -37,7 +37,7 @@ public class CayenneOperationTests { } @Test - public void givenAuthor_whenInsert_thenWeGetOneRecordInTheDatabase(){ + public void givenAuthor_whenInsert_thenWeGetOneRecordInTheDatabase() { Author author = context.newObject(Author.class); author.setFirstname("Paul"); author.setLastname("Smith"); @@ -49,7 +49,7 @@ public class CayenneOperationTests { } @Test - public void givenAuthor_whenInsert_andQueryByFirstName_thenWeGetTheAuthor(){ + public void givenAuthor_whenInsert_andQueryByFirstName_thenWeGetTheAuthor() { Author author = context.newObject(Author.class); author.setFirstname("Paul"); author.setLastname("Smith"); @@ -65,7 +65,7 @@ public class CayenneOperationTests { } @Test - public void givenTwoAuthor_whenInsert_andQueryAll_thenWeGetTwoAuthors(){ + public void givenTwoAuthor_whenInsert_andQueryAll_thenWeGetTwoAuthors() { Author firstAuthor = context.newObject(Author.class); firstAuthor.setFirstname("Paul"); firstAuthor.setLastname("Smith"); @@ -81,7 +81,7 @@ public class CayenneOperationTests { } @Test - public void givenAuthor_whenUpdating_thenWeGetAnUpatedeAuthor(){ + public void givenAuthor_whenUpdating_thenWeGetAnUpatedeAuthor() { Author author = context.newObject(Author.class); author.setFirstname("Paul"); author.setLastname("Smith"); @@ -98,7 +98,7 @@ public class CayenneOperationTests { } @Test - public void givenAuthor_whenDeleting_thenWeLostHisDetails(){ + public void givenAuthor_whenDeleting_thenWeLostHisDetails() { Author author = context.newObject(Author.class); author.setFirstname("Paul"); author.setLastname("Smith"); @@ -117,7 +117,7 @@ public class CayenneOperationTests { } @Test - public void givenAuthor_whenAttachingToArticle_thenTheRelationIsMade(){ + public void givenAuthor_whenAttachingToArticle_thenTheRelationIsMade() { Author author = context.newObject(Author.class); author.setFirstname("Paul"); author.setLastname("Smith");