Commit Graph

132 Commits

Author SHA1 Message Date
Yasin deb79bbd83 BAEL-887 How to collect a Java Stream to an immutable collection? (#2339)
* BAEL-900 Guide to dynamic tests in Junit 5

* BAEL-900 Guide to Dynamic Tests in Junit 5

* Revert "BAEL-900 Guide to Dynamic Tests in Junit 5"

This reverts commit d0d45c9067223347da20d0f2c80de391fcade38e.

* BAEL-900 Guide to Dynamic Tests in Junit 5

* BAEL-900 Guide to dynamic tests in Junit 5

* removed unnecessary annotation

* BAEL-900 unused imports removed

* BAEL-900 simplified input generator code

* BAEL-252 A Java Client to consume a WebSockets API

* BAEL-887 How to collect a Java Stream to an immutable collection?
2017-07-30 09:33:51 -07:00
Jose Carvajal f445a4d11b BAEL-373: Improve/Upgrade existing Mockito articles to Mockito 2 (#2311)
* BAEL-373: Improve/Upgrade existing Mockito articles to Mockito 2

* Fix formatting issue with LoginControllerIntegrationTest
2017-07-29 17:29:25 -05:00
Devendra Tiwari 1957750382 How to zip two collections in Java? (#2176)
* How to zip two collections in Java?

How to zip two collections in Java? | http://jira.baeldung.com/browse/BAEL-780

* Updated pom to add jool dependency

* Added Unit Tests of Zip Collections

* Moved files to libraries folder

* Fixed Compilation Error

* Removed jool dependency as code has been moved to libraries

* Removed jool property attribute
2017-07-08 22:20:49 +02:00
slavisa-baeldung 342c356b89 BAEL-835 - code rerfactor 2017-06-30 15:29:37 +01: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
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
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
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
lor6 bf71b3442b baos example (#1858) 2017-05-16 09:16:17 +03:00
Abhinab Kanrar d46af17af4 HikariCP (#1851)
* jvm log forging

* jvm log forging

* jvm log forging

* log forging

* adding hikariCP module

* try-with-resources

* adding employee use case

* moving HikariCP to libraries
2017-05-15 17:11:27 +02:00
Abhinab Kanrar 1cc1f703be hikaricp module (#1781)
* jvm log forging

* jvm log forging

* jvm log forging

* log forging

* adding hikariCP module

* try-with-resources

* adding employee use case
2017-05-14 22:42:35 +02:00
Doha2012 7c73abdede cleanup pom (#1836)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies

* cleanup pom
2017-05-12 13:32:54 -05:00
Doha2012 35231d0c19 cleanup parent dependencies (#1828)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies
2017-05-11 11:02:04 -05:00
Doha2012 9692ae36fb add parent to pom (#1816)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom
2017-05-09 23:37:43 +03:00
KevinGilmore e2555c2210 BAEL-870: Switch from TestNG to JUnit to fix broken build (#1787)
* 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
2017-05-05 07:40:24 -05:00
lor6 bb1ab4a775 BAEL-863 jdbc test (#1764)
* BAEL-863 jdbc test

* Reduce logging

* Reduce logging

* Reduce logging

* Reduce logging

* Reduce logging

* Optimize build

* Remove testng from core-java
2017-05-03 11:36:17 +02:00
Grzegorz Piwowarek 6e86dc27ff Optimize build and reduce logging (#1772)
* Reduce logging

* Reduce logging

* Reduce logging

* Reduce logging

* Reduce logging

* Optimize build

* Remove testng from core-java
2017-05-03 09:29:10 +02:00
Jesus Boadas a2b327cc9d Move JDO from core-java to libraries (#1758) 2017-04-30 19:26:23 +02:00
Jesus Boadas b0e15fcca0 Guide to JDO (#1730)
* Guide to JDO

* Guide to JDO

* Guide to JDO
2017-04-25 20:54:32 +02:00
Doha2012 5e1e320cee exclude commons-logging dependency (#1686)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix
2017-04-19 16:14:10 +02:00
Doha2012 74688cf30e remove log4j dependencies (#1675)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies
2017-04-18 22:39:13 +02:00
Abhinab Kanrar 782c5565fe jvm log forging (#1643)
* jvm log forging

* jvm log forging

* jvm log forging
2017-04-13 10:08:00 +02:00
pivovarit d0b0debd06 Exclude integration tests 2017-03-24 16:17:34 +01:00
Grzegorz Piwowarek e71367b3f3 Assembly plugin fix (#1449)
* Assembly plugin fix

* Fix java opts

* Fix java opts 2

* Fix java opts 3

* Add sudo: required

* Remove sudo: required

* Enable incremental builder

* Disable incremental builder

* Update

* Update
2017-03-19 20:03:23 +01:00
root fc570b9e2e JSR-354 Java Money & Currency 2017-02-22 11:59:50 -04:00
Danil Kornishev dd40ed7025 Neo4j moved (#1152)
* Neo4j cleanup

* Neo4j cleanup

* Neo4j cleanup x2
2017-02-14 21:44:45 +01:00
Predrag Maric 77d4da5cd0 Merge remote-tracking branch 'origin/master' 2017-02-08 02:55:48 +01:00
Danil Kornishev a9d8c5f3a3 Introduction to Neo4j (#1098)
* Nashorn

* Nashorn x2

* Nashorn added trailing newlines

* Cleanup

* Formatted script lines

* Change system outs to asserts

* Change Nashorn to be Junit tests

* Remove empty test

* Added Neo4j section

* Revert NashornTest
2017-02-07 20:34:10 +01:00
Tomasz Lelek c791bdf1dc BAEL-672 test for weakHashMap 2017-02-05 12:56:09 +01:00
Muhammed Almas f7236b301b BAEL-519 Disruptor in its own module. (#1017)
* BAL-36 File size api in java and apache commons IO

* BAEL-282 grep in java - fixes after code review

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor

* BAEL-519 Moved all supporting classes to main source

* BAEL-519 Moved all supporting classes to main source

* BAEL-519 Moved asserts and test classes in test folder.

* BAEL-519 moved test related producer and consumer to src.

* BAEL-586 Guide to Guava BiMap.

* BAEL-587 formatted code.

* BAEL-519 LMAX Disruptor

* BAEL-587 resolved merge

* BAEL-587 Resolved merge

* BAEL-519 Removed disruptor link.

* BAEL-519 Reverted Guava changes

* RFQ-587 Added disruptor as a separate module.

* BAEL-519 Disruptor changes.

* BAEL-519 Removed disruptor from core-java module.
2017-01-21 06:51:04 -06:00
Muhammed Almas d5acd709e1 BAEL-587 Guide to Bimap (#995)
* BAL-36 File size api in java and apache commons IO

* BAEL-282 grep in java - fixes after code review

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor

* BAEL-519 Moved all supporting classes to main source

* BAEL-519 Moved all supporting classes to main source

* BAEL-519 Moved asserts and test classes in test folder.

* BAEL-519 moved test related producer and consumer to src.

* BAEL-587 Initial commit for BiMap support.

* BAEL-587 Added new tests

* BAEL-587 Added new tests.

* BAEL-519 Removed Disruptor link from readme file.

* BAEL-587 Reverted Disruptor changes

* BAEL-587 reverted changes
2017-01-15 21:45:46 +01:00
Muhammed Almas a8d61e77dd BAEL-519 Introduction to LMAX Disruptor (#948)
* BAL-36 File size api in java and apache commons IO

* BAEL-282 grep in java - fixes after code review

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor library

* BAEL-519 Added support for disruptor

* BAEL-519 Moved all supporting classes to main source

* BAEL-519 Moved all supporting classes to main source

* BAEL-519 Moved asserts and test classes in test folder.

* BAEL-519 moved test related producer and consumer to src.

* BAEL-586 Guide to Guava BiMap.

* BAEL-587 formatted code.

* BAEL-519 LMAX Disruptor

* BAEL-587 resolved merge

* BAEL-587 Resolved merge

* BAEL-519 Removed disruptor link.

* BAEL-519 Reverted Guava changes
2017-01-15 19:48:42 +01:00
eugenp 73d82faf52 maven cleanup work 2016-12-18 17:31:20 +02:00
Muhammed Almas 64b7412a9a BAEL-282 - Grep in Java after code review (#903)
* BAEL-242 Package refactoring after code review for article Grep in Java

* BAEL-282 Updated readme file
2016-12-18 04:34:15 -06:00
eugenp d66d9fb2c0 maven fix and small formatting work 2016-12-17 15:24:36 +02:00
Muhammed Almas b4ac6c6ec5 BAEL-36 BAEL-282 Getting file size using Java and apache commons IO api. Also grep in Java (#890)
* BAL-36 File size api in java and apache commons IO

* BAEL-36 Getting file size using Java and commons IO api.

* BAEL-282 Added support for grep functionality.

* BAEL-282 Rename the text file extension.
2016-12-17 07:19:13 -06:00
maibin 7f45d8f9c9 Simulated Annealing algorithm (#900)
* @Async and Spring Security

* @Async with SecurityContext propagated

* Spring and @Async

* Simulated Annealing algorithm

* Simulated Annealing algorithm

* Rebase

* Rebase
2016-12-16 21:10:54 +01:00
DOHA a3e61b9427 upgrade and cleanup 2016-12-13 22:02:58 +02:00
Sameera bc4fa86c23 Updated the dependency versions as properties 2016-11-17 20:48:06 +05:30
Sameera 8e2ad93233 Adding SHA-256 hashing impl and test classes 2016-11-14 22:31:50 +05:30
DOHA f164e58c7c minor fix 2016-10-29 13:49:35 +02:00
eugenp 5e676c855e testing work 2016-10-25 11:15:13 +03:00
maibin 04482ef902 Executable Jar Maven (#752)
* Expression-Based Access Control

PermitAll, hasRole, hasAnyRole etc.
I modified classes regards to Security

* Added test cases for Spring Security Expressions

* Handler Interceptor - logging example

* Test for logger interceptor

* Removed conflicted part

* UserInterceptor (adding user information to model)

* Spring Handler Interceptor - session timers

* Spring Security CSRF attack protection with Thymeleaf

* Fix and();

* Logger update

* Changed config for Thymeleaf

* Thymeleaf Natural Processing and Inlining

* Expression Utility Objects, Thymeleaf

* listOfStudents edited

* Thymeleaf layout decorators

* Executable Jar with Maven
2016-10-17 11:10:12 +03:00
eugenp 2aa2f43c6e maven cleanup 2016-10-12 07:44:40 +03:00
maverick e0d9cd41a2 Changes in pom.xml as suggested to remove formating changes in pom.xml
commit.
2016-09-29 14:57:30 +05:30
maverick 739502694f md5 changes 2016-09-07 09:30:34 +05:30
Grzegorz Piwowarek 57ca431415 Add list assertions example 2016-07-16 10:51:50 +03:00
Alex Theedom 8d6526c62e Some minor changes to code logic and style 2016-06-09 22:25:41 +01:00
Gachchinamat c8121c168d Core java enum examples 2016-05-30 16:42:22 +02:00
eugenp a2989da4bf maven work 2016-03-06 12:10:06 +02:00
eugenp 0708c51125 mave work 2016-03-06 11:59:13 +02:00
eugenp c467ca73e2 maven work 2016-03-06 11:49:59 +02:00
eugenp e7dd890661 removing sandbox, maven upgrades, eclipse cleanup 2016-03-06 11:37:48 +02:00
eugenp 8238c11c80 maven upgrades 2015-12-21 11:34:42 +02:00
eugenp a1e7be16b8 formatting cleanup 2015-07-23 16:54:23 +03:00
eugenp c4f3a1d0c4 eclipse overall work 2015-06-20 05:52:12 +01:00
eugenp 9e5faf23f1 upgrade and eclipse work 2015-06-20 05:40:22 +01:00
eugenp 66978e97d4 maven upgrades 2015-02-21 19:57:34 +02:00
eugenp b089214ba6 maven work 2015-01-01 14:54:40 +02:00
eugenp 01548ef00b maven upgrades 2014-12-21 19:11:17 +02:00
eugenp cc5202987a maven upgrades 2014-11-20 11:32:43 +02:00
eugenp 900dc84907 maven upgrades 2014-11-02 14:18:31 +02:00
eugenp 00b5f89e87 minor cleanup in java tests 2014-10-05 17:27:27 +03:00
eugenp 1e087d8119 spring minor upgrade g 2014-10-02 00:48:38 +03:00
eugenp 19131413c5 work on maven upgrades 2014-09-13 19:15:25 +03:00
eugenp b30114fc26 minor maven upgrades 2014-08-23 14:09:45 +03:00
eugenp f7df607efa minor maven upgrades 2014-08-08 20:42:29 +03:00
eugenp 2f20d855de maven work 2014-08-05 11:39:58 +03:00
eugenp 0d5c627ebc testing work in core java 2014-07-19 21:33:42 +03:00
eugenp 43cc23d2d0 maven spring upgrades 2014-05-24 11:24:44 +03:00
eugenp 158a138adb minor maven upgrades 2014-05-16 22:44:26 +03:00
eugenp 80c3ca190f maven upgrades, quick testing work 2014-05-07 11:55:30 +03:00
eugenp 9ab1ef8dfa maven upgrades 2014-04-04 17:14:48 +03:00
eugenp ebb75abf66 maven upgrades, new way of configuring properties for persistence 2014-03-26 12:34:22 +02:00
eugenp d195c3a096 maven upgrades 2014-03-15 12:10:49 +02:00
eugenp 512fb68c90 maven upgrades 2014-02-13 00:29:52 +02:00
eugenp c905b21ffc maven upgrade 2014-01-11 17:48:59 +02:00
eugenp 458db43570 maven added dependency and IO work 2014-01-06 21:35:23 +02:00
eugenp a4a6fcf569 mostly doc and minor cleanup work 2013-12-26 22:08:32 +02:00
eugenp 22ebf4a218 collections work 2013-12-24 16:46:15 +02:00
eugenp d9b9c30aa2 general cleanup and initial new project 2013-12-24 15:11:18 +02:00