Commit Graph

656 Commits

Author SHA1 Message Date
Seun Matt 3ae96995ad example code for BAEL-966 (#2152)
* added updated example codes

* updated example code StringToCharStream

* deleted StringToCharStream.java locally

* removed redundant file

* added code for apache commons collection SetUtils

* refactored example code
2017-06-27 00:18:54 +02:00
PRITAM BANERJEE b97651ae5a MapIteration changes (#2072) 2017-06-26 12:36:16 +02:00
Chandravadan S 2bb31e54ed Cyclic Barriers demo (#2156) 2017-06-26 11:12:00 +02:00
hariprasad108 547b5850fb Bael-864, Networking, core-java. (#2111) 2017-06-19 22:14:48 +02:00
maibin ed926b3790 Revert "Difference between url and uri bael 864 hariprasad net (#2108)" (#2110)
This reverts commit 9048d5215b.
2017-06-19 15:43:23 +02:00
hariprasad108 9048d5215b Difference between url and uri bael 864 hariprasad net (#2108)
* BAEL-864, java.net.*

* java-networking Bael-864, revision

* Final and static keywords removed.

* Bael-486 Static import for JUnit into pom.xml was added.

* Bael-486, pom.xml was renamed on networking-pom.xml to deactivate it.

* Maven pom.xml changed.

* Delete java-networing project.

* Bael-684, rearanged.
2017-06-19 00:27:34 +02:00
Tomasz Sobala 3a04c3adc1 BAEL-832 currently executed method. (#1982)
* 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.

* [BEAL-832] getting the name of current executing method.

* clean up.
2017-06-15 23:19:32 +02:00
Grzegorz Piwowarek b4bcb81c09 Create README.md (#2092) 2017-06-15 18:44:44 +02:00
Grzegorz Piwowarek b92470e14d Refactor Smatt examples (#2091) 2017-06-15 16:13:51 +02:00
Grzegorz Piwowarek 5698ecb047 Create README.md (#2073) 2017-06-15 16:08:13 +02:00
iaforek 6786eb13d8 BAEL-837 - Why Does Changing the Sum Order Returns a Different Result (#2070)
* 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.
2017-06-14 19:26:12 +02:00
Grzegorz Piwowarek fe11e8f7d4 Idiomatic refactor (#2063)
* StringToCharStream

* Spring integration tests

* Spring integration tests
2017-06-13 16:54:45 +02:00
Seun Matt 53f4ec5f87 added updated example codes (#2062) 2017-06-13 12:58:53 +02:00
Grzegorz Piwowarek dc43aec4d3 Build optimization 10.06.2017 (#2037)
* Refactor

* Refactor
2017-06-11 06:58:57 +02:00
Grzegorz Piwowarek 9cb18aebba Refactor introspector 2017-06-10 11:58:42 +02:00
Seun Matt 920167f5b7 BAEL-865 - updated example code (#2029)
* added project files for evaluation article by smatt382@gmail.com

* added project files for evaluation article by smatt382@gmail.com

* added class com.baeldung.string.StringToCharStream by smatt382@gmail.com

* updated the example codes. Use assert statements

* updated example codes

* fixed conflict in pom.xml

* remove redundant files'

* added unit test
2017-06-09 14:32:20 +02:00
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