Commit Graph

215 Commits

Author SHA1 Message Date
Felipe Santiago Corro f68615d772 Copy list to another list examples (#4725) 2018-07-16 08:41:08 +02:00
Eugen Paraschiv 22b7cf7957 plugin cleanup 2018-07-15 09:51:16 +03:00
Eugen Paraschiv b3b91b990d plugin cleanup 2018-07-15 09:41:47 +03:00
Jonathan Cook b44883b364 BAEL-1889 - Let's move the Java Number articles into a new module (#4619)
* BAEL-1849 - Convert from String to Date in Java

* BAEL-1863 - Calling Callbacks with Mockito

* BAEL-1889 - Let's move the Java Number articles into a new module

* BAEL-1889 - Let's move the Java Number articles into a new module
2018-07-14 15:00:37 +02:00
Abhinayak Swar ed872e6118 BAEL-1897: Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day (#4615)
* abh.swar@gmail.com: Code check-in for article on Spring WebFlux
1. EmailWebClient is the client that subscribes to the data from WebFlux server
2. EmailGenerator generates one email per second randomly
3. EmailHandler and EmailRouter deal with handling of request of the subscriber
4. Email is the POJO for data transmitted by the server

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Added code and test to increment date by one day using java 8 and joda-time
- Added joda-time 2.10 dependency in pom.xml

* Revert "abh.swar@gmail.com: Code check-in for article on Spring WebFlux 1. EmailWebClient is the client that subscribes to the data from WebFlux server 2. EmailGenerator generates one email per second randomly 3. EmailHandler and EmailRouter deal with handling of request of the subscriber 4. Email is the POJO for data transmitted by the server"

This reverts commit 6254ad9

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Added code and test to increment date by one day using java.util.Calendar and ApacheCommons and unit tests for it
- Used properties for ${joda.version}
- Formatted the code using IntelliJ formatter
- Renamed DateIncrementerTest to DateIncrementerUnitTest
- Changed test method names to follow _given_when_then convention

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Removed unnecessary comment

* Code check-on for (http://jira.baeldung.com/browse/BAEL-1897) How to increment a Date by one day
- Corrected the order of parameters of assertEquals() method
2018-07-12 20:55:06 +02:00
Sanjay Patel cddf858c05 BAEL-5246: pom cleanup (#4620)
* BAEL-5246: round 1 of pom cleanup - upto "jersey" project

* BAEL-5246: Initial pass for pom cleanup - upto spring-cloud

* BAEL-5246: pom cleanup upto testing-modules/junit5

* BAEL-5246: pom cleanup - upto xstream

* BAEL-5246: pom cleanup - last round (before review)
2018-07-12 09:04:54 +02:00
Shubhra Srivastava ee98d7558c BAEL-1901: AssertJ Fix (#4660) 2018-07-08 12:42:56 -05:00
Shubhra Srivastava 387d93e905 BAEL-1901 Add hours to Date in Java (#4599)
* BAEL-1901 Add hours to Date in Java

* BAEL-1901 : Editor Review Changes

* BAEL-1901 using assertThat for assertions
2018-07-08 10:27:42 -05:00
Rokon Uddin Ahmed f086ae7814 BAEL-7217 (#4637)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md
2018-07-06 09:25:49 +02:00
Hai Nguyen 59277b4339 BAEL-1846: Java Image to Base64 String (#4600)
* BAEL-1846: Java Image to Base64 String

* Move from using main method to Junit test

* Update to use environment variables for testing

* reformat and add test file
2018-07-05 21:20:07 +02:00
rozagerardo 7e0d553340 * Added code for BAEL-1899 get start and end of a day (#4567) 2018-06-25 22:30:31 -07:00
KevinGilmore 3cab703646
BAEL-1801 README update (#4548)
* BAEL-1766: Update README

* BAEL-1853: add link to article

* BAEL-1801: add link to article
2018-06-24 21:13:54 -05:00
nguyennamthai b24dfc8976 Fix a division method mistake (#4488) 2018-06-16 10:16:37 -05:00
charlesgonzales 2fe0dee64e Update 13 README.md and create 2 README.md (#4468)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md
2018-06-13 20:50:33 +03:00
nguyennamthai 7e66e1b919 BAEL-1801 Add tests for unsigned arithmetic (#4442) 2018-06-10 21:44:29 -05:00
Chandra Prakash 7f2c4e5535 Added sample code for type inference. (#4443) 2018-06-10 12:26:03 -07:00
Amit Pandey 2e683411e2 Bael 4461 2 (#4409)
* Deleted md file as a conflict

* [BAEL-4461] - Fixed PMD violation

* [BAEL-4461] - Fixed PMD violation

* [BAEL-4461] - Ignore empty TC

* Fix Spring 5 tests
2018-06-05 13:35:55 +02:00
Tom Hombergs fb8224d8d4
Merge pull request #4367 from chrisoberle/master
BAEL-1786
2018-06-03 21:32:03 +02:00
Rokon Uddin Ahmed 50f5cba9da BAEL-6634 (#4376)
* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Create README.md

* Create README.md

* Create README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2018-06-01 14:04:12 +02:00
Amit Pandey 7206e64bef Bael 6556 3 (#4382)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of renames of testcases

* [BAEL-6556] - Next set of renames of testcases

* [BAEL-6556] - Next set of renames of testcases

* [BAEL-6556] - Next set of renames of testcases
2018-06-01 13:12:51 +02:00
Chris Oberle d683b370f6 refactor example 2018-05-30 07:48:42 -04:00
Chris Oberle 543c87fa70 initial import of source for BAEL-1786 2018-05-30 07:48:42 -04:00
Amit Pandey dfcc0cab05 Bael 6556 2 (#4365)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of testcase renamed
2018-05-29 22:14:19 +02:00
myluckagain d98b696baa BAEL-1736 fix (#4271) 2018-05-22 12:56:17 +04:00
Shubhra Srivastava bdb937e68b BAEL 1748 - Optional - orElse() vs orElseGet() (#4240)
* Types of Bean Injection in Spring

* Changing config file name

* BAEL-1584 : Find an element in list

* Revert "Changing config file name"

This reverts commit d857db9f65b1cf89773348e3901385ce59d9e1f8.

* Revert "Types of Bean Injection in Spring"

This reverts commit e9efcb8e70f37e7488aa2371bb3ee62c676996f4.

* BAEL-1584 : Find an Element in Given List

* BAEL-1584 : Hashcode impl changed

* BAEL:1584 : ListIterator to Iterator change

* Method name refactoring

* BAEL 1748 - Optional OrElse vs OrElseGet

* BAEL-1748 Benchmark Runner
2018-05-15 11:20:55 -07:00
Ekaterina Galkina 4a81b13958 BAEL-1736 2018-05-12 18:10:42 +05:00
amit2103 05b7e933bd Bael 5247 (#4175)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* Added new parent pom

* initial clean up of child poms

* Added new parent pom

* [BAEL-5247] - New Parents in the tutorials repo
2018-05-05 22:30:00 +02:00
Rokon Uddin Ahmed f00a66af69 03.05.2018 (#4161)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2018-05-03 15:44:44 +02:00
collaboratewithakash fad99fe44b Back-links added (#4119)
* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link corrected

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link corrected

* Back-link corrected

* Back-link corrected

* Back-link correct

* Back-link corrected

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link added

* Back-link corrected

* Back-link added

* Back-link corrected

* Back-link corrected

* Back-link corrected
2018-05-02 09:41:08 +02:00
Shubhra Srivastava b559157482 BAEL-1584 : Finding an element in list (#4067)
* BAEL-1584 : Find an Element in Given List
2018-04-30 14:53:17 -06:00
amit2103 f2128ad054 Bael 5249 cleanup (#4108)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-5249] - 21.02 - pom cleanup - formatted pom.xml
2018-04-26 14:37:47 +02:00
amit2103 ba1ba8455d Bael 5249 (#4052)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* Defined the integration profile in the parent

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* Spring-dependency injection

* BAEL-1683-Guide to Java Clock class

* BAEL-1683-Guide to Java Clock class

* added article link

* added article link

* fixed link

* refactoring packages and using generics

* BAEL-717: Singleton Session Bean. (#4046)

* BAEL-717: Singleton EJB Bean

Files for BAEL-717:Singleton EJB Bean.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Changed artifactId value.

* BAEL-717: Singleton EJB Bean.

Added module for Singleton EJB Bean.

* BAEL-717: Singleton EJB Bean. 

Removed Singleton EJB Bean Module.

* BAEL-717: Singleton EJB Bean

Changed the JNDI Lookup name.

* BAEL-717: Singleton EJB Bean. 

Added the "singleton-ejb-bean" module.

* BAEL-717: Singleton EJB Bean.

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean.

Corrected Indentation.

* BAEL-717: Singleton EJB Bean.

Corrected Indentation.

* BAEL-717:Singleton EJB Bean.

Corrected Indentation.

* BAEL-717:Singleton EJB Bean.

Corrected Indentation.

* BAEL-717: Singleton Session Bean.

Added class for Bean-Managed concurrrency.
Changed class name from CountryStateCacheBean to CountryStateContainerManagedBean.

* BAEL-717: Singleton Session Bean.

Changing the name of the class to CountryStateContainerManagedBean.

* BAEL-717: Singleton Session Bean.

Added method to test Bean-Managed concurrency.

* Get Latest.

* deleting CountryStateBeanManagedBean for new file.

* deleting CountryStateCacheBean for new file.

* deleting CountryStateContainerManagedBean for new file.

* BAEL-717: Singleton Session Bean.

Adding file for Bean with Bean-Managed concurrency.
Changing file name for original file to CountryStateContainerManagedBean with Container-Managed concurrency.

* Deleting file for new checkin.

* BAEL-717: Singleton Session Bean.

Added test case for Bean-Manged concurrency.
Change in JNDI names.

* BAEL-717: Singleton Session Bean.

Changed the assert method parameter order and null check in test cases.

* BAEL-717:Singleton Session Bean

Removed volatile keyword for the variable countryStatesMap. Marking it as final.

* [BAEL-1641] Find all pairs of numbers in an array that add up to a given sum (#3890)

* [BAEL-1641] Find all pairs of numbers in an array that add up to a given sum

* Commiting editor's suggested changes

* Commiting article Spring Data Reactive Mongo DB microservice in Kotlin

* Revert commit for BAEL 1687 - Moving those files to a new branch

* Use AssertJ and BDD-style on unit testing

* BAEL 1639: added singleton examples and test. (#3977)

* BAEL-1701 (#4012)

* BAEL-1701: Create SQSApplication, add most functionality (still need to format, and add queue monitoring)

* BAEL-1701: Complete examples

* added article links

* removed folder "SpringDependencyInjection"
e Please enter the commit message for your changes. Lines starting

* BAEL-1706 - optional parameters in java (#4050)

* BAEL-1706 - optional parameters in java

* minor adjustments per review

* add tests
* fix formatting
* fix constructor issue with MultiVitaminOverloading

* BAEL-1706 Test name change, formatting

* working with booleans in thymeleaf (#4061)

* BAEL-1725 Java Pass-by-reference vs Pass-by-value - First commit (#4058)

* BAEL-1725 Java Pass-by-reference vs Pass-by-value - First commit

* updated test cases

* Update README.md

* Demonstration of Java assert

* BAEL-1679 (#3959)

* BAEL-1412 add java 8 spring data features

* BAEL-21 new HTTP API overview

* BAEL-21 fix executor

* BAEL-1432 add custom gradle task

* BAEL-1567 add samples of cookie and session in serlvet

* BAEL-1567 use stream api

* BAEL-1567 fix optional

* BAEL-1679 add query annotation jpa spring data

* BAEL-1679 added new junits

* BAEL-1679 use assertJ, use givenWhenThen naming convention

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* spring-data final

* service locator pattern

* service locator pattern

* variable name changes

* Spring MVC @PathVariable dot (.) get truncated

* testing changes

* Update README files (#4065)

* BAEL-1612: Update README

* BAEL-1562: Update README

* BAEL-1562: Update README

* BAEL-1369

* BAEL-1369

* BAEL-1369

* remove comments

* Back-link corrected (#4071)

* Back-link corrected (#4073)

* Back-link added (#4074)

* Back-link added (#4075)

* Back-link added (#4076)

* Back-link added (#4077)

* Back-link added (#4078)

* Back-link added (#4080)

* Back-link added (#4081)

* Back-link added (#4083)

* Back-link corrected (#4086)

* Back-link added (#4087)

* Back-link added (#4091)

* Back-link added (#4089)

* added example code for Java mail (#4101)

* Back-link added (#4099)

* Back-link added (#4088)

* Back-link added (#4082)

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup
2018-04-26 08:50:35 +02:00
amit2103 7ae3babd59 Bael 5927 (#4042)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* Defined the integration profile in the parent
2018-04-19 09:41:39 +02:00
Ciro Alvino 61504c948b Bael 1585 (#3750)
* Different Types of Bean Injection in Spring

* BAEL-1585

* Revert "Different Types of Bean Injection in Spring"

This reverts commit ae47827879.

* Revert "BAEL-1585"

This reverts commit e792f17f82.

* BAEL-1585

* rev1
2018-04-11 19:52:21 +02:00
Rokon Uddin Ahmed 5da2ea995c 08.04.2018 (#3954)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md
2018-04-11 07:33:18 +02:00
iaforek 97c405834e BAEL-1648 - Measure Time Elapsed in Java 2018-04-08 15:48:13 +01:00
Eugen Paraschiv 27086aab33 pom cleanup 2018-04-07 00:17:10 +03:00
Patryk 5b00f0e0e3 BAEL-1600 Internationalization in Java 8 (#3902)
BigDecimal for currency formatting.
2018-03-28 22:13:52 +01:00
Patryk 489e3186bc Bael 1600 internationalization and localization (#3807)
* BAEL-1600 Internationalization and Localization in Java 8

The essential code for the article.

* BAEL-1600 Internationalization and Localization in Java 8

The essential code for the article.

* BAEL-1600 Internationalization and Localization in Java 8

JUnit test names fixed.
Default Timezones set.

* BAEL-1600 Internationalization and Localization in Java 8

Default Timezones set.
2018-03-27 14:28:42 +01:00
ankishagarwal 3ad0cb693c Request for BAEL-1584 (#3740)
* Added for BAEL-1584

* updated for BAEL-1584

* Updated as per Suggestions from Josh, for BAEL-1584

* Removed wrapper class and updated few methods to return boolean instead of Integer
2018-03-13 19:48:11 +01:00
Miguel Rivero 6fdfc3c48a BAEL-1546: Java 8 Math additions (#3805)
* BAEL-1546: Java 8 Math additions

* Applied feedback to Unit Tests

* BAEL-1546 Added missing test annotations
2018-03-13 07:30:19 +01:00
Rokon Uddin Ahmed c10cb80823 02.03 (#3747)
* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2018-03-02 18:40:04 +02:00
KevinGilmore c0f85101b2
BAEL-1539 README (#3712)
* BAEL-973: updated README

* BAEL-1069: Updated README

* BAEL-817: add README file

* BAEL-1084: README update

* BAEL-960: Update README

* BAEL-1155: updated README

* BAEL-1041: updated README

* BAEL-973: Updated README

* BAEL-1187: updated README

* BAEL-1183: Update README

* BAEL-1133: Updated README

* BAEL-1098: README update

* BAEL-719: add README.md

* BAEL-1272: README update

* BAEL-1272: README update

* BAEL-1196: Update README

* BAEL-1328: Updated README

* BAEL-1371: Update README.md

* BAEL-1371: Update README.md

* BAEL-1278: Update README

* BAEL-1326: Update README

* BAEL-399: Update README

* BAEL-1297: Update README

* BAEL-1218: README

* BAEL-1148 README update

* BAEL-113 README

* BAEL-1158 README

* BAEL-1539: Update README
2018-02-21 22:28:29 -06:00
Harshil Sharma d6407ef405 BAEL-1539 shuffling collections (#3701)
* BAEL-1539 Added list, set and map shuffling code exaamples

* #BAEL-1539 fixed a typo

* #BAEL-1539 refactored sample code, added unit tests

* #BAEL-1539 Added unit tests and example for shuffling with custom randomness

* #BAEL-1539 removed source code and kept only tests as tests are sufficient code sample themselves

* #BAEL-1539 updated map shuffling example to use lambdas

* #BAEL-1539 lambda refactoring

* #BAEL-1539 updated map shuffling logic to shuffle entryset instead of keyset
2018-02-21 11:46:15 +01:00
Harshil Sharma 666c07c7be BAEL-1539 shuffling collections (#3567)
* BAEL-1539 Added list, set and map shuffling code exaamples

* #BAEL-1539 fixed a typo

* #BAEL-1539 refactored sample code, added unit tests

* #BAEL-1539 Added unit tests and example for shuffling with custom randomness

* #BAEL-1539 removed source code and kept only tests as tests are sufficient code sample themselves

* #BAEL-1539 updated map shuffling example to use lambdas

* #BAEL-1539 lambda refactoring

* Fixed an indentation
2018-02-16 07:33:34 -06:00
Ahmad Alsanie 0585764866 BAEL-1473 replaced int with AtomicInteger for safe usage in multi-threaded env (#3497)
* BAEL-1473 Intoduction to Spliterator in Java

* BAEL-1473 - Replace .out with logger.info

* removed log

* BAEL-1473 - added test-cases

* modify test-cases

* AtomicInteger instead of int

* SIZED removed
2018-01-24 09:29:14 -08:00
Ahmad Alsanie 25f449ad38 BAEL-1473 (#3477)
* BAEL-1473 Intoduction to Spliterator in Java

* BAEL-1473 - Replace .out with logger.info

* removed log

* BAEL-1473 - added test-cases

* modify test-cases
2018-01-21 09:44:22 -08:00
Rokon Uddin Ahmed c3e8ba4a70 Pull request 17.01 (#3442)
* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md
2018-01-17 21:53:17 +01:00
Doha2012 6f3710b9ae move stream API to core-java-8 (#3403)
* make sure modules using java8

* move url matching code

* upgrade boot parent

* minor cleanup

* fix blocking tests

* add core-java-io module

* move stream API to core-java-8
2018-01-13 14:58:51 +01:00
Ahmad Alsanie 07aad444ae BAEL-1473 Intoduction to Spliterator in Java (#3400) 2018-01-12 13:05:49 -08:00