Commit Graph

145 Commits

Author SHA1 Message Date
Harry9656 77671ade4b JAVA-5683: Difference Between List.of and Arrays.asList (#12564)
Co-authored-by: Harpal Singh <harpal.singh@kaleyra.com>
2022-08-23 22:22:43 +01:00
Keerthi cdb19ff6d5 JAVA-12045 : move java concurrency ebook content code to common module (#12559)
* JAVA-12045 : move java concurrency ebook content code to common module

* JAVA-12045: addressed the review comments .. renamed package names and placed core-java-concurrency-simple module in pom.xml

* JAVA-12045: removed duplicate module after renaming java-simple-module to core-java-simple-module
2022-08-08 18:56:55 +05:30
sampadawagde 2b5179baba JAVA-13136: Fix formatting of POMs 2022-07-15 09:59:54 +05:30
mdabrowski-eu 40e42f8d45 BAEL-5557 Split a stream into parts (#12238)
* BAEL-5557 Split a stream into parts

* BAEL-5557 fix main pom.xml

* BAEL-5557 fix mvn profiles

* BAEL-5557 articles with equals and hashcode

* BAEL-5557 migrate assertions to assertj

* BAEL-5557 better assertions
2022-06-30 10:26:34 +01:00
sampadawagde 90ba68c233 JAVA-12730: readme changes 2022-06-26 16:52:45 +05:30
sampadawagde 16f7224c44 JAVA-12730: modify parent pom 2022-06-26 16:26:33 +05:30
tudormarc 20dc126a64 BAEL-5560 - checking even and odd numbers (#12388) 2022-06-24 09:27:48 +05:30
keerthigadde 7d17e565cf corrected deleted line 2022-06-03 15:43:09 +10:00
keerthigadde d5117336ed JAVA-12099 moved java-numbers modules to core-java-modules 2022-06-03 15:10:13 +10:00
Eric Martin 4f8d67b7c1 BAEL-5577: Moving code to core-java-collections-4 (#12210)
Co-authored-by: martine <martine@OLA-3NBL1N2.mshome.net>
2022-05-14 11:17:48 -05:00
Mateusz Szablak 7e5463390b BAEL 5414 - Java null check why use == instead of .equals() (#12124) 2022-05-05 08:50:19 +05:30
anuragkumawat 9990d103cd JAVA-11533 Move core-java related modules to core-java-modules (#12119)
* JAVA-11533 Move core-java related modules to core-java-modules

* JAVA-11533 Remove moved modules from old parent pom

* JAVA-11533 Updated Readme and pom of parent module

* JAVA-11533 Revert changes made to Readme of parent module

* JAVA-11533 Moved articles to respective submouldes
2022-05-04 20:15:22 +05:30
sampadawagde b8176a265a JAVA-10138 - Fix formatting of POMs 2022-03-13 14:48:44 +05:30
Elmar Mammadov e65fe9db25 BAEL-5350: Java - How to create new Entry (key, value) (#11817)
* BAEL-5350:
1. Added example usage of creating entries with Java itself
2. Added example usage of creating entries with Apache commons collecttions & Guava
3. Custom entry class and its usages

* BAEL-5350:
1. Created unit tests

* BAEL-5350:
1. simplifed assertion for java 9 entry creation

* BAEL-5350:
1. moved into core-java-collections-maps-4 module
2. updated custom entry class and its unit test
2022-02-26 09:54:07 +05:30
vaibhav007jain 1bf44ff8ef BAEL-5280: added code for ArrayIndexOutOfBoundsException. (#11772)
* commited initial code for hexagonal architecture

* Deleting to check in again

* Deleing to check in again

* Push first code for Hexagonal Architecture

* final code with UT for JSON to Java conversion

* removed hexagonal-architecture code from last commit

* BEL-5071 updated README

* BAEL-5071: Undo README changes and added a nested object in the JSON example.

* BAEL-5071: fixed whitespace/indentation in JsonToJavaClassConversion.java

* BAEL-5151: Added code for getting the first of a String

* BAEL-5151: Renamed Unit Test

* BAEL-5151: Moved the files from core-java-string-operations to core-java-string-operations-3

* BAEL-5151: Replaced tabs with white spaces.

* BAEL-5228: Adding code for approaches to concatening null string in java

* BAEL-5228: Moved file to correct folder and added a UT.

* BAEL-5228: corrected import statements.

* BAEL-5228: corrected last commit.

* BAEL-5228: removed extra import.

* BAEL-5228: renamed UT

* BAEL-5280: added code for ArrayIndexOutOfBoundsException.

* BAEL-5280: moved code for ArrayIndexOutOfBoundsException in a new module.

* BAEL-5280: Fixed tab/spaces in pom.xml.

* BAEL-5280: Fixed indentation in ArrayIndexOutOfBoundsExceptionDemoUnitTest.java.

Co-authored-by: Vaibhav Jain <vaibhav.ashokjain@vodafone.com>
2022-02-08 13:45:38 +05:30
Haroon Khan e1212155fe [JAVA-9895] Split concurrency-basic-2 module 2022-02-07 12:19:20 +00:00
ashleyfrieze 69e04d5ac0 BAEL-5354 Add improvement to cover JDK11 solution to the repeated string problem (#11756) 2022-01-30 21:49:04 -06:00
Krzysztof Majewski dcd9411cf3 BAEL-5076 Unix domain socket in Java 16 (#11493)
* BAEL-5076 Unix domain socket in Java 16

* BAEL-5076 Unix domain socket in Java 16

* BAEL-5076 Unix domain socket in Java 16

* BAEL-5076 Unix domain socket in Java 16

Co-authored-by: krzysztof <kmajewski@berg.technology>
2021-11-26 09:06:20 -08:00
kwoyke 7fb4216dd8 Merge branch 'master' into JAVA-8279-Split-or-move-core-java-module 2021-11-14 17:52:34 +01:00
sampadawagde b1fb2c34e4 JAVA-8282: added new module core-java-security-algorithms to parent pom 2021-11-14 11:08:05 +05:30
mikr 37eb10c68d JAVA-8279 Split or move core java module 2021-11-13 21:22:34 +01:00
Trying something new 4786fb5cf6 BAEL 4486 (#11353)
* BAEL 4486

Adding 2 files for BAEL 4486

* JAVA-4486, unit tests

Added Unit Test
Corrected the formatting using formatter.xml in eclipse

* BAEL - 4486

Renamed CrytoDriverIVTest.java to CryptoDriverIVTest.java
added core-security-3 module to pom.xml

* Update CryptoDriverIVUnitTest.java

Resubmitting CryptoDriverIVUnitTest

* BAEL - 4486

Removed Blank lines from CryptoDriver.java
2021-11-08 19:34:49 -06:00
chaos2418 64a134f05e JAVA-1665: updated parent-java's junit and surefire configurations 2021-11-03 09:03:23 +05:30
Dhawal Kapil 1ab0a19d25 Java 3590 (#11367) (#11380)
* Java 3590 (#11367)

* JAVA-3590: updating junit-jupiter dependency in the main pom.xml

* resolving unnecessary mockito stubbings exception

* adding junit-bom in dependency management

* fixing tests which were not getting discovered

* Revert "fixing tests which were not getting discovered"

This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263.

* fixing tests in ninja, open-liberty and spring-ejb

* removing junit4 dependency and replacing it with junit-vintage-engine

* removing junit4 dependency and replacing it with junit-vintage-engine in testing-modules, maven-modules and aws-lambda

* removing junit dependency and replacing it with junit-vintage-engine

* removing junit and replacing it with junit-vintage-engine

* fixing tests that were not getting discovered due to old version of junit:junit

* updated failsafe plugin configuration to skip integration tests in blade

* fixing tests that were not getting discovered due to old version of junit:junit

* fixing tests in libraries and libraries-2 modules

Co-authored-by: chaos2418 <>

* Java 3590 - fixing integration tests in restx and spring-5-webflux (#11382)

* JAVA-3590: updating junit-jupiter dependency in the main pom.xml

* resolving unnecessary mockito stubbings exception

* adding junit-bom in dependency management

* fixing tests which were not getting discovered

* Revert "fixing tests which were not getting discovered"

This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263.

* fixing tests in ninja, open-liberty and spring-ejb

* removing junit4 dependency and replacing it with junit-vintage-engine

* removing junit4 dependency and replacing it with junit-vintage-engine in testing-modules, maven-modules and aws-lambda

* removing junit dependency and replacing it with junit-vintage-engine

* removing junit and replacing it with junit-vintage-engine

* fixing tests that were not getting discovered due to old version of junit:junit

* updated failsafe plugin configuration to skip integration tests in blade

* fixing tests that were not getting discovered due to old version of junit:junit

* fixing tests in libraries and libraries-2 modules

* fixing integration tests in restx and spring-5-webflux

Co-authored-by: chaos2418 <>

Co-authored-by: chaos2418 <92030908+chaos2418@users.noreply.github.com>
2021-10-29 09:37:04 +05:30
Ralf Ueberfuhr 7b47645746 BAEL-5167: add sample key implementations and test the correct functionality and the performance of those keys in a HashMap (#11260) 2021-09-28 06:58:14 +03:00
freelansam fe7d2af8c0 JAVA-7178: Fix formatting of POMs (#11236)
* JAVA-7178: Fix formatting of POMs

* JAVA-7178: fix failing build
2021-09-20 00:04:26 +05:30
freelansam 32dde5b5d1 JAVA-6475: Fix formatting of POMs (#11087)
* JAVA-6475: Fix formatting of POMs

* correct build error
2021-08-03 00:27:15 +05:30
kwoyke 1910561a54 JAVA-5986: Cleanup pom.xml files (#11010)
Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-07-09 08:43:41 +05:30
kwoyke dee85d33c1 BAEL-5015: Add Java 9 example for readAllBytes (#10999)
Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-07-06 16:54:57 +02:00
devanshtrivedi5 2e6ba6c3a1 Grouping by collector java (#10986)
* Initial Commit - Ports and Adapters

* Restructured code to implement input and outbou ports and adapters

* Added tests for groupingBy Collector

* Revert "Initial Commit - Ports and Adapters"

This reverts commit 55152dea

* Added tests for groupingBy Collector

* reverting

* corrected typo

* used BDD naming strategy for tests

* Added a test for groupingByConcurrent

* added new module and package

* added core-java-streams-4 module in main pom.xml

* updated pom.xml and changed artifactId
2021-07-04 15:51:55 -07:00
Eric Martin 0fca8e3aea Merge pull request #10859 from bradhandy/master
Unit tests for non-capturing groups.
2021-06-12 09:52:23 -05:00
kwoyke f318cd05d9 BAEL-5000: Add split String by newlines examples (#10881)
* BAEL-5000: Add split String by newlines examples

* BAEL-5000: Exclude core-java-string-operations-3 from persistence-modules

* BAEL-5000: Update tests

Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-06-12 14:23:37 +02:00
bhandy be18bad873 Moving NonCapturingGroupUnitTestjava to new core-java-regex-2 module. 2021-06-12 00:25:19 -04:00
singhalak11 a626528201 BAEL-4987: new module for operators (#10800) 2021-05-27 18:58:53 +01:00
Benjamin Caure 4e96ddfa14 BAEL-4665: add text blocks to multiline strings test (#10777)
* BAEL-4665: add text blocks to multiline strings test

* BAEL-4665: move core-java-strings to jdk9 profile
2021-05-25 22:27:16 +02:00
sampadawagde 612752f52e JAVA-5223: Fix formatting of POMs (Part 2) 2021-05-06 18:01:55 +05:30
mdhtr daea725097 Create new module 2021-04-09 11:31:49 +02:00
Krzysztof Woyke f0dd323c50 JAVA-3578: Verify sub-modules - core-java-modules 2021-03-30 20:55:52 +02:00
Krzysztof Woyke 089da70fb0 JAVA-4931: Cleanup surefire config 2021-03-29 15:22:10 +02:00
Eric Martin 14aac09d18 Merge pull request #10509 from dstr89/feature/BAEL-4618-final-performance
Feature/bael 4618 final performance
2021-03-13 08:49:59 -06:00
Daniel Strmecki 4e88e662f6 BASE-4618: Use space 2021-03-11 11:28:49 +01:00
Daniel Strmecki f0ee9ddf02 BASE-4618: Add new module 2021-03-06 09:02:04 +01:00
Umang Budhwar 52db422b6c BAEL-4695 - Evaluating a Math Expression in Java (#10345)
* Added code for checking if a class is abstract or not.

* Renamed test name as per review comments.

* BAEL-4695 - Added code to evaluate math expressions.

* BAEL-4695 - Added test case for math function.

* BAEL-4695 Added consistent examples and entry in parent pom.

* BAEL-4695 - Added more examples
2021-01-14 17:04:00 -06:00
Eric Martin c2165fa4bc Merge pull request #10351 from SmartyAnsh/master
BAEL-4472- Binary Semaphore vs a ReentrantLock - Unit test added
2021-01-09 20:53:53 -06:00
MeenaGawande 567e910903 [BAEL-4720] Java File.separator vs File.pathSeparator (#10330)
* [BAEL-4720] Java File.separator vs File.pathSeparator

Removed src code and modified junit tests

* [BAEL-4720] Java File.separator vs File.pathSeparator

Code formatting: Removed extra spaces in the code

* [BAEL-4720] Java File.separator vs File.pathSeparator

Added more junit tests

* [BAEL-4720] Java File.separator vs File.pathSeparator

Added new module core-java-io4 and moved the code from core-java-io3 module.

Co-authored-by: MeenaGawande <MeenaGawande@users.noreply.github.com>
2021-01-06 18:06:07 +00:00
Anshul BANSAL bbdcf57afb BAEL-4472- Binary Semaphore vs a ReentrantLock - new module added 2021-01-03 22:52:18 +02:00
Jonathan Cook da8a8f7fa2 Merge pull request #10258 from dstr89/feature/BAEL-4717-hashmap-linkedlist-arraylist
Feature/bael 4717 hashmap linkedlist arraylist
2020-12-13 15:02:17 +01:00
Daniel Strmecki c02a205220 BAEL-4717: add new module to parent pom 2020-12-05 09:52:32 +01:00
Loredana Crusoveanu c54f2d6102 Merge pull request #10259 from vatsalgosar/BAEL-4301
BAEL 4301
2020-11-27 12:57:29 +02:00
unknown 7bb2282d24 BAEL-4301
- Created a new module core-java-char in core-java-modules modules
- Added Unit Tests for Character#isAlphabetic and Character#isLetter methods
2020-11-17 16:32:30 +05:30
Kumar Chandrakant 0794a1ad1b Adding source code for article tracked under BAEL-4576 (#10203)
Co-authored-by: CHANDRAKANT Kumar <kumar.chandrakant@soprabanking.com>
2020-10-29 06:11:46 +01:00
mikr ae5ee571b9 Java-2394 Create default and integration profile for JDK-9 and above modules 2020-09-10 01:08:03 +02:00
davidmartinezbarua a9ae4595dc Merge pull request #9853 from rutujavjoshi/master
BAEL-4193 -updated files
2020-08-19 01:22:16 -03:00
Rutuja Joshi 10d571fd1d pom : added new module core-java-exceptions-3
added new module core-java-exceptions-3
2020-08-17 19:37:28 +05:30
Amit Pandey 2bad67ff38 added modules in parent (#9842)
* added modules in parent

* commented failed modules in pom
2020-08-17 10:33:20 +05:30
Amit Pandey 62432a2532 Java 2387 (#9882)
* fix junit test cases

* added module in parent build
2020-08-17 10:30:19 +05:30
mikr 34d2e20e56 JAVA-2096 Update "Create File" article 2020-07-15 12:33:27 +02:00
Eric Martin db13e0ec44 Merge pull request #9608 from SmartyAnsh/BAEL-4175_Comparing_version_Strings_in_Java
BAEL-4175 - comparing version strings in java
2020-07-13 10:54:11 -05:00
Umang Budhwar 1a8969f376 BAEL-4089: Accesing private properties of a class in Java (#9441)
* Added code to access private properties of a class

* Removed abstractions to increase simplicity.

* Added unit test cases in givenX_whenY_thenZ format.

* Included test cases for NoSuchFieldException, NoSuchMethodException and
NullPointerException.

* Added new test case for IllegalArgumentException

* Removed test cases for getting private methods

* Added test cases for accessing all data types.

* Segregated test cases for primitive and object types. Added test case
for Autoboxing.

* Condensed fields by removing extra space.

* Added test case for widening.

* Refactored test cases to throw generic Exception

* Created new module core-java-reflection-2

* Revert "Created new module core-java-reflection-2"

This reverts commit 9568663bb2e176eacc2119e605be76577f90b9c6.

* Added new module core-java-reflection-2

* Removed README.MD
2020-07-12 10:50:54 -05:00
rpvilao fe2bab2224 Merge branch 'master' into BAEL-4300 2020-07-10 09:51:15 +01:00
Anshul BANSAL 7f16e3e80e BAEL-4175 - moved code to a new module - core-java-string-operations-3 2020-07-09 10:13:30 +03:00
Jordan Simpson daf844520f Moved pom module next to the other core-java-lang-x modules. 2020-07-08 10:54:58 -05:00
Loredana Crusoveanu 7ab2f437ee Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
Jordan Simpson 85acab7915 Added code examples for BAEL-4300 article. 2020-06-25 15:16:48 -05:00
François Dupire 2bdba48843 [JAVA-1657] Junit and Maven Surefire Plugin upgrade in core-java-modules (#9301)
* [JAVA-1657] core-java-modules JUnit and Maven Surefire Plugin upgrade

* [JAVA-1657] Changed sub modules parents to core-java-modules and core-java-modules to parent-java

* [JAVA-1657] Upgraded JUnit Jupiter version

* [JAVA-1657] Get JUnit 4 dependency transitively
2020-05-25 19:45:48 +05:30
dupirefr b117f4ccd6 [JAVA-621] Flattened modules hierarchy 2020-04-28 08:02:13 +02:00
dupirefr fc303de35f [JAVA-621] Obsolete modules deletion
* Delete core-java-lang-oop module (remaining code
was duplicate of core-java-lang-syntax where it really belonged)

* Moved code from https://www.baeldung.com/java-eclipse-equals-and-hashcode to core-java-lang where it belong

* Delete core-java-lang-oop-2 module

* Delete core-java-lang-oop-3 module

* Delete core-java-lang-oop-4 module
2020-04-28 08:02:09 +02:00
dupirefr e25ce92d5e [JAVA-621] Creating core-java-lang-oop-modules module 2020-04-28 08:01:44 +02:00
dupirefr 91922d6553 [JAVA-616] Cleaning code
* Removed core-java-arrays* modules

* Updated core-java-module/pom.xml
2020-04-17 21:01:18 +02:00
dupirefr 50530b81b4 [JAVA-616] core-java-arrays-operations-advanced
* Creation

* Moved code from https://www.baeldung.com/java-array-copy

* Moved code from https://www.baeldung.com/java-arrays-deepequals

* Moved code from https://www.baeldung.com/java-array-sum-average

* Moved code from https://www.baeldung.com/java-array-intersection
2020-04-17 21:01:16 +02:00
dupirefr e36771a763 [JAVA-616] core-java-arrays-operations-basic
* Creation

* Moved code from https://www.baeldung.com/java-initialize-array

* Moved code from https://www.baeldung.com/java-common-array-operations

* Moved code from
https://www.baeldung.com/java-add-element-to-array-vs-list

* Moved code from https://www.baeldung.com/java-array-contains-value

* Moved code from https://www.baeldung.com/java-array-remove-element

* Moved code from https://www.baeldung.com/java-array-remove-first-element

* Moved code from https://www.baeldung.com/java-array-add-element-at-the-end
2020-04-17 21:01:13 +02:00
dupirefr dcd863f5d6 [JAVA-616] core-java-arrays-convert
* Creation

* Moved code from https://www.baeldung.com/java-convert-float-to-byte-array

* Moved code from https://www.baeldung.com/java-stream-to-array
2020-04-17 21:01:10 +02:00
dupirefr 6af4961a79 [JAVA-616] core-java-arrays-multidimensional
* Creation

* Moved code from https://www.baeldung.com/java-jagged-arrays

* Moved code from https://www.baeldung.com/java-loop-diagonal-array
2020-04-17 21:01:08 +02:00
dupirefr 0593fce8a3 [JAVA-616] core-java-arrays-guides
* Creation

* Moved code from https://www.baeldung.com/java-arrays-guide

* Moved code from https://www.baeldung.com/java-util-arrays
2020-04-17 21:01:05 +02:00
dupirefr 29a2f0ece1 [JAVA-616] core-java-arrays-sorting
* Creation

* Moved code from https://www.baeldung.com/java-sorting-arrays

* Moved code from https://www.baeldung.com/java-check-sorted-array

* Moved code from https://www.baeldung.com/java-invert-array

* Moved code from https://www.baeldung.com/java-arrays-sort-vs-parallelsort
2020-04-17 21:01:03 +02:00
sampadawagde effbd4cb6e JAVA-620: parent pom changes to include new module 2020-04-13 15:10:47 +05:30
sampadawagde cb7bd8d2f2 JAVA-1188: Moved modules to core-java-modules 2020-04-07 14:50:03 +05:30
kwoyke b2a07b9fdf BAEL-2681: Upgrade core-java-collections-set to Java 11 (#8998)
* BAEL-2681: Upgrade core-java-collections-set to Java 11

* BAEL-2681: Comment out core-java-collections-set from the pom.xml
2020-03-31 08:54:14 +02:00
sampadawagde 1aba93f3aa JAVA-626 : added new module to parent module's pom 2020-03-22 16:57:48 +05:30
amit.pandey 1f4a4e24ec pom formatting 2020-03-15 18:22:24 +05:30
eric-martin b0ad30b803 BAEL-3583: Added the core-java-security-2 module 2020-03-13 22:50:25 -05:00
Jonathan Cook d523011fd0 Merge pull request #8592 from AlexFlorinHriscu/master
BAEL-3502 Arrays.deepEquals method examples.
2020-02-17 11:27:53 +01:00
Florin Hriscu 70799d694f BAEL-3502 - Format core-java-modules pom.xml file. 2020-02-16 17:45:08 +02:00
Florin Hriscu 347a2b2b4f BAEL-3502 - Format pom.xml file. 2020-02-16 17:43:28 +02:00
Florin Hriscu dcccf21e0d BAEL-3502 Apply correct formatter. 2020-02-16 17:34:31 +02:00
Florin Hriscu af1fd4e1b0 BAEL-3502 Bind core-java-arrays-3 module to parent module. 2020-02-16 00:33:48 +02:00
amit.pandey 3af7fbf8a7 added newly added core-java-regex module in parent pom 2020-02-05 19:57:52 +05:30
Dhawal Kapil 08e3c1c6b6 BAEL-20665 Submodules not building
- Further fixes
2020-01-12 23:40:28 +05:30
Dhawal Kapil 3cfc8d2163 Merge branch 'master' of https://github.com/eugenp/tutorials into task/BAEL-20665
# Conflicts:
#	core-groovy-2/src/test/groovy/com/baeldung/metaprogramming/MetaprogrammingUnitTest.groovy
#	core-java-modules/pom.xml
#	pom.xml
2020-01-12 20:55:19 +05:30
Dhawal Kapil e128eb619a BAEL-20655 Which sub-modules aren't being built?
- Added several missing modules in the main pom.xml
- Fixed the modules list for all the profiles
- Commented several test cases so that all modules can run and be included in the pom.xml
- Moved child modules from main pom to parent modules pom
2020-01-10 17:22:13 +05:30
Krzysztof Woyke da78ae7cbe Merge remote-tracking branch 'upstream/master' into BAEL-20573 2020-01-03 09:21:03 +01:00
kwoyke d5681eb57c BAEL-3732: Move core-java-security-manager into core-java-security (#8460)
* BAEL-3732: Move core-java-security-manager into core-java-security

* BAEL-3732: Teardown the security manager to not interfere with other tests
2020-01-03 08:59:33 +02:00
Krzysiek eba38ea1d8 BAEL-20573: Rename core-java-date-operations to core-java-date-operations-2 2020-01-02 22:45:18 +01:00
catalin-burcea 153a3923f0 [BAEL-18783] - Fix formatting of POMs 2019-12-06 11:40:56 +02:00
Laurentiu 7aa0cef657 BAEL-3375 Working with Dates before Java 8 2019-10-31 21:18:02 +02:00