187 Commits

Author SHA1 Message Date
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
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
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
nguyennamthai
b24dfc8976 Fix a division method mistake (#4488) 2018-06-16 10:16:37 -05: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
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
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
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 ae47827879d0e9396ad5de5f979f495629a35838.

* Revert "BAEL-1585"

This reverts commit e792f17f82f863850d07884f4638c53beca7f52f.

* BAEL-1585

* rev1
2018-04-11 19:52:21 +02:00
iaforek
97c405834e BAEL-1648 - Measure Time Elapsed in Java 2018-04-08 15:48:13 +01: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
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
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
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
Grzegorz Piwowarek
da4bd50cdb
Core Java 8 refactor (#3342) 2018-01-04 17:21:32 +02:00
Ganesh
62e53959ef PR for BAEL-1340 - Java StringJoiner class (#3324)
* unit tests for stringjoiner

* formatting changes

* slit test cases and formatting fixes

* minor formatting fix
2017-12-31 16:54:02 +02:00
thakursantosh
6f386f79e5 Code for BAEL-1437 - thakursantosh/st1972@gmail.com (#3294)
* New code for First Article 'Types of Bean Injection'

* Adding code for BAEL-1306

* Code changes for BAEL-1306

* Removed code of my evaluation article

* Simplified code to use number arrays BAEL-1306

* Simplified code for BAEL-1306

* Code commit for BAEL-1437

* Removed code that was added for BAEL-1437

* Code commit for BAEL-1437
2017-12-25 19:45:55 +01:00
Muhammed Almas
72854479e7 Counter (#3223)
* BAEL-1375 Counter in Java.

* BAEL-1375 Frequency counter in java.

* BAEL-1375 Refactored method names.

* BAEL-1375 refactored code.

* BAEL-1375 Fixed the test

* BAEL-1375 updated code to include parallel stream.
2017-12-25 15:50:22 +01:00
KevinGilmore
314e2148b2
BAEL-1326 2nd attempt (#3281)
* 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-1326: Default and static methods in interfaces
2017-12-23 07:04:16 -06:00
Eugen Paraschiv
533218682f import cleanup 2017-12-19 13:51:58 +02:00
Jose Bob Santos Jr
ae109dfb7c BAEL-1330 Primitive Type Streams in Java 8 (#3106)
* initial commit for first article evaluation

* fixed compilation error

* removed final keywords for compliance

* added unit tests and refactored as needed

* refactored application-context.xml to use self-closing tags

* renamed tests to use UnitTest suffix

* removed unnecessary annotation

* added code samples for primitive streams

* removed sample code and tests for evaluation article

* renamed unit test to proper unit test naming

* added a test to show boxed method

* added the assertion to the test fox boxed

* changed mapToInt test to use Arrays.asList instead of a POJO as per Grzegorz and Eugen
2017-12-15 02:50:51 +01:00
Muhammed Almas
9627971b46 BAEL-1375 Using compute for every usage. (#3242) 2017-12-14 17:54:27 +01:00
Muhammed Almas
63d4e7d014 BAEL-1375 Counter in Java. (#3170)
* BAEL-1375 Counter in Java.

* BAEL-1375 Frequency counter in java.

* BAEL-1375 Refactored method names.
2017-12-03 21:22:39 +01:00
abialas
edec7ddbe5 BAEL-1344 (#3081)
* BAEL-1344 add java8 convert methods date, localdate, localdatetime

* BAEL-1344 add java9 example

* Move Date to LocalDate and LocalDateTime converters from core-java-8 to core-java-9
2017-11-24 13:29:08 -08:00
abialas
6211154062 Bael 1344 (#3068)
* BAEL-1344 add java8 convert methods date, localdate, localdatetime

* BAEL-1344 add java9 example
2017-11-19 13:03:09 -08:00
Muhammed Almas
7b4d644d1e BAEL-1296 Prime numbers till 'n'. (#2954) 2017-11-08 18:04:59 +01:00
nabyla
9081c089f6 Add stream supplier test (#2631) 2017-09-17 10:20:58 +03:00
Doha2012
9c03b45c23 move java8 code (#2535)
* fix spring config

* fix spring config

* fix spring config

* minor fix

* fix spring-boot module

* fix pom

* upgrade jackson

* minor fix

* java concurrency

* cleanup

* fix conflict

* java 8

* clean up

* add core-java-8 to main pom
2017-08-31 09:43:28 +02:00
Grzegorz Piwowarek
0902c3d9e0 Collapse core-java-8 into core-java 2016-10-23 22:36:53 +02:00
Grzegorz Piwowarek
d97ba21fb3 Move StringToInt examples 2016-10-23 21:24:20 +02:00
Grzegorz Piwowarek
ce0cb0c375 Move Random List Element examples 2016-10-23 21:22:07 +02:00
Grzegorz Piwowarek
d9c3a9d9cd Move CharToString examples 2016-10-23 21:20:01 +02:00
Grzegorz Piwowarek
6dc9bcf331 Move FunctionalInterfaces examples 2016-10-23 19:55:41 +02:00
Grzegorz Piwowarek
93256245ff Move CompletableFuture examples 2016-10-23 19:53:01 +02:00
Grzegorz Piwowarek
62c6abfb4a Move Java8 Collectors example 2016-10-23 19:49:03 +02:00