JavaForFun
7 years agoDo not fail if not found integration tests
Gustavo Martin Morcuende [Mon, 23 Jan 2017 08:02:30 +0000 (09:02 +0100)]
Do not fail if not found integration tests

7 years agoUpdate README file
Gustavo Martin Morcuende [Mon, 23 Jan 2017 07:00:48 +0000 (08:00 +0100)]
Update README file

7 years agoJavadoc does not see group and version declared in gradle.properties file :/
Gustavo Martin Morcuende [Mon, 23 Jan 2017 06:56:01 +0000 (07:56 +0100)]
Javadoc does not see group and version declared in gradle.properties file :/

7 years agodocker-compose is not in my PATH
Gustavo Martin Morcuende [Mon, 23 Jan 2017 06:44:17 +0000 (07:44 +0100)]
docker-compose is not in my PATH

7 years agogradle BOM file
Gustavo Martin Morcuende [Mon, 23 Jan 2017 06:38:02 +0000 (07:38 +0100)]
gradle BOM file

7 years agoGradle: maven publish generated pom, dependencies with scope runtime instead of compile
Gustavo Martin Morcuende [Mon, 23 Jan 2017 06:10:22 +0000 (07:10 +0100)]
Gradle: maven publish generated pom, dependencies with scope runtime instead of compile

https://discuss.gradle.org/t/maven-publish-plugin-generated-pom-making-dependency-scope-runtime/7494/13

7 years agoRemoving useless BOM module (by default Gradle does not work with BOM maven files)
Gustavo Martin Morcuende [Sun, 22 Jan 2017 20:30:59 +0000 (21:30 +0100)]
Removing useless BOM module (by default Gradle does not work with BOM maven files)

7 years agoMANIFEST file in WAR
Gustavo Martin Morcuende [Sun, 22 Jan 2017 20:22:14 +0000 (21:22 +0100)]
MANIFEST file in WAR

7 years agoComments in Gradle build files
Gustavo Martin Morcuende [Sun, 22 Jan 2017 19:59:08 +0000 (20:59 +0100)]
Comments in Gradle build files

7 years agoREADME file
Gustavo Martin Morcuende [Sun, 22 Jan 2017 19:38:10 +0000 (20:38 +0100)]
README file

7 years agoPublishin javadoc, sources, jar and war files from gradle
Gustavo Martin Morcuende [Sun, 22 Jan 2017 19:37:05 +0000 (20:37 +0100)]
Publishin javadoc, sources, jar and war files from gradle

7 years agoImproving JAR manifest file
Gustavo Martin Morcuende [Sun, 22 Jan 2017 17:29:26 +0000 (18:29 +0100)]
Improving JAR manifest file

7 years agoMaking nicer settings.gradle file
Gustavo Martin Morcuende [Sun, 22 Jan 2017 17:17:18 +0000 (18:17 +0100)]
Making nicer settings.gradle file

7 years agoDefault start date mysql
Gustavo Martin Morcuende [Sun, 22 Jan 2017 17:16:56 +0000 (18:16 +0100)]
Default start date mysql

7 years agoCreating war file
Gustavo Martin Morcuende [Sun, 22 Jan 2017 17:16:35 +0000 (18:16 +0100)]
Creating war file

7 years agoFixing jacoco reports directory and adding Javadoc plugin
Gustavo Martin Morcuende [Sun, 22 Jan 2017 16:55:03 +0000 (17:55 +0100)]
Fixing jacoco reports directory and adding Javadoc plugin

7 years agogralde multi module, adding spring-jpa-resources module
Gustavo Martin Morcuende [Sun, 22 Jan 2017 15:26:58 +0000 (16:26 +0100)]
gralde multi module, adding spring-jpa-resources module

7 years agoGradle multi module, adding spring-jpa-services module
Gustavo Martin Morcuende [Sun, 22 Jan 2017 14:43:23 +0000 (15:43 +0100)]
Gradle multi module, adding spring-jpa-services module

7 years agoUsing properties for versioning
Gustavo Martin Morcuende [Sat, 21 Jan 2017 17:34:21 +0000 (18:34 +0100)]
Using properties for versioning

7 years agoRenaming integration tests for making them work with SonarQube
Gustavo Martin Morcuende [Sat, 21 Jan 2017 17:33:51 +0000 (18:33 +0100)]
Renaming integration tests for making them work with SonarQube

7 years agoUsing utf8mb4 :)
Gustavo Martin Morcuende [Thu, 19 Jan 2017 13:09:01 +0000 (14:09 +0100)]
Using utf8mb4 :)

It is available since MySQL 5.5.3

http://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html

7 years agoUsing utf8mb4 :)
Gustavo Martin Morcuende [Thu, 19 Jan 2017 10:17:50 +0000 (11:17 +0100)]
Using utf8mb4 :)

It is available since MySQL 5.5.3

http://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html

7 years agoMaking work SonarQube with integration tests in different directory
Gustavo Martin Morcuende [Wed, 18 Jan 2017 21:56:23 +0000 (22:56 +0100)]
Making work SonarQube with integration tests in different directory

7 years agogradle multi project, WIP
Gustavo Martin Morcuende [Wed, 18 Jan 2017 21:44:00 +0000 (22:44 +0100)]
gradle multi project, WIP

7 years agoSonar scanner, properties file for Gradle project
Gustavo Martin Morcuende [Tue, 17 Jan 2017 19:40:36 +0000 (20:40 +0100)]
Sonar scanner, properties file for Gradle project

7 years agoGradle getting ready for multi project configuration
Gustavo Martin Morcuende [Sun, 8 Jan 2017 23:22:07 +0000 (00:22 +0100)]
Gradle getting ready for multi project configuration

7 years agoThought about Exceptions, RxJava and Spring
Gustavo Martin Morcuende [Sun, 1 Jan 2017 16:23:47 +0000 (17:23 +0100)]
Thought about Exceptions, RxJava and Spring

7 years agoMaking work integration tests
Gustavo Martin Morcuende [Sun, 1 Jan 2017 16:01:16 +0000 (17:01 +0100)]
Making work integration tests

7 years agoRequired call to onCompleted()
Gustavo Martin Morcuende [Sun, 1 Jan 2017 13:16:57 +0000 (14:16 +0100)]
Required call to onCompleted()

7 years agoRxJava, Spring REST example
Gustavo Martin Morcuende [Sun, 1 Jan 2017 11:42:14 +0000 (12:42 +0100)]
RxJava, Spring REST example

7 years agoGradle test task in its own file.
Gustavo Martin Morcuende [Fri, 30 Dec 2016 08:53:39 +0000 (09:53 +0100)]
Gradle test task in its own file.

7 years agoJacoco configuration for integration tests.
Gustavo Martin Morcuende [Fri, 30 Dec 2016 08:52:58 +0000 (09:52 +0100)]
Jacoco configuration for integration tests.

7 years agoGradle integTest task depending on default check task
Gustavo Martin Morcuende [Fri, 30 Dec 2016 05:06:53 +0000 (06:06 +0100)]
Gradle integTest task depending on default check task

7 years agoUsing another gradle file for integTest task
Gustavo Martin Morcuende [Thu, 29 Dec 2016 14:17:06 +0000 (15:17 +0100)]
Using another gradle file for integTest task

7 years agoDebugging H2 with TRACE_LEVEL_SYSTEM_OUT=3
Gustavo Martin Morcuende [Thu, 29 Dec 2016 10:10:36 +0000 (11:10 +0100)]
Debugging H2 with TRACE_LEVEL_SYSTEM_OUT=3

7 years agoFlyway, configuration example and thoughts :(
Gustavo Martin Morcuende [Wed, 28 Dec 2016 16:58:55 +0000 (17:58 +0100)]
Flyway, configuration example and thoughts :(

7 years agoUpdate build.gradle
Gustavo Martin Morcuende [Wed, 28 Dec 2016 12:12:20 +0000 (13:12 +0100)]
Update build.gradle

7 years agoHow to debug with H2
Gustavo Martin Morcuende [Wed, 28 Dec 2016 08:48:00 +0000 (09:48 +0100)]
How to debug with H2

7 years agodocker-compose-gradle-plugin requires docker-compose in PATH
Gustavo Martin Morcuende [Wed, 28 Dec 2016 02:23:57 +0000 (03:23 +0100)]
docker-compose-gradle-plugin requires docker-compose in PATH

7 years agoUsing random port from docker-compose-gradle-plugin
Gustavo Martin Morcuende [Wed, 28 Dec 2016 02:23:26 +0000 (03:23 +0100)]
Using random port from docker-compose-gradle-plugin

7 years agoRenaming to spring-configuration-h2-test
Gustavo Martin Morcuende [Wed, 28 Dec 2016 01:45:46 +0000 (02:45 +0100)]
Renaming to spring-configuration-h2-test

7 years agoFixing time zones for WEST
Gustavo Martin Morcuende [Sun, 25 Dec 2016 23:30:02 +0000 (00:30 +0100)]
Fixing time zones for WEST

7 years agoUsing docker-compose-gradle-plugin for integration tests
Gustavo Martin Morcuende [Sun, 25 Dec 2016 23:10:29 +0000 (00:10 +0100)]
Using docker-compose-gradle-plugin for integration tests

7 years agoDDL: fixing timestamp default value and contraints
Gustavo Martin Morcuende [Sun, 25 Dec 2016 22:39:25 +0000 (23:39 +0100)]
DDL: fixing timestamp default value and contraints

7 years agoIntegration test with docker-compose-rule
Gustavo Martin Morcuende [Sun, 25 Dec 2016 21:27:15 +0000 (22:27 +0100)]
Integration test with docker-compose-rule

7 years agoAdRespositoryShould, changing method names
Gustavo Martin Morcuende [Sun, 25 Dec 2016 21:26:43 +0000 (22:26 +0100)]
AdRespositoryShould, changing method names

7 years agoUsing H2 for data base integrationt tests
Gustavo Martin Morcuende [Sun, 25 Dec 2016 18:26:06 +0000 (19:26 +0100)]
Using H2 for data base integrationt tests

7 years agoRight directory for Spring test files
Gustavo Martin Morcuende [Sun, 25 Dec 2016 17:41:58 +0000 (18:41 +0100)]
Right directory for Spring test files

7 years agoUpdate to right dependencies
Gustavo Martin Morcuende [Sun, 25 Dec 2016 16:44:29 +0000 (17:44 +0100)]
Update to right dependencies

7 years agoFixing OneToMany and ManyToOne annotations
Gustavo Martin Morcuende [Sat, 24 Dec 2016 02:15:53 +0000 (03:15 +0100)]
Fixing OneToMany and ManyToOne annotations

Also making work auditory for AdDescription :)

7 years agoIntegration test task
Gustavo Martin Morcuende [Sat, 24 Dec 2016 01:49:39 +0000 (02:49 +0100)]
Integration test task

7 years agoFixing OneToMany and ManyToOne annotations
Gustavo Martin Morcuende [Sat, 24 Dec 2016 00:49:50 +0000 (01:49 +0100)]
Fixing OneToMany and ManyToOne annotations

Also making work auditory for AdDescription :)

7 years agoImproving test
Gustavo Martin Morcuende [Sat, 24 Dec 2016 00:48:59 +0000 (01:48 +0100)]
Improving test

7 years agoChanging name of gradle project
Gustavo Martin Morcuende [Fri, 23 Dec 2016 22:31:48 +0000 (23:31 +0100)]
Changing name of gradle project

7 years agoA few improvements in my unit tests
Gustavo Martin Morcuende [Fri, 23 Dec 2016 20:46:15 +0000 (21:46 +0100)]
A few improvements in my unit tests

7 years agoUsing jacoco
Gustavo Martin Morcuende [Fri, 23 Dec 2016 20:23:00 +0000 (21:23 +0100)]
Using jacoco

7 years agoGiving names to my constraints
Gustavo Martin Morcuende [Fri, 23 Dec 2016 19:56:09 +0000 (20:56 +0100)]
Giving names to my constraints

7 years agospring-jpa-persistence, using gradle
Gustavo Martin Morcuende [Fri, 23 Dec 2016 19:54:45 +0000 (20:54 +0100)]
spring-jpa-persistence, using gradle

7 years agoRxJavaCarControllerIntegrationTest, cleaning up imports
Gustavo Martin Morcuende [Sun, 11 Dec 2016 22:45:15 +0000 (23:45 +0100)]
RxJavaCarControllerIntegrationTest, cleaning up imports

7 years agoRemoving time out from RxJavaAdapter
Gustavo Martin Morcuende [Sun, 11 Dec 2016 22:38:54 +0000 (23:38 +0100)]
Removing time out from RxJavaAdapter

IMHO these kinds of time out should be defined by server adminitrators

7 years agoThoughts about Observable (stream), Single (one element), toList() and Spring
Gustavo Martin Morcuende [Sun, 11 Dec 2016 22:06:55 +0000 (23:06 +0100)]
Thoughts about Observable (stream), Single (one element), toList() and Spring

7 years agoSpring can already work with CompletableFuture
Gustavo Martin Morcuende [Sun, 11 Dec 2016 22:04:57 +0000 (23:04 +0100)]
Spring can already work with CompletableFuture

No need of creating my own adapter :)
See: org.springframework.web.servlet.mvc.method.annotation.DeferredResultMethodReturnValueHandler.CompletionStageAdapter

7 years agoUsing Spring 4.3.4.RELEASE
Gustavo Martin Morcuende [Sun, 11 Dec 2016 22:04:34 +0000 (23:04 +0100)]
Using Spring 4.3.4.RELEASE

7 years agoUsing RxJava 2.0
Gustavo Martin Morcuende [Sun, 11 Dec 2016 21:02:00 +0000 (22:02 +0100)]
Using RxJava 2.0

7 years agoRxJavaCarControllerIntegrationTest
Gustavo Martin Morcuende [Sun, 11 Dec 2016 20:29:47 +0000 (21:29 +0100)]
RxJavaCarControllerIntegrationTest

7 years agoUpdate to RxJava 2.0
Gustavo Martin Morcuende [Sun, 11 Dec 2016 20:17:30 +0000 (21:17 +0100)]
Update to RxJava 2.0

7 years agoUsing RxJava 2.0
Gustavo Martin Morcuende [Sun, 11 Dec 2016 20:16:13 +0000 (21:16 +0100)]
Using RxJava 2.0

7 years agoRemoving useless inner interface from Adapters
Gustavo Martin Morcuende [Sun, 11 Dec 2016 18:08:01 +0000 (19:08 +0100)]
Removing useless inner interface from Adapters

7 years agoFixing CallableCarController
Gustavo Martin Morcuende [Sun, 11 Dec 2016 17:51:57 +0000 (18:51 +0100)]
Fixing CallableCarController

7 years agoCarControllerIntegrationTest
Gustavo Martin Morcuende [Sun, 11 Dec 2016 17:51:39 +0000 (18:51 +0100)]
CarControllerIntegrationTest

7 years agoCompletableFutureCarControllerIntegrationTest
Gustavo Martin Morcuende [Sun, 11 Dec 2016 17:51:02 +0000 (18:51 +0100)]
CompletableFutureCarControllerIntegrationTest

7 years agoDeferredResult, exceptions handler
Gustavo Martin Morcuende [Sat, 10 Dec 2016 03:22:35 +0000 (04:22 +0100)]
DeferredResult, exceptions handler

7 years agoRxJava REST example
Gustavo Martin Morcuende [Sat, 10 Dec 2016 01:37:10 +0000 (02:37 +0100)]
RxJava REST example

7 years agoCreating async services relying on sync ones
Gustavo Martin Morcuende [Sat, 10 Dec 2016 00:44:10 +0000 (01:44 +0100)]
Creating async services relying on sync ones

7 years agoNo repeat yourself :)
Gustavo Martin Morcuende [Fri, 9 Dec 2016 23:50:14 +0000 (00:50 +0100)]
No repeat yourself :)

Adapter for DeferredResult <-> CompletableFuture

7 years agoRxJava, using method reference instead of lambdas
Gustavo Martin Morcuende [Thu, 8 Dec 2016 22:19:15 +0000 (23:19 +0100)]
RxJava, using method reference instead of lambdas

7 years agoPlaying with asynchronous requests in Spring
Gustavo Martin Morcuende [Thu, 8 Dec 2016 20:20:57 +0000 (21:20 +0100)]
Playing with asynchronous requests in Spring

Possibilites:
Callable
Deferrable + CompletableFuture
Deferrable + ListenableFutureAdapter
RxJava

7 years agoMore about working with Promises in Java 8
Gustavo Martin Morcuende [Thu, 8 Dec 2016 17:54:19 +0000 (18:54 +0100)]
More about working with Promises in Java 8

7 years agoNOTICE about parallelism and ForkJoinPool
Gustavo Martin Morcuende [Thu, 8 Dec 2016 00:36:38 +0000 (01:36 +0100)]
NOTICE about parallelism and ForkJoinPool

7 years agoHaving fun with CompletableFuture AKA Promise in Java
Gustavo Martin Morcuende [Thu, 8 Dec 2016 00:25:42 +0000 (01:25 +0100)]
Having fun with CompletableFuture AKA Promise in Java

7 years agoTrying to understand ForkJoinPool
Gustavo Martin Morcuende [Tue, 6 Dec 2016 22:24:56 +0000 (23:24 +0100)]
Trying to understand ForkJoinPool

7 years agoDo not forget Thread.currentThread().interrupt()
Gustavo Martin Morcuende [Tue, 6 Dec 2016 16:12:29 +0000 (17:12 +0100)]
Do not forget Thread.currentThread().interrupt()

Also comments because I already forgot the difference between submit(Runnable) and submit(Callable)

7 years agoFixing coverage in Clock.today()
Gustavo Martin Morcuende [Tue, 6 Dec 2016 15:12:20 +0000 (16:12 +0100)]
Fixing coverage in Clock.today()

Ivan Lorenz solution.

7 years agoMerge branch 'master' of https://github.com/gumartinm/JavaForFun
Gustavo Martin Morcuende [Mon, 5 Dec 2016 21:18:14 +0000 (22:18 +0100)]
Merge branch 'master' of https://github.com/gumartinm/JavaForFun

7 years agoClockGus.format(date) renaming method
Gustavo Martin Morcuende [Mon, 5 Dec 2016 08:48:13 +0000 (09:48 +0100)]
ClockGus.format(date) renaming method

7 years agoClockGus.formatted(date) renaming method
Gustavo Martin Morcuende [Mon, 5 Dec 2016 08:48:13 +0000 (09:48 +0100)]
ClockGus.formatted(date) renaming method

7 years agoMerge branch 'master' of https://github.com/gumartinm/JavaForFun
Gustavo Martin Morcuende [Sun, 4 Dec 2016 22:32:32 +0000 (23:32 +0100)]
Merge branch 'master' of https://github.com/gumartinm/JavaForFun

7 years agoFixing coverage in Clock.today()
Gustavo Martin Morcuende [Sun, 4 Dec 2016 22:09:17 +0000 (23:09 +0100)]
Fixing coverage in Clock.today()

My implementation solves the coverage issue (hopefully it is right)

7 years agoHow to configure IDE Eclipse
Gustavo Martin Morcuende [Sun, 4 Dec 2016 20:36:27 +0000 (21:36 +0100)]
How to configure IDE Eclipse

7 years agoWe end up writing our application based on the acceptance test
Gustavo Martin Morcuende [Sun, 4 Dec 2016 20:35:31 +0000 (21:35 +0100)]
We end up writing our application based on the acceptance test

7 years agoPrintStatementeFeature requires the right values for clock.
Gustavo Martin Morcuende [Sun, 4 Dec 2016 20:30:50 +0000 (21:30 +0100)]
PrintStatementeFeature requires the right values for clock.

7 years agoBIG WARNING: Clock.today() is not under test!!!!
Gustavo Martin Morcuende [Sun, 4 Dec 2016 20:21:43 +0000 (21:21 +0100)]
BIG WARNING: Clock.today() is not under test!!!!

Our tests do not fail even if we return null from there...

7 years agoMaking StatementPrinter and StatementPrinterShould look better
Gustavo Martin Morcuende [Sun, 4 Dec 2016 20:11:59 +0000 (21:11 +0100)]
Making StatementPrinter and StatementPrinterShould look better

7 years agoStatementPrinter, test for print method green
Gustavo Martin Morcuende [Sun, 4 Dec 2016 20:09:46 +0000 (21:09 +0100)]
StatementPrinter, test for print method green

7 years agoStatementPrinterShould is failing for the right reasons.
Gustavo Martin Morcuende [Sun, 4 Dec 2016 19:02:02 +0000 (20:02 +0100)]
StatementPrinterShould is failing for the right reasons.

7 years agoThe acceptance test is failing because we need to implement the print method in State...
Gustavo Martin Morcuende [Sun, 4 Dec 2016 18:49:14 +0000 (19:49 +0100)]
The acceptance test is failing because we need to implement the print method in StatementPrinter.

We always write first a test and then the implementation.
In this case we have to create the test called StatementPrinterShould and from
there we can create the implementation for the print method.

7 years agoClock test is green.
Gustavo Martin Morcuende [Sun, 4 Dec 2016 18:32:51 +0000 (19:32 +0100)]
Clock test is green.

Inline as much code as possible (getting ride of variables)
We isolate and control the randomness in our code.
No using spies, instead, we use private classes in our tests.

7 years agoClock test working but we need to control the random part.
Gustavo Martin Morcuende [Sun, 4 Dec 2016 17:47:15 +0000 (18:47 +0100)]
Clock test working but we need to control the random part.

We need it in order to write tests that will work in any day.

7 years agoRenaming local variables in TransactionRepository
Gustavo Martin Morcuende [Sun, 4 Dec 2016 17:36:34 +0000 (18:36 +0100)]
Renaming local variables in TransactionRepository

7 years agoRemoving duplications from TransactionRepositoryShould
Gustavo Martin Morcuende [Sun, 4 Dec 2016 17:35:51 +0000 (18:35 +0100)]
Removing duplications from TransactionRepositoryShould