Commit Graph

640 Commits

Author SHA1 Message Date
PRITAM BANERJEE 4453358bfb BAEL-725: How to iterate over a map? (#1959)
* BAEL-725: How to iterate over a map?

* Changed the name of the tests in MapIterationTest.java
2017-06-07 22:22:28 +02:00
Anand kumar 61135ac4da Change annotation parameters during runtime (#2006) 2017-06-07 15:24:47 +02:00
slavisa-baeldung 58a9ea0939 BAEL-869 - Java 8 example of listing null properties 2017-06-07 09:13:42 +01:00
hariprasad108 c17d19ff21 Difference between url and uri bael 864 hariprasad (#1987)
* Commit URUURLJNDIFS added.

* URI URL REST commit.

* Revert "URI URL REST commit."

This reverts commit d9e26399be1f3a26d871cd0600036e3a4558cde2.

* Difference URI URL REST BAEL-864.

* Commit Difference URI URL REST #864, small changes.

* Difference URI URL REST project has been moved to spring-rest.

* BAEL-864. Deleted unused project and did one small change.
2017-06-04 21:39:21 +02:00
Grzegorz Piwowarek a5d5460a9f Stream API: last Stream element example refactor (#1943)
* Refactor

* Delete ApplicationContextTestBeanInjectionTypes.java

* Delete BeanInjectionJavaConfigIntegrationTest.java

* Delete BeanInjectionXMLConfigIntegrationTest.java
2017-06-03 20:49:56 +02:00
iaforek 25de280068 BAEL-821 Added more test and updated round methods. (#1973)
* 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.
2017-06-03 00:04:22 +02:00
Andrea Bergonzo af40bd48f0 Fix UUID article link (#1977)
Fix the link now that the article is up.
2017-06-02 19:53:07 +02:00
Tomasz Sobala b7b1693df5 [BAEL-872] map and flatMap difference (#1892)
* injecting beans

* XML-based configuration replaced with Java Config.

* [BAEL-431] Exploring TestRestTemplate.

* Revert of evaluation task "XML-based configuration replaced with Java Config."

This reverts commit 66471cf0574c85f8ff514ec4caf5ba44ebba1a74.

* Revert of evaluation task "injecting beans"

This reverts commit d2ac20185e636245bc0ae0b4ccb952965de88e28.

* [BAEL-431] fix to the tests in TestRestTemplateBasicLiveTest.

* [BAEL-431] added more meaningful user and password for auth.

* [BAEL-820] examples of wait() and sleep() methods.

* [BAEL-820] wait() and sleep() examples.

* [BAEL-829] number of occurences of a char in a String.

* [BAEL-829] printlns changed to assertions.

* [BAEL-829] improved names of the tests.

* [BAEL-872] map and flatMap difference.

* removed duplicated countingChars class.

* [BAEL-872] changed Object into List.

* [BAEL-872] improved code for map() and flatMap() article.
2017-06-02 08:06:12 +02:00
iaforek 8edc3bfbaa BAEL-821 - How to round a number to n decimal places in Java (#1953)
* 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
2017-06-01 01:24:21 +02:00
yetanotherallisonf 33653d82c2 Update README.md (#1907) 2017-05-30 21:57:41 +02:00
buddhini81 4eeaf5b790 BAEL-839 - Add the missing imports 2017-05-29 18:30:53 +05:30
buddhini81 4586d471a1 BAEL-839 changes in all test methods 2017-05-29 17:55:10 +05:30
buddhini81 3e28582bac BAEL-839 Delete as no longer needed 2017-05-29 17:47:39 +05:30
Chandravadan S 994ac4ddbf Dining Philosophers Problem (#1944) 2017-05-29 08:34:13 +02:00
Syed Ali Raza 8c8c01ebbb BAEL-833: How to get last element of a Stream in Java? (#1930)
* Different Types of Bean Injection in Spring

* Fixed code formatting and test names for "Different Types of Bean Injection in Spring"

* BAEL-833: How to get last element of a Stream in Java?

* BAEL-833: Updated based on review from editor
2017-05-28 12:07:15 +02:00
Anand kumar 99c7a91587 guide to uuid generation in java (#1879)
* guide to uuid generation in java

* updated readme.md
2017-05-28 12:06:56 +02:00
Grzegorz Piwowarek 7c6536685c Extract a Random instance to a variable (#1942) 2017-05-27 20:13:30 +02:00
MMonik d98ba10f48 Update README.md (#1915) 2017-05-24 18:49:01 +02:00
MMonik d0d4344c2f Update README.md (#1919) 2017-05-24 18:47:39 +02:00
MMonik 41af122b7f Update README.md (#1921) 2017-05-24 18:46:01 +02:00
MMonik e8037caa9d Update README.md (#1922) 2017-05-24 18:45:22 +02:00
MMonik ff870c9868 Update README.md (#1923) 2017-05-24 18:44:49 +02:00
MMonik 3177e3b3af Update README.md (#1924) 2017-05-24 18:44:14 +02:00
MMonik e02050387c Update README.md (#1925) 2017-05-24 18:42:58 +02:00
parthkaria 2bfc5bd979 BAEL-831 Updated examples (#1904)
* Dependency Injection examples

Dependency Injection examples for evaluation article

* Junit test cases added for dependency injection

Junit test cases added for dependency injection

* ClassNotFoundException vs NoClassDefFoundError

Example to reproduce ClassNotFoundException & NoClassDefFoundError

* JUnit test cases for ClassNotFoundException & NoClassDefFoundError

test cases to reproduce ClassNotFoundException & NoClassDefFoundError

* Deleting exampls for evaluation article

* BAEL-831 Examples for ClassNotFoundException & NoClassDefFoundError

* BAEL-831 Removed wrapper class

* Removing evaluation article example

* BAEL-831 removed wrapper class
2017-05-23 21:40:46 +02:00
KevinGilmore 4393cdc0f6 BAEL-886: Updated README (#1902) 2017-05-23 07:58:17 -05:00
Mansi 3b1337598f BAEL-823 Iterating over enum values in Java (#1886)
* Example Code For Evaluation Article

This is an example code for the evaluation article on "Different Types of Bean Injection in Spring"

* Added unit tests

* Minor changes to application context

* BAEL-823 Iterating over enum values in Java

* Removed code committed for evaluation article
2017-05-22 21:58:17 -05:00
parthkaria 28adbeb53d BAEL-831 ClassNotFoundExceptions vs NoClassDefFoundError (#1899)
* Dependency Injection examples

Dependency Injection examples for evaluation article

* Junit test cases added for dependency injection

Junit test cases added for dependency injection

* ClassNotFoundException vs NoClassDefFoundError

Example to reproduce ClassNotFoundException & NoClassDefFoundError

* JUnit test cases for ClassNotFoundException & NoClassDefFoundError

test cases to reproduce ClassNotFoundException & NoClassDefFoundError

* Deleting exampls for evaluation article

* BAEL-831 Examples for ClassNotFoundException & NoClassDefFoundError

* deleting config file for evaluation article

deleting config file for evaluation article
2017-05-22 19:32:48 +02:00
slavisa-baeldung 3aae854ea2 BAEL-839 - minor test changes 2017-05-22 06:08:39 +01:00
buddhini81 abdc904426 Delete 2017-05-22 08:54:14 +05:30
buddhini81 ef1c191dfb Delete 2017-05-22 08:53:19 +05:30
buddhini81 156c8a3bdd Add EscapingCharsManualTest BAEL-839 2017-05-22 08:52:22 +05:30
buddhini81 338e74ae3f Create new folder BAEL-839 2017-05-22 08:51:30 +05:30
buddhini81 0a5526ea23 Add class EscapingChars
for BAEL-839
2017-05-22 08:49:36 +05:30
buddhini81 468c06ff19 Create new folder
for BAEL-839
2017-05-22 08:48:02 +05:30
Raúl Juárez 489e0e012f BAEL-886 How to add a single element to a Stream (#1887) 2017-05-21 21:06:05 -05:00
KevinGilmore e74de67c59 BAEL-827 README (#1890)
* Add files via upload

* Update pom.xml

* Update RunGuice.java

* Update Communication.java

* Update CommunicationMode.java

* Update DefaultCommunicator.java

* Update EmailCommunicationMode.java

* Update IMCommunicationMode.java

* Update SMSCommunicationMode.java

* Update MessageLogger.java

* Update MessageSentLoggable.java

* Update AOPModule.java

* Update BasicModule.java

* Update CommunicationModel.java

* Update Communicator.java

* Update BasicModule.java

* Update RunGuice.java

* Update MessageLogger.java

* Update Communicator.java

* Update pom.xml

* BAEL-278: Updated README.md

* BAEL-554: Add and update README.md files

* Update pom.xml

* Update pom.xml

* Update pom.xml

* BAEL-345: fixed assertion

* BAEL-109: Updated README.md

* BAEL-345: Added README.md

* Reinstating reactor-core module in root-level pom

* BAEL-393: Adding guide-intro module to root pom

* BAEL-9: Updated README.md

* BAEL-157: README.md updated

* Changed project name

* Update RunGuice.java

Removed references to message logging and output

* Update Communication.java

Removed message logging-related code

* BAEL-566: Updated README.md

* New project name

* BAEL-393: removing guice-intro directory

* BAEL-393: renamed module guice-intro to guice in root pom.xml

* BAEL-393 and BAEL-541 README.md files

* BAEL-731: Updated README.md

* BAEL-680: renamed test methods

* BAEL-714: Updated README.md

* BAEL-737: Updated README.md

* BAEL-680 and BAEL-756 README.md updates

* BAEL-666: Updated README

* BAEL-415: Custom Scope

* BAEL-415: Custom Scope - renamed classes to reflect TenantScope

* README file updates for BAEL-723, BAEL-763, and BAEL-415

* BAEL-735: README

* BAEL-567: README

* BAEL-736: README

* BAEL-766: Update README

* BAEL-555: README update

* BAEL-761: README update

* BAEL-742: Stripe API for Java README file

* BAEL-86: Correction to README file

* BAEL-828: Updated README.md

* BAEL-830: Updated README

* BAEL-870: Switched from TestNG to JUnit due to build errors

* BAEL-870: Update README

* BAEL-827: Updated README
2017-05-21 15:58:12 -05:00
adasioo e09ba8e3c2 BAEL-923 How to inject a value from properties to a class not managed by Spring? (#1878)
* adam.zawada@gmail.com - Different Types of Bean Injection in Spring

* adam.zawada@gmail.com - Different Types of Bean Injection in Spring
switch to Java based configuration

* BAEL-895 calculate the period/duration between two dates in Java 8

* clean old PR

* BAEL-923 How to inject a value from properties to a class not managed by Spring?

* clean PR
2017-05-19 09:10:21 +02:00
Raúl Juárez fdfbab9365 BAEL-939 Improve split to string article (#1875) 2017-05-18 22:09:41 +03:00
Vivek Kumar 3f22a70bb3 Add unit test for File path article - BAEL-827 (#1784)
* BAEL-827 Add unit test for file paths

* BAEL-827 - Update path IOException test to execute only on Windows

* BAELL-827 - Update unit test method name
2017-05-17 22:21:40 -05:00
slavisa-baeldung 9d6815284e Merge pull request #1854 from dhruba619/master
BAEL-839 added test cases and refactored code
2017-05-17 11:51:17 +02:00
iaforek 9e644af344 BAEL-838 Tiny change to keep code consistant. Return null or empty. (#1866)
* 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.
2017-05-16 17:05:38 +02:00
pivovarit 15fe1f0996 Fix JavaSortingUnitTest 2017-05-16 09:39:39 +03:00
pivovarit adb4b9bfdf Fix HexToAsciiUnitTest 2017-05-16 09:34:45 +03:00
pivovarit 924b960746 JavaInputStreamToXUnitTest refactor 2017-05-16 09:20:54 +03:00
lor6 bf71b3442b baos example (#1858) 2017-05-16 09:16:17 +03:00
pivovarit 286c25555a SplitUnitTest refactor 2017-05-16 09:12:29 +03:00
pivovarit a5cd330ab7 SplitUnitTest refactor 2017-05-16 09:07:41 +03:00
Zeger Hendrikse 4d53bdd90a Removed dead code 2017-05-15 20:40:36 +02:00
Zeger Hendrikse 514164a861 Removed dead code 2017-05-15 20:38:58 +02:00