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
This commit is contained in:
Dassi orleando 2017-09-23 07:22:07 +01:00 committed by maibin
parent ec6aca9c51
commit f5c539f8ba
2 changed files with 9 additions and 9 deletions

View File

@ -20,7 +20,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<mysql.connector.version>5.1.31</mysql.connector.version>
<mysql.connector.version>5.1.44</mysql.connector.version>
<cayenne.version>4.0.M5</cayenne.version>
<junit.version>4.12</junit.version>
</properties>

View File

@ -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");