Commit Graph

7429 Commits

Author SHA1 Message Date
Marcos 0bf3102188 code cleanup 2018-02-03 19:25:48 +01:00
Marcos ecf1cae3f7 JPA Attribute Converters 2018-02-03 19:01:20 +01:00
Nam Thai Nguyen 53bb927610 Modifies the Data class 2018-02-03 20:21:46 +07:00
Markus Gulden 5a31640528 Updates after editor feedback 2018-02-03 13:30:52 +01:00
Markus Gulden e15f2fc7dd Updates after editor feedback 2018-02-03 13:10:31 +01:00
Markus Gulden b9ac0dc78b Updates after editor feedback 2018-02-03 12:51:59 +01:00
Grzegorz Piwowarek 710c25fb01
Ocheja fix (#3572)
* Define beans for handling different message types in a lean chat app

* Add class based spring beans configuration

* Define spring configuration in XML for constructor based bean injection

* Refactor package structure to separate constructor based bean injection code set from setter based bean injection code set

* Define configuration and classes specific to setter-based bean injection.

* Implement tests for constructor-based and setter-based bean injections

* develop codes for explaining type erasure

* Write unit tests for type erasure examples

* Remove evaluation article code

* Modify type erasure examples and unit tests

* Modify type erasure examples and unit tests

* Add expected exception in TypeErasureUnitTest

* Correct grammar in class name

* Implement File Manager app to demonstrate Polymorphism. Develop unit tests for Polymorphism article code

* Add examples for static polymorphism

* Change sysout statments to slf4j log info statements

* Add assertions and expected errors check on Test

* Add assertions and expected errors check on Test

* Correct compile time error of symbol not found

* Removed commented out non-compiling test.

* Replace string concatenations with String.format

* Replace string concatenations with String.format

* Remove verbose file info descriptor and replace with simpler one

* Add example codes for Hibernate Interceptors article
Write tests for session-scoped and sessionFactory-scoped interceptors

* Implement serializable on customInterceptorImpl

* Implement examples for spring data with spring security integration

* Remove webapp example implementations; too extensive
2018-02-03 12:37:28 +01:00
Grzegorz Piwowarek d2a4e04f37
Merge branch 'master' into BAEL-1267-programmatic-tomcat 2018-02-03 12:37:01 +01:00
Jose Carvajal ff76cbc1fe Bael 113 (#3484)
* BAEL-399: A Guide to Multitenancy in Hibernate 5

* Removed unused properties in profile 2

* Changes after code review

* BAEL-113

* Changes after code review

* Added main method in spring boot application

* Removed extra files
2018-02-02 22:00:27 -06:00
Tom Hombergs 2781e27d1d
Merge pull request #3558 from nguyennamthai/BAEL-1515
Initial commit for BAEL-1515
2018-02-02 21:13:56 +01:00
Tom Hombergs fa906a2b59 removed Car class 2018-02-02 21:01:22 +01:00
Tom Hombergs 7d8a3bf686 Merge branch 'BAEL-1515' of https://github.com/nguyennamthai/tutorials into BAEL-1515 2018-02-02 20:25:36 +01:00
Grzegorz Piwowarek 2169be4301
Async refactor (#3570) 2018-02-02 15:40:03 +01:00
Nam Thai Nguyen c057808c6e Modifies error messages 2018-02-02 11:59:17 +07:00
myluckagain 55660e7702 BAEL-1497 (#3568) 2018-02-01 23:17:53 +01:00
Alessio Stalla 310e31e2bd Code for BAEL-68 (#3559) 2018-02-01 20:30:54 +01:00
tamasradu 72c9fea7e2 Radutamas/bael 1487 (#3569)
* Code for test article: Different Types of Bean Injection in Spring

* Adding jUnits for test article: Different Types of Bean Injection in Spring

* BAEL-1265: Adding jUnit for article

* BAEL-1265: Closing ExecutorService in jUnit

* BAEL-1487: Adding test for AsyncHtpClient tutorial
2018-02-01 14:56:36 +01:00
ramansahasi 15f18bbb83 BAEL 1269 Intro to JSON-JAVA (#3493)
* Final commit

* Made changes as per last review

* Moved from core-java to json module
2018-02-01 10:57:48 +01:00
Nam Thai Nguyen 63b8aa334f Refactor BAEL-1515 2018-02-01 11:00:51 +07:00
ramansahasi 3e4b6df194 Interrupted thread before logging (#3563) 2018-01-31 13:06:16 -08:00
Nam Thai Nguyen 6e23e8f4fd Initial commit for BAEL-1516 2018-02-01 03:16:53 +07:00
Grzegorz Piwowarek 43a4d08c36
Sudoku refactor (#3556)
* BacktrackingAlgorithm refactor

* DancingLinks refactor
2018-01-31 18:50:37 +01:00
Aprian Diaz Novandi bd9a87c137 Simplify unit test logic (#3548) 2018-01-31 15:58:52 +01:00
Nam Thai Nguyen 5f87ceb1ff Relocate custom assertion classes 2018-01-31 18:34:09 +07:00
Nam Thai Nguyen 950434a873 Fix the scope of AssertJ core 2018-01-31 16:46:19 +07:00
Nam Thai Nguyen eb99ad5753 Initial commit for BAEL-1515 2018-01-31 16:32:21 +07:00
mkuligowski a48e062598 BAEL-1204 (#3508)
* Initialize smooks subproject

* Add Smooks dependency

* Delete files form badly created submodule

* Add domain classes

* Create class responsible for converting Orders

* Create class responsible for validating messages

* Add configuration file

* Add integration tests for Smooks converters and validators

* ADd en_US locale and fix date format

* Fix number format in expected messages

* Delete unused mapping

* Remove unused conversion to JSON

* Add assertion for ruleName in givenIncorrectOrderXML_whenValidate_thenExpectValidationErrors
2018-01-30 22:49:54 +01:00
iaforek f6cfff3f9d BAEL-1298 - How to create a Sudoku solver (#3197)
* Code for Dependency Injection Article.

* Added Java based configuration. Downloaded formatter.xml and reformatted
all changed files. Manually changed tab into 4 spaces in XML
configuration files.

* BAEL-434 - Spring Roo project files generated by Spring Roo. No
formatting applied. Added POM, java and resources folders.

* Moved project from roo to spring-roo folder.

* BAEL-838 Initial code showing how to remove last char - helper class and tests.

* BAEL-838 Corrected Helper class and associated empty string test case. Added StringUtils.substing tests.

* BAEL-838 Refromatted code using formatter.xml. Added Assert.assertEquals import. Renamed test to follow convention. Reordered tests.

* BAEL-838 - Added regex method and updated tests.

* BAEL-838 Added new line examples.

* BAEL-838 Renamed RemoveLastChar class to StringHelper and added Java8 examples. Refactord code.

* BAEL-838 Changed method names

* BAEL-838 Tiny change to keep code consistant. Return null or empty.

* BAEL-838 Removed unresolved conflict.

* BAEL-821 New class that shows different rounding techniques. Updated POM.

* BAEL-821 - Added unit test for different round methods.

* BAEL-821 Changed test method name to follow the convention

* BAEL-821 Added more test and updated round methods.

* BAEL-837 - initial commit. A few examples of adding doubles.

* BAEL-837 - Couple of smaller changes

* BAEL-837 - Added jUnit test.

* BAEL-579 Updated Spring Cloud Version

I was getting error: java.lang.NoSuchMethodError:
org.springframework.cloud.config.environment.Environment
After version update, all is okay.

* BAEL-579 Added actuator to Cloud Config Client.

* BAEL-579 Enabled cloud bus and updated dependencies.

* BAEL-579 Config Client using Spring Cloud Bus.

* BAEL-579 Recreated Basic Config Server.

* BAEL-579 Recreated Config Client.

* BAEL-579 Removed test Git URL.

* BAEL-579 Added Actuator to Config Client

* BAEL-579 Added Spring Cloud Bus to Client.

* BAEL-579 Server changes for Spring Cloud Bus

Added dependencies and removed git.clone-on-start as this was causing
server to throw errors after git properties change.

* BAEL-579 Removed Git URL.

* Revert "BAEL-579 Updated Spring Cloud Version"

This reverts commit f775bf91e5.

* Revert "BAEL-579 Config Client using Spring Cloud Bus."

This reverts commit 1d96bc5761.

* Revert "BAEL-579 Enabled cloud bus and updated dependencies."

This reverts commit 7845da922d.

* Revert "BAEL-579 Added actuator to Cloud Config Client."

This reverts commit 076657a26a.

* BAEL-579 Added missing dependency versions.

* BAEL-579 Added missing dependency versions.

* Updated gitignore

* BAEL-1065 Simple performance check StringBuffer vs StringBuilder.

* BAEL-1065 Added JMH benchmarks

* BAEL-1298 Sudoku - Backtracking Algorithm

* BAEL-1298 Sudoku - Backtracking Algorithm

* BAEL-1298 Dancing Links Algorithm. Smaller changes to Backtracking

* BAEL-1298 Resolve conflict - use most up-to-date POM

* Updated code - mostly with CONSTANTS. Extracted methods.

* Removed pointless Java8 code. Renamed constant
2018-01-30 19:13:53 +01:00
Ganesh 32e309ae4d BAEL-1456 - How to implement task prioritization in Java (#3366)
* priority based job execution in java

* minor fixes

* updated to use java 8 features
2018-01-30 15:55:08 +01:00
abialas bdae4fe99b BAEL-21 new Java9 HTTP API overview (#3536)
* BAEL-1412 add java 8 spring data features

* BAEL-21 new HTTP API overview
2018-01-29 18:32:09 -08:00
Tom Hombergs b0191da9f7
Merge pull request #3546 from nguyennamthai/BAEL-1500
Initial commit for BAEL-1500
2018-01-29 22:05:29 +01:00
Nam Thai Nguyen be90e9870c Initial commit for BAEL-1500 2018-01-29 17:02:48 +07:00
Aprian Diaz Novandi d1a4848cb4 BAEL-1464 Guava Memoizer (#3420)
* BAEL-1464 Guava Memoizer

* Update codes based on code review and discussion in JIRA
2018-01-29 09:26:15 +01:00
Carsten Gräf 829c0414fe
Merge pull request #3542 from eugenp/pr/3538
Pr/3538
2018-01-29 08:33:34 +01:00
Carsten Gräf b070f3ddaa fixed formatting 2018-01-29 07:37:17 +01:00
Carsten Gräf cd64578fbf
Merge pull request #3522 from eugenp/reactive-websocket-refactor
Reactive exception handling
2018-01-29 07:15:42 +01:00
Bogdan Stoean f888a3f78a BAEL-1410 - refactor tests (#3525)
* initial setup with spring boot/ spring data jpa/ flyway

* BAEL-1315 - added flyway test extensions for spring

* BAEL-1315 - added flyway test extensions for spring

* BAEL-1315 - created multiple migration scripts and locations

* BAEL-1315 - test insert after schema creation

* cleanup

* BAEL-1315 - test data changes by a migration

* [BAEL-1410] Spring Boot Security Auto-Configuration

* [BAEL-1410] Added some tests for incorrect credentials use case

* [BAEL-1410] Added readme and some code improvements

* [BAEL-1410] removed form based auth config because is redundant
added oauth2 server auto-configuration sample with test

* [BAEL-1410] added custom Authorization Server Config

* [BAEL-1410] update README

* [BAEL-1410]refactor tests

* [BAEL-1410]oauth2 resource server

* [BAEL-1410]oauth2 sso sample with facebook

* [BAEL-1410]remove spring-flyway

* [BAEL-1410]refactor tests

* [BAEL-1410] refactor tests

* [BAEL-1410] update
2018-01-29 06:44:40 +01:00
k0l0ssus 4d8f0a48ae
Add Java vs Vavr Stream sample 2018-01-28 18:06:11 -05:00
k0l0ssus bdc785ac47
Merge pull request #1 from eugenp/master
Sync Up
2018-01-28 17:56:15 -05:00
Adam InTae Gerard 0d85d1ad01 BAEL-1175 - corrected directory cmd (#3534) 2018-01-28 14:11:10 +01:00
DOHA 798920d3a2 Merge remote-tracking branch 'eugenp/master' 2018-01-28 13:46:56 +02:00
Dassi orleando f9649c0926 BAEL-1273: move code to another module (#3532)
* BAEL-1216: improve tests

* BAEL-1448: Update Spring 5 articles to use the release version

* Setting up the Maven Wrapper on a maven project

* Add Maven Wrapper on spring-boot module

* simple add

* BAEL-976: Update spring version

* BAEL-1273: Display RSS feed with spring mvc (AbstractRssFeedView)

* Move RSS feed with Spring MVC from spring-boot to spring-mvc-simple
2018-01-27 13:52:46 -08:00
Loredana Crusoveanu 70b81ca807
Merge pull request #3529 from eugenp/internationalization-assets
remove enablemvc
2018-01-27 18:08:55 +02:00
Loredana Crusoveanu 999dfbf381 remove enablemvc 2018-01-27 17:43:23 +02:00
Markus Gulden 81e8da29a4 BAEL-1335 2018-01-27 11:14:14 +01:00
markusgulden cb593c981d
Merge pull request #4 from eugenp/master
Update
2018-01-27 11:08:33 +01:00
Raksha Rao f12497c18b test case minor changes 2018-01-27 14:28:19 +05:30
Grzegorz Piwowarek 955a2e7e18 Reactive exception handling 2018-01-27 06:52:34 +01:00
Satish Pandey fab4aec7a1 Instance profile credentials example. (#3401)
* Instance profile credentials example.

* InstanceProfile CloudFormation template included to provision AWS
environment.

* Included java package installation under Yaml script.

* Using SpringApplication reference to prepare application context.

* Introducing SpringCloudS3Service to handle all S3 operations.
2018-01-27 06:24:22 +01:00
Adi 3f3204e14f BAEL-1267: programmatically create, configure and run a tomcat server - remove unused dependencies 2018-01-26 21:18:17 +02:00