Feature/bael 5934 (#14120)

* Merge fork with source (#6)

* JAVA-20280: remove wrong property (#13874)

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

* Update README.md

[skip ci]

* JAVA-13721 Format, Fix Package, Upgrade version of all the articles

* JAVA-13721 Moved mockito-simple to JDK9+ profiles

* JAVA-20278. Please point me to the tutorial code #13768. (#13923)

Co-authored-by: jogra <joseph.sterling.grah@miles.no>

* BAEL-6352: Check if the First Letter of a String is a Number (#13883)

* [BAEL-6434_charAndString] Difference Between "char" and "String" (#13907)

* [JAVA-18185] Upgrade groovy version (#13926)

* Update code for Overview of NLP Libraries in Java (#13912)

* Update code for Overview of NLP Libraries in Java

* Update code for Overview of NLP Libraries in Java

* Update code for Overview of NLP Libraries in Java

* BAEL-6319 Hibernate 6 Boolean Converters (#13894)

Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>

* BAEL-6194 Retrieve the Value of an HTML Input Using Selenium WebDriver in Java (#13898)

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* JAVA-20898 Check Article Code Matches GitHub

* Java 15032 (#13913)

* JAVA-15032: Changes made for adding the test cases custom userAgent in request  header

* JAVA-15032: Changes made for adding the test cases custom userAgent in request  header

* JAVA-15032: Changes made for incorporarting review comments

* JAVA-20931 Commented out spring-boot-3 for now because of JDK 19 requirement (#13936)

* BAEL-6325 Create core-java-lang-oop-constructors-2 (#13933)

* BAEL-5915 Added different ways to create an object

* BAEL-6325 Create core-java-lang-oop-constructors-2

* BAEL-6435: Reverse a String in Java 8 using Lambda and Streams (#13910)

* [JAVA-20456] Upgraded jackson version (#13871)

* [JAVA-20457] Upgraded springdoc version (#13872)

* [JAVA-20459] Upgraded org.json to latest version (#13869)

* BAEL-6327 - Find the index of an element in a Java array (#13844)

* JAVA-20898 Move article url from javaxval-2 to javaxval

* Java 20643 (#13914)

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: changes made for removing web-modules from default

* [BAEL-6436_printQuotesAroundString] Print "" Quotes Around a String in Java (#13925)

* JAVA-18113 Update spring-boot-swagger-keycloak module (#13506)

* JAVA-18113 Update spring-boot-swagger-keycloak module

* JAVA-16612: Mock Final Classes and Methods with Mockito article; MockMaker improvement (#13890)

* BAEL-6254: Scoped values (#13756)

* Added the code for "The difference between BufferedReader and FileReader". (#13942)

* BAEL-5814 - Is CompletableFuture Non-blocking (#13917)

* BAEL-5814 - Is CompletableFuture Non-blocking

* Fix the formatting

* BAEL-6326: Spring Boot H2 JdbcSQLSyntaxErrorException expected identifier (#13843)

* BAEL-6320: added code support for the @NaturalId article

* JAVA-16946: comment spring-jooq module from persistence-modules. (#13951)

* JAVA-20555 use Java Base64 instead of deprecated Spring Base64Utils (#13941)

* [BAEL-6105] code for list to page article

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* [BAEL-6105] code for list to page article

* [BAEL-6105] refactor test names

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* BAEL-6438 Code for the Find the longest word in a given string article

* BAEL-6332: Calling Non-Static Method In Static Method In Java (#13940)

* [BAEL-6485_RM-Punctuation] Remove Punctuation (#13946)

* BAEL-6410 (#13919)

* BAEL-6410 | Article code

* Adding consumer code for article

* BAEL-6046 MongoDB - Field Level Encryption (#13859)

* [BAEL-6253] record equals hashcode (#13958)

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode test case

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>

* [compByteArrays] Comparing Two Byte Arrays in Java (#13935)

* Remove Comments and update prefix.

* Uploading File using Selenium WebDriver in Java (#13947)

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* [rajkishorraj185@gmail.com] Lombok equalsandhashcode annotation (#13717)

* example code for equalsandhashcode annotation

* moving codes to lombok-2

---------

Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>

* Match prefix same as draft.

* JAVA-19152: fix intermittently failing RequestProcessorUnitTest (#13957)

* [JAVA-19362] Upgraded itextpdf to 5.5.13.3 (#13961)

* JAVA-16946: disable unit test for core-java-lang-oop-modifiers module for maintenance (#13968)

* BAEL-6444 | Added P6Spy logging in spring boot observation module. (#13965)

* BAEL-6444 | Added P6Spy logging in spring boot observation module.

* BAEL-6444 | Added Find with name query and custom log format now working

* BAEL-6444 | Formatting

* BAEL-6444 | Renaming junit files

* BAEL-6444 | Added start class

* BAEL-6444 | Actualized code with Article

* BAEL-6444 | Actualized code with Article

* BAEL-6444 | redded commit()

* BAEL-6444 | BDD naming strategy

* BAEL-6501 Update article "The producer-consumer problem example in Java" (#13973)

* BAEL-6501 Changed the synchronization block to use the DataQueue

* BAEL-6501 Fixed the platform agnostic new lines

* BAEL-6501 Moved ID increment to a static method

* BAEL-6501 Added a logger

* Add files via upload (#13978)

* JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975)

* BAEL-6250: Example code for Get All Caffeine Cache Keys article (#13806)

* BAEL-6185 reuse string builder performance (#13791)

* BAEL-6444 | Removed copyright commit (#13987)

* JAVA-18648 Review the time of the build - Week 9 - 2023 (#13954)

* JAVA-20277 GitHub Issue: Regarding article Introduction to JsonPath (#13939)

* BAEL-6197 - Execute Tests Based on Active Profile with JUnit 5 (#13776)

* BAEL-6255 - Run a Spring Boot application in AWS Lambda

* BAEL-6255 - Run a Spring Boot application in AWS Lambda

* fix on template.yaml

* fix on template.yaml

* removed log from test

* resolved issues reported on PR

* BAEL-6277 - A Guide To Spring Cloud Azure

First commit

* BAEL-6277 - A Guide To Spring Cloud Azure

Added to README.md the steps to create the secrets

* BAEL-6277 - A Guide To Spring Cloud Azure

Added the integration Azure Key Vault Properties

* BAEL-6277 - A Guide To Spring Cloud Azure

Added the integration Azure Key Vault Properties

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

Added one level package keyvault

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

removed target release version

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix compilation of NoSuchElementException

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix pom.xml

* Revert "BAEL-6277 - A Guide To Spring Cloud Azure Key Vault"

This reverts commit 1cca1d0d692646001a6d7de106f3a37fb22839ce.

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix pom.xml

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

downgrade version to fix jenkins pipeline error

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

comment run on main class

* Revert "reset last commit"

This reverts commit c557fad67f1c15bb384f0af5781430a45121a838.

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#First push

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

Revert for new pr

* reset last commit

* reset last commit

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#Remove redundant test

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#Format fix

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix from review

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix from review

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix test name

---------

Co-authored-by: Cesare <cesare.valenti@hotmail.com>

* [scanner-to-array] Saving Java Scanner Input to an Array (#13969)

* BAEL-6342 JUnit Test Class for Null and Empty String (#13963)

* JAVA-20630 upgrade maven war plugin to be compatible with JDK 11 and 17 (#13945)

* JAVA-20630 upgrade maven war plugin to be compatible with JDK 11 and 17

* JAVA-20630 code format

* JAVA-20630 don't fail if there's no web.xml and using Java based configuration while building a war file

* JAVA-20630 avoid unneeded formatting

* JAVA-20630 change order of modules to solve flaky tests

* fix module order

* add dependent module

* add parent

* JAVA-20828 Fixing the core-java-exclusions module (#13997)

* Upgrade spring.vault.core from 2.3.2 to 3.0.2 (#13977)

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Create README.md

[skip ci]

* Update README.md

[skip ci]

* Title: Regular Expression: \z vs \Z Anchors in Java (#13994)

Hello,
This commit related to the article entitled "Regular Expression: \z vs \Z Anchors in Java"

* JAVA-20828: Changes made for updating blade module to java 11 (#13929)

* JAVA-20828: Changes made for updating blade module to java 11

* JAVA-20828: Changes made for updating bootique,dropwizard,google-web-toolkit  module to java 11

* JAVA-20828: Changes made for updating bootique,dropwizard,google-web-toolkit  module to java 11

* JAVA-20828: Adding jakarta-ee to jdk-9 profile

* BAEL-6334 Add example code for checking if a list element is in another list

* JAVA-20610 Upgraded parent-boot-2 to 2.7.11 (#13944)

* JAVA-20163 Upgrade hibernate specific modules to JDK 11 (#13817)

* JAVA-20163 Migration hibernate-annotations

* JAVA-20163 Migrate hibernate-queries

* JAVA-20163 Migrating hibernate-mapping

* JAVA-20163 rename reserved keywords, update inheritance example

* JAVA-20163 Migrate hibernate-ogm module to the jdk 8 because hibernate-ogm doesn't support jakarta API

* JAVA-20163 Migrate hibernate-enterprise module

* JAVA-20163 Add update to HibernateExceptionUnitTest#whenQueryExecutedWithUnmappedEntity_thenMappingException

* JAVA-20163 Set explicit version for hibernate 6.1.7.Final in the hibernate-queries module

* JAVA-20163 Fix failed test with port that already exists (giving another port 8088)

* JAVA-20163 Fix other location after changing the port

* JAVA-20163 Remove duplicate Unit Test

---------

Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>

* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11 (#13952)

* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11

* JAVA-20165 Migrating spring-boot-persistence-mongodb

* JAVA-20165 Migrating spring-boot-persistence-mongodb-2

* JAVA-20165 Migrating spring-boot-persistence-mongodb-3

* JAVA-20165 Adding latest version for jdbi in spring-boot-persistence-2 module

---------

Co-authored-by: timis1 <noreplay@yahoo.com>

* [Check If a Specified Key Exists in a Given S3 Bucket using Java] added code examples (#13775)

* [Check If a Specified Key Exists in a Given S3 Bucket using Java]] added code examples for

change test name

remove link from README.md

* - used env variables for AWS credentials
- used codestyle profile of baledung

* [os-to-is] Convert an OutputStream to an InputStream (#13992)

* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue a… (#13851)

* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue and LinkedBlockingQueue

* BAEL-6264 added unit test case

* modified test case

* BAEL-6264 deleted BlockingQueueImplExample file not needed anymore

* BAEL-6264 code review changes moved class file to different module

---------

Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>

* Add code examples for "Opening a New Tab Using Selenium WebDriver in Java" (#14001)

Add code examples for "Opening a New Tab Using Selenium WebDriver in Java"

* BAEL-6320: format & code review

* JAVA-16946 Upgrade h2 database version for remaining modules (#13976)

* Add java interface single implementation examples (#13972)

* Fix formatting issues, refactor the `profiles` word in the properties.

* Add files via upload (#14006)

* JAVA-20828 Fixed module name (#14018)

* fix SeleniumOpenNewTabLiveTest (#14019)

* BAEL-6493 - Read last N messages from a Kafka Topic (#14020)

* BAEL-6398: Java PrintStream to String (#13998)

* Revert "JAVA-20280: remove wrong property (#13874)" (#14021)

This reverts commit 561e893e86d9c51b1e61818f5450d6194d9959fd.

* Hashing with Argon2 in Java (#14009)

* Hashing with Argon2 in Java

* Hashing with Argon2 in Java

* JAVA-13721 Fixing the formatting

* JAVA-13721 Further formatting of files

* BAEL-4369: Multiple ways of declaring dependency versions in Gradle (#13825)

* BAEL-6246 Code for the article Send MultipartFile Request with RestAs… (#13803)

* BAEL-6246 Code for the article Send MultipartFile Request with RestAssured

* Fix code style in rest assured integration tests

---------

Co-authored-by: thibault.faure <thibault.faure@mimacom.com>

* Bael 4582: Custom Authentication using shared secret (#13801)

* Spring custom security filter add

* Integration Tests add

* Add Project into parent pom

* refactor code

* refactor code

* remove .env and refactor code

* refactor code

* exclude auto configuration

* Refactored code

* removed ssl certificate for security

* Set session management to statelees

* Refactor tests

* Refactor authentication logic

* Refactor authentication logic

* Refactor authentication logic

* Remove unused code

* Remove unused code

* Remove unused appconfig

* disable AWSS3ObjectIntegrationTest due to need real credentials (#14028)

make AWSS3ObjectIntegrationTest manual

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* JAVA-20828: changes made for resolving botique module (#14027)

* [JAVA-20626]Moved vertx-modules to jdk9-and-above profile + upgraded vertx version to 3.9.15 (#13960)

* [JAVA-20633  Clean up modules (#14024)

* add value of comparision

* [BAEL-6339] custom iterator with testcases (#14038)

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>

* BAEL-6246 Fix AppControllerIntegrationTest (#14039)

Co-authored-by: thibault.faure <thibault.faure@mimacom.com>

* JAVA-20946 Renamed HttpBinServiceUnitTest to LiveTest (#14041)

- Since it is making actual live request to httpbin.org

* JAVA-21186 Fix references to parents - Week 21 - 2023 (#14036)

* JAVA-20630 move the jws module to  *-jdk9-and-above profiles (#14030)

* JAVA-20631 move Jetbrains module to *-jdk9-and-above profiles (#14029)

* JAVA-20631 move Jetbrains module to *-jdk9-and-above profiles

* JAVA-20631 fix parent modules so that the project parent (pom.xml) can be built without error

* BAEL-5711: Securing Spring Boot API with API key and secret (#14015)

* #bael-5711: add source

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: remove extra space

---------

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>

* BAEL-6334 Improve test names and typos

* BAEL-6179: Add Actuator sample without Spring Boot (#14032)

* BAEL-6179: Add Actuator sample without Spring Boot

* BAEL-6179: Simplify custom health indicator

* [JAVA-20624] Moved static-analysis module to jdk9-and-above-profile (#14026)

* change return type to optional

* Title: Array vs List Performance in Java (#14034)

This commit related to the article entitled "Array vs List Performance in Java".

* BAEL-6428 Make a Method Execute Only Once in Java

* 20616 (#14023)

* [JAVA-20616] Upgraded spring-spel module to jdk9-and-above profile

* [JAVA-20616]  Upgraded spring-websockets module to jdk9-and-above profile

* [JAVA-20616]  Upgraded spring-shell module to jdk9-and-above profile

---------

Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>

* JAVA-21106: Adding javax-servlets module to jdk9 and above (#13974)

* JAVA-21106: Adding javax-servlets module to jdk9 and above

* JAVA-21106: Changes made for adding the method for runt he application

* JAVA-21106: Changes made for adding javax-servlets-2 modules to jdk-9 and above

* JAVA-21106: Changes made for adding linkrest  modules to jdk-9 and above

* JAVA-21106 : Changes made for adding jee-7 and ninija in default-jdk9-and-above profile

* JAVA-21106 : Changes made for adding resteasy,spark-java,struts-3,vraptor,wicket in default-jdk9-and-above profile

* JAVA-21106 : Changes made for removing ninja module

* JAVA-21106 : Changes made for removing ninja module fro  jdk-9 and above

* JAVA-21106: Changes made for cleaninhg pom.xml

* JAVA-21106: FIXING MAVEN VERISON FOR WICKET

* Java 20277 (#14046)

* JAVA-20277 GitHub Issue: Regarding article Introduction to JsonPath

* JAVA-20277 Code Review Changes

* JAVA-20167 Upgrade spring-data hibernate with external libraries specific modules to JDK 11 (#14022)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-20166 Migrating spring-date-eclipselink (#13959)

* JAVA-20166 Migrating spring-date-eclipselink

* JAVA-20166 Fix failed tests address already bind

* JAVA-20166 Migrating spring-date-couchbase-2

* JAVA-20166 Replace with optional instead of returning null

---------

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11 (#13900)

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11

* JAVA-20164 Migrating java-jpa-2

* JAVA-20164 Migrating jnosql-artemis

* JAVA-20164 Migrating querydsl

* JAVA-20164 Migrating r2dbc

* JAVA-20164 Migrating redis

* JAVA-20164 Fixing test JPATextUnitTest#givenExam_whenSaveExam_thenReturnExpectedExam

* JAVA-20164 Fixing givenIdentityStrategy_whenCommitTransction_thenReturnPrimaryKey

* JAVA-20164 Changes after review

* JAVA-20164 Migrating java-cassandra to jdk8

* JAVA-20164 Fix legacy mode error

* Update pom.xml

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>

* BAEL-5905 move article

* BAEL-5947: Moving a project to a different package (#14054)

* Revert "feat: BAEL-5947 External Debugging with JMXTerm (#13847)"

This reverts commit ae04ab2510a5eb2e7b8c57e14474c6edadeb6883.

* BAEL-5947: Moving a project to a different package

* BAEL-4615: Create and Detect Memory Leak in Java (#14060)

* BAEL-6086: Customize WebFlux Exceptions in Spring Boot 3 (#13948)

* BAEL-6086: Added code for webflux default and custom exception along with Unit Tests

* BAEL-6086: added missing import

* BAEL-6086: reformatting

* BAEL-6086: reformatted code

---------

Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>

* BAEL-5575 (#14016)

* BAEL-5575

First commit of the example for the article:
https://drafts.baeldung.com/wp-admin/post.php?post=153774&action=edit

* BAEL-5575

Adjusted pom.xml

* BAEL-5575

Formatted source code

* BAEL-5575

Removed unused import

* BAEL-5575

Renamed UT to follow: https://docs.google.com/document/d/1iIeSPuYFG-jEtB8UbcxQnn2AI3OR2LWlnisNo2NUCL8/edit

* BAEL-5575

Modified pom.xml to define versions in  properties  as stated in:
https://docs.google.com/document/d/1iIeSPuYFG-jEtB8UbcxQnn2AI3OR2LWlnisNo2NUCL8/edit

* BAEL-5575

Changes checking the commands:
* mvn clean install
* mvn clean install -Dgib.enabled=false

* BAEL-5575

Set GB as the base language

* BAEL-6094 (#14043)

* Inital Commit for BAEL-6094

* Added the test

* Updated the test

* Convert Hashmap to JSON object in Java (#14070)

* Convert Hashmap to JSON object in Java

This commit is related to the article entitled "Convert Hashmap to JSON object in Java"

* Convert Hashmap to JSON object in Java

This commit is for the article "Convert Hashmap to JSON object in Java"

* Array vs List Performance in Java (#14078)

This commit is related to the article entitled "Array vs List Performance in Java"

* Bael-6331: Adding changes for creating and checking empty streams (#14047)

* BAEL-6331: Create EmptyStreams.java

* BAEL-6331: Create EmptyStreamsUnitTest.java

* JAVA-20163 Fix failed integration test with date creation comparison (#14080)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-21440: Changes made for upgrade jooby module to 2.16.1 to make j… (#14064)

* JAVA-21440: Chnages made for upgrade jooby module to 2.16.1 to make java-17 compatable

* JAVA-21440: commenting redis code as this will only work in the local or infra should have a redis setup

* JAVA-21440 Minor cleanup (#14084)

* Delete README.md

* removed optional specific function

* changing unit test class name

* BAEL-6250: refactor: Move to spring-caching-2 since spring-caching is full

* Update README.md

* Update README.md

* BAEL-6460: Why is Scanner skipping nextLine() after using other next functions? (#14079)

* changing branch

* BAEL-6334 Make object properties example clearer

* [BAEL-6344] address PR comment

* JAVA-21305 : Changes made for adding ratpack module to jdk9-and above… (#14012)

* JAVA-21106 : Changes made for adding ratpack module to jdk9-and above module

* JAVA-21106 : Changes made for adding java-lite module to jdk9-and above module

* JAVA-21305: Changes made for cleaninhg pom.xml

* JAVA-21305: Changes made for cleaning pom.xml

* BOSS-21305: changes made for adding ninja in jdk9 above modeule

* JAVA-21305: Changes made as per review comments

* JAVA-21305: Changes made as per review comments

* JAVA-21305: Changes made as per review comments

* [JAVA-21134] (#14045)

* [JAVA-21134] Removed external repository from jgit module

* [JAVA-21134] Removed external repository from aws-miscellaneous module + upgraded dynamodblocal version

* [JAVA-21134] Removed external repository from apache-tapestry module

* TASK-20628 (#14074)

* [TASK-20628] Moved xml module to jdk9-and-above profile

* [TASK-20628] Moved xml-2 module to jdk9-and-above profile

* [JAVA-15027]Upgraded follow redirects for apache http client + moved … (#14092)

* [JAVA-15027]Upgraded follow redirects for apache http client + moved older version to apache-httpclient4 module

* [JAVA-15027] Added test case

* BAEL-6508 Code for the Solving Gson Parsing Errors article

* JAVA-21189: Formatting pom.xml modules starting from KLM (#14096)

* JAVA-21189: Formatting pom.xml modules starting from NOPQR (#14097)

* JAVA-21189: Formatting pom.xml modules starting from NOPQR (#14097)

* java-20079: upgrade apache-spark module libraries (#14087)

* [scanner-with-spaces] how to take input as String with spaces in Java… (#14044)

* [scanner-with-spaces] how to take input as String with spaces in Java using Scanner?y

* [scanner-with-spaces] fix typo

* [output-to-file] Write Console Output to Text File in Java (#14082)

* [output-to-file] Write Console Output to Text File in Java

* [output-to-file] rebase on the master

* Convert Hashmap to JSON object in Java (#14110)

This commit is for Convert Hashmap to JSON object in Java

* Generating Javadoc with Gradle (#14091)

* Generating Javadoc with Gradle

* Generating Javadoc with Gradle

* Generating Javadoc with Gradle

* BAEL-6179: Fix readme (#14088)

* BAEL-6179: Add Actuator sample without Spring Boot

* BAEL-6179: Simplify custom health indicator

* BAEL-6179: Fix description in README.md

* JAVA-21189:  changes made for formatting modules starting from S (#14106)

* JAVA-21189:  changes made for formatting modules starting from TVWX (#14107)

* JAVA_21305: Changes made for fix the Integration test faliures (#14113)

* JAVA-20164 Fix .._SEQ.NEXTVAL error (#14109)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-15022 (#14099)

* [JAVA-15022] Moved 4.5 version code to apache-httpclient4 module

* [JAVA-15022] Upgraded code to 5.x version

* Array vs List Performance in Java (#14114)

This commit is related to the article entitled "Array vs List Performance in Java"

* BAEL-6461: What's the difference between Scanner next() and nextLine() methods? (#14057)

* JAVA-19670: changes made for upgrading jenkins module to jdk-9 above (#14105)

* JAVA-19670: changes made for upgrading jenkins module to jdk-9 above

* JAVA-19670: Changes made for adding jenkins-modules in jdk-9 and above profile

* JAVA_21106: Changes made for fixing test cases for jee-7 (#14115)

* Bael 5711: Securing Spring Boot API with API key and secret (#14102)

* #bael-5711: add source

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: add custom message

* #bael-5711: refactor return null

---------

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>

---------

Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
Co-authored-by: 3hsan <56245694+ehsansasanian@users.noreply.github.com>
Co-authored-by: edizor <113095366+edizor@users.noreply.github.com>
Co-authored-by: Vini <34344290+vinipx@users.noreply.github.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
Co-authored-by: jsgrah-spring <jsgrah@hotmail.com>
Co-authored-by: jogra <joseph.sterling.grah@miles.no>
Co-authored-by: Azhwani <13301425+azhwani@users.noreply.github.com>
Co-authored-by: Kai Yuan <kent.yuan@Gmail.com>
Co-authored-by: panos-kakos <102670093+panos-kakos@users.noreply.github.com>
Co-authored-by: Michael Olayemi <michaelolayemi28@gmail.com>
Co-authored-by: mariudotsh <33603097+mariudotsh@users.noreply.github.com>
Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>
Co-authored-by: anuragkumawat <anuragkumawat7@gmail.com>
Co-authored-by: Bipin kumar <sayy2bipin@gmail.com>
Co-authored-by: Shaun Phillips <61982125+ShaPhi7@users.noreply.github.com>
Co-authored-by: Alejamdro <alemolerio@gmail.com>
Co-authored-by: Daniel Strmecki <daniel.strmecki@gmail.com>
Co-authored-by: Arya <108480101+Dazzle-10@users.noreply.github.com>
Co-authored-by: Ana Peterlić <apeterlic@gmail.com>
Co-authored-by: Zahid Khan <63726443+zahikhan@users.noreply.github.com>
Co-authored-by: emanuel.trandafir <emanuel.trandafir@betvictor.com>
Co-authored-by: Kasra Madadipouya <kasra_mp@yahoo.com>
Co-authored-by: uzma <uzma.nasir@gmail.com>
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
Co-authored-by: ACHRAF TAITAI <43656331+achraftt@users.noreply.github.com>
Co-authored-by: Avin Buricha <avin.buricha@gmail.com>
Co-authored-by: Ulisses Lima <ulisseslima@users.noreply.github.com>
Co-authored-by: Bhaskar Ghosh Dastidar <dastidar.bhaskar@gmail.com>
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
Co-authored-by: Zahid Khan <Zahid.khan@globalpay.com>
Co-authored-by: Raj Kishor <30443297+rajkishorraj@users.noreply.github.com>
Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>
Co-authored-by: Gaetano Piazzolla <gae.piaz@gmail.com>
Co-authored-by: Eugene Kovko <37694937+eukovko@users.noreply.github.com>
Co-authored-by: Bahaa El-Din Helmy <bahaavampire@yahoo.com>
Co-authored-by: davidmartinezbarua <davmb5@gmail.com>
Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
Co-authored-by: Grzegorz Musiał <grzegorz@musial.tk>
Co-authored-by: Kilian Schneider <48420258+Basler182@users.noreply.github.com>
Co-authored-by: cesarevalenti90 <50798547+cesarevalenti90@users.noreply.github.com>
Co-authored-by: Cesare <cesare.valenti@hotmail.com>
Co-authored-by: brokenhardisk <brokenhardisk@gmail.com>
Co-authored-by: Sam Gardner <samgardner909@gmail.com>
Co-authored-by: timis1 <12120641+timis1@users.noreply.github.com>
Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Dmytro Budym <46810751+dbudim@users.noreply.github.com>
Co-authored-by: Vartika Nigam <63852792+vnigam2702@users.noreply.github.com>
Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
Co-authored-by: emanueltrandafir1993 <emanueltrandafir1993@gmail.com>
Co-authored-by: Ehsan Sasanianno <ehsan.sasanian@gmail.com>
Co-authored-by: Dileesha Rajapakse <dileesha@wso2.com>
Co-authored-by: Maciej Główka <maciejglowka.pl@gmail.com>
Co-authored-by: thibaultfaure <thibault.faure.pro@gmail.com>
Co-authored-by: Saikat Chakraborty <40471715+saikatcse03@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@perrio.io>
Co-authored-by: Hamid Reza Sharifi <hmdrzsharifi@gmail.com>
Co-authored-by: h_sharifi <h_sharifi@modernisc.com>
Co-authored-by: Ralf Ueberfuhr <40685729+ueberfuhr@users.noreply.github.com>
Co-authored-by: Deboshree <deboshree.banerjee@cred.club>
Co-authored-by: AndiCover <a.schoengruber@gmx.net>
Co-authored-by: Balamurugan <balamurugan.radhakrishnan@gmail.com>
Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>
Co-authored-by: victorsempere <victor.sempere1@gmail.com>
Co-authored-by: Muhammad Asif <muasif80@gmail.com>
Co-authored-by: vaibhav007jain <72961247+vaibhav007jain@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@gmail.com>
Co-authored-by: ciphx <wordcipherer@gmail.com>

* [BAEL-5934] add code examples for article Listing All AWS S3 Objects in a Bucket Using Java

* merge source to fork master (#7)

* JAVA-20280: remove wrong property (#13874)

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

* Update README.md

[skip ci]

* JAVA-13721 Format, Fix Package, Upgrade version of all the articles

* JAVA-13721 Moved mockito-simple to JDK9+ profiles

* JAVA-20278. Please point me to the tutorial code #13768. (#13923)

Co-authored-by: jogra <joseph.sterling.grah@miles.no>

* BAEL-6352: Check if the First Letter of a String is a Number (#13883)

* [BAEL-6434_charAndString] Difference Between "char" and "String" (#13907)

* [JAVA-18185] Upgrade groovy version (#13926)

* Update code for Overview of NLP Libraries in Java (#13912)

* Update code for Overview of NLP Libraries in Java

* Update code for Overview of NLP Libraries in Java

* Update code for Overview of NLP Libraries in Java

* BAEL-6319 Hibernate 6 Boolean Converters (#13894)

Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>

* BAEL-6194 Retrieve the Value of an HTML Input Using Selenium WebDriver in Java (#13898)

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* JAVA-20898 Check Article Code Matches GitHub

* Java 15032 (#13913)

* JAVA-15032: Changes made for adding the test cases custom userAgent in request  header

* JAVA-15032: Changes made for adding the test cases custom userAgent in request  header

* JAVA-15032: Changes made for incorporarting review comments

* JAVA-20931 Commented out spring-boot-3 for now because of JDK 19 requirement (#13936)

* BAEL-6325 Create core-java-lang-oop-constructors-2 (#13933)

* BAEL-5915 Added different ways to create an object

* BAEL-6325 Create core-java-lang-oop-constructors-2

* BAEL-6435: Reverse a String in Java 8 using Lambda and Streams (#13910)

* [JAVA-20456] Upgraded jackson version (#13871)

* [JAVA-20457] Upgraded springdoc version (#13872)

* [JAVA-20459] Upgraded org.json to latest version (#13869)

* BAEL-6327 - Find the index of an element in a Java array (#13844)

* JAVA-20898 Move article url from javaxval-2 to javaxval

* Java 20643 (#13914)

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: changes made for removing web-modules from default

* [BAEL-6436_printQuotesAroundString] Print "" Quotes Around a String in Java (#13925)

* JAVA-18113 Update spring-boot-swagger-keycloak module (#13506)

* JAVA-18113 Update spring-boot-swagger-keycloak module

* JAVA-16612: Mock Final Classes and Methods with Mockito article; MockMaker improvement (#13890)

* BAEL-6254: Scoped values (#13756)

* Added the code for "The difference between BufferedReader and FileReader". (#13942)

* BAEL-5814 - Is CompletableFuture Non-blocking (#13917)

* BAEL-5814 - Is CompletableFuture Non-blocking

* Fix the formatting

* BAEL-6326: Spring Boot H2 JdbcSQLSyntaxErrorException expected identifier (#13843)

* BAEL-6320: added code support for the @NaturalId article

* JAVA-16946: comment spring-jooq module from persistence-modules. (#13951)

* JAVA-20555 use Java Base64 instead of deprecated Spring Base64Utils (#13941)

* [BAEL-6105] code for list to page article

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* [BAEL-6105] code for list to page article

* [BAEL-6105] refactor test names

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* BAEL-6438 Code for the Find the longest word in a given string article

* BAEL-6332: Calling Non-Static Method In Static Method In Java (#13940)

* [BAEL-6485_RM-Punctuation] Remove Punctuation (#13946)

* BAEL-6410 (#13919)

* BAEL-6410 | Article code

* Adding consumer code for article

* BAEL-6046 MongoDB - Field Level Encryption (#13859)

* [BAEL-6253] record equals hashcode (#13958)

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode test case

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>

* [compByteArrays] Comparing Two Byte Arrays in Java (#13935)

* Remove Comments and update prefix.

* Uploading File using Selenium WebDriver in Java (#13947)

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* [rajkishorraj185@gmail.com] Lombok equalsandhashcode annotation (#13717)

* example code for equalsandhashcode annotation

* moving codes to lombok-2

---------

Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>

* Match prefix same as draft.

* JAVA-19152: fix intermittently failing RequestProcessorUnitTest (#13957)

* [JAVA-19362] Upgraded itextpdf to 5.5.13.3 (#13961)

* JAVA-16946: disable unit test for core-java-lang-oop-modifiers module for maintenance (#13968)

* BAEL-6444 | Added P6Spy logging in spring boot observation module. (#13965)

* BAEL-6444 | Added P6Spy logging in spring boot observation module.

* BAEL-6444 | Added Find with name query and custom log format now working

* BAEL-6444 | Formatting

* BAEL-6444 | Renaming junit files

* BAEL-6444 | Added start class

* BAEL-6444 | Actualized code with Article

* BAEL-6444 | Actualized code with Article

* BAEL-6444 | redded commit()

* BAEL-6444 | BDD naming strategy

* BAEL-6501 Update article "The producer-consumer problem example in Java" (#13973)

* BAEL-6501 Changed the synchronization block to use the DataQueue

* BAEL-6501 Fixed the platform agnostic new lines

* BAEL-6501 Moved ID increment to a static method

* BAEL-6501 Added a logger

* Add files via upload (#13978)

* JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975)

* BAEL-6250: Example code for Get All Caffeine Cache Keys article (#13806)

* BAEL-6185 reuse string builder performance (#13791)

* BAEL-6444 | Removed copyright commit (#13987)

* JAVA-18648 Review the time of the build - Week 9 - 2023 (#13954)

* JAVA-20277 GitHub Issue: Regarding article Introduction to JsonPath (#13939)

* BAEL-6197 - Execute Tests Based on Active Profile with JUnit 5 (#13776)

* BAEL-6255 - Run a Spring Boot application in AWS Lambda

* BAEL-6255 - Run a Spring Boot application in AWS Lambda

* fix on template.yaml

* fix on template.yaml

* removed log from test

* resolved issues reported on PR

* BAEL-6277 - A Guide To Spring Cloud Azure

First commit

* BAEL-6277 - A Guide To Spring Cloud Azure

Added to README.md the steps to create the secrets

* BAEL-6277 - A Guide To Spring Cloud Azure

Added the integration Azure Key Vault Properties

* BAEL-6277 - A Guide To Spring Cloud Azure

Added the integration Azure Key Vault Properties

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

Added one level package keyvault

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

removed target release version

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix compilation of NoSuchElementException

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix pom.xml

* Revert "BAEL-6277 - A Guide To Spring Cloud Azure Key Vault"

This reverts commit 1cca1d0d692646001a6d7de106f3a37fb22839ce.

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix pom.xml

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

downgrade version to fix jenkins pipeline error

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

comment run on main class

* Revert "reset last commit"

This reverts commit c557fad67f1c15bb384f0af5781430a45121a838.

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#First push

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

Revert for new pr

* reset last commit

* reset last commit

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#Remove redundant test

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#Format fix

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix from review

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix from review

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix test name

---------

Co-authored-by: Cesare <cesare.valenti@hotmail.com>

* [scanner-to-array] Saving Java Scanner Input to an Array (#13969)

* BAEL-6342 JUnit Test Class for Null and Empty String (#13963)

* JAVA-20630 upgrade maven war plugin to be compatible with JDK 11 and 17 (#13945)

* JAVA-20630 upgrade maven war plugin to be compatible with JDK 11 and 17

* JAVA-20630 code format

* JAVA-20630 don't fail if there's no web.xml and using Java based configuration while building a war file

* JAVA-20630 avoid unneeded formatting

* JAVA-20630 change order of modules to solve flaky tests

* fix module order

* add dependent module

* add parent

* JAVA-20828 Fixing the core-java-exclusions module (#13997)

* Upgrade spring.vault.core from 2.3.2 to 3.0.2 (#13977)

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Create README.md

[skip ci]

* Update README.md

[skip ci]

* Title: Regular Expression: \z vs \Z Anchors in Java (#13994)

Hello,
This commit related to the article entitled "Regular Expression: \z vs \Z Anchors in Java"

* JAVA-20828: Changes made for updating blade module to java 11 (#13929)

* JAVA-20828: Changes made for updating blade module to java 11

* JAVA-20828: Changes made for updating bootique,dropwizard,google-web-toolkit  module to java 11

* JAVA-20828: Changes made for updating bootique,dropwizard,google-web-toolkit  module to java 11

* JAVA-20828: Adding jakarta-ee to jdk-9 profile

* BAEL-6334 Add example code for checking if a list element is in another list

* JAVA-20610 Upgraded parent-boot-2 to 2.7.11 (#13944)

* JAVA-20163 Upgrade hibernate specific modules to JDK 11 (#13817)

* JAVA-20163 Migration hibernate-annotations

* JAVA-20163 Migrate hibernate-queries

* JAVA-20163 Migrating hibernate-mapping

* JAVA-20163 rename reserved keywords, update inheritance example

* JAVA-20163 Migrate hibernate-ogm module to the jdk 8 because hibernate-ogm doesn't support jakarta API

* JAVA-20163 Migrate hibernate-enterprise module

* JAVA-20163 Add update to HibernateExceptionUnitTest#whenQueryExecutedWithUnmappedEntity_thenMappingException

* JAVA-20163 Set explicit version for hibernate 6.1.7.Final in the hibernate-queries module

* JAVA-20163 Fix failed test with port that already exists (giving another port 8088)

* JAVA-20163 Fix other location after changing the port

* JAVA-20163 Remove duplicate Unit Test

---------

Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>

* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11 (#13952)

* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11

* JAVA-20165 Migrating spring-boot-persistence-mongodb

* JAVA-20165 Migrating spring-boot-persistence-mongodb-2

* JAVA-20165 Migrating spring-boot-persistence-mongodb-3

* JAVA-20165 Adding latest version for jdbi in spring-boot-persistence-2 module

---------

Co-authored-by: timis1 <noreplay@yahoo.com>

* [Check If a Specified Key Exists in a Given S3 Bucket using Java] added code examples (#13775)

* [Check If a Specified Key Exists in a Given S3 Bucket using Java]] added code examples for

change test name

remove link from README.md

* - used env variables for AWS credentials
- used codestyle profile of baledung

* [os-to-is] Convert an OutputStream to an InputStream (#13992)

* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue a… (#13851)

* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue and LinkedBlockingQueue

* BAEL-6264 added unit test case

* modified test case

* BAEL-6264 deleted BlockingQueueImplExample file not needed anymore

* BAEL-6264 code review changes moved class file to different module

---------

Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>

* Add code examples for "Opening a New Tab Using Selenium WebDriver in Java" (#14001)

Add code examples for "Opening a New Tab Using Selenium WebDriver in Java"

* BAEL-6320: format & code review

* JAVA-16946 Upgrade h2 database version for remaining modules (#13976)

* Add java interface single implementation examples (#13972)

* Fix formatting issues, refactor the `profiles` word in the properties.

* Add files via upload (#14006)

* JAVA-20828 Fixed module name (#14018)

* fix SeleniumOpenNewTabLiveTest (#14019)

* BAEL-6493 - Read last N messages from a Kafka Topic (#14020)

* BAEL-6398: Java PrintStream to String (#13998)

* Revert "JAVA-20280: remove wrong property (#13874)" (#14021)

This reverts commit 561e893e86d9c51b1e61818f5450d6194d9959fd.

* Hashing with Argon2 in Java (#14009)

* Hashing with Argon2 in Java

* Hashing with Argon2 in Java

* JAVA-13721 Fixing the formatting

* JAVA-13721 Further formatting of files

* BAEL-4369: Multiple ways of declaring dependency versions in Gradle (#13825)

* BAEL-6246 Code for the article Send MultipartFile Request with RestAs… (#13803)

* BAEL-6246 Code for the article Send MultipartFile Request with RestAssured

* Fix code style in rest assured integration tests

---------

Co-authored-by: thibault.faure <thibault.faure@mimacom.com>

* Bael 4582: Custom Authentication using shared secret (#13801)

* Spring custom security filter add

* Integration Tests add

* Add Project into parent pom

* refactor code

* refactor code

* remove .env and refactor code

* refactor code

* exclude auto configuration

* Refactored code

* removed ssl certificate for security

* Set session management to statelees

* Refactor tests

* Refactor authentication logic

* Refactor authentication logic

* Refactor authentication logic

* Remove unused code

* Remove unused code

* Remove unused appconfig

* disable AWSS3ObjectIntegrationTest due to need real credentials (#14028)

make AWSS3ObjectIntegrationTest manual

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* JAVA-20828: changes made for resolving botique module (#14027)

* [JAVA-20626]Moved vertx-modules to jdk9-and-above profile + upgraded vertx version to 3.9.15 (#13960)

* [JAVA-20633  Clean up modules (#14024)

* add value of comparision

* [BAEL-6339] custom iterator with testcases (#14038)

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>

* BAEL-6246 Fix AppControllerIntegrationTest (#14039)

Co-authored-by: thibault.faure <thibault.faure@mimacom.com>

* JAVA-20946 Renamed HttpBinServiceUnitTest to LiveTest (#14041)

- Since it is making actual live request to httpbin.org

* JAVA-21186 Fix references to parents - Week 21 - 2023 (#14036)

* JAVA-20630 move the jws module to  *-jdk9-and-above profiles (#14030)

* JAVA-20631 move Jetbrains module to *-jdk9-and-above profiles (#14029)

* JAVA-20631 move Jetbrains module to *-jdk9-and-above profiles

* JAVA-20631 fix parent modules so that the project parent (pom.xml) can be built without error

* BAEL-5711: Securing Spring Boot API with API key and secret (#14015)

* #bael-5711: add source

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: remove extra space

---------

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>

* BAEL-6334 Improve test names and typos

* BAEL-6179: Add Actuator sample without Spring Boot (#14032)

* BAEL-6179: Add Actuator sample without Spring Boot

* BAEL-6179: Simplify custom health indicator

* [JAVA-20624] Moved static-analysis module to jdk9-and-above-profile (#14026)

* change return type to optional

* Title: Array vs List Performance in Java (#14034)

This commit related to the article entitled "Array vs List Performance in Java".

* BAEL-6428 Make a Method Execute Only Once in Java

* 20616 (#14023)

* [JAVA-20616] Upgraded spring-spel module to jdk9-and-above profile

* [JAVA-20616]  Upgraded spring-websockets module to jdk9-and-above profile

* [JAVA-20616]  Upgraded spring-shell module to jdk9-and-above profile

---------

Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>

* JAVA-21106: Adding javax-servlets module to jdk9 and above (#13974)

* JAVA-21106: Adding javax-servlets module to jdk9 and above

* JAVA-21106: Changes made for adding the method for runt he application

* JAVA-21106: Changes made for adding javax-servlets-2 modules to jdk-9 and above

* JAVA-21106: Changes made for adding linkrest  modules to jdk-9 and above

* JAVA-21106 : Changes made for adding jee-7 and ninija in default-jdk9-and-above profile

* JAVA-21106 : Changes made for adding resteasy,spark-java,struts-3,vraptor,wicket in default-jdk9-and-above profile

* JAVA-21106 : Changes made for removing ninja module

* JAVA-21106 : Changes made for removing ninja module fro  jdk-9 and above

* JAVA-21106: Changes made for cleaninhg pom.xml

* JAVA-21106: FIXING MAVEN VERISON FOR WICKET

* Java 20277 (#14046)

* JAVA-20277 GitHub Issue: Regarding article Introduction to JsonPath

* JAVA-20277 Code Review Changes

* JAVA-20167 Upgrade spring-data hibernate with external libraries specific modules to JDK 11 (#14022)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-20166 Migrating spring-date-eclipselink (#13959)

* JAVA-20166 Migrating spring-date-eclipselink

* JAVA-20166 Fix failed tests address already bind

* JAVA-20166 Migrating spring-date-couchbase-2

* JAVA-20166 Replace with optional instead of returning null

---------

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11 (#13900)

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11

* JAVA-20164 Migrating java-jpa-2

* JAVA-20164 Migrating jnosql-artemis

* JAVA-20164 Migrating querydsl

* JAVA-20164 Migrating r2dbc

* JAVA-20164 Migrating redis

* JAVA-20164 Fixing test JPATextUnitTest#givenExam_whenSaveExam_thenReturnExpectedExam

* JAVA-20164 Fixing givenIdentityStrategy_whenCommitTransction_thenReturnPrimaryKey

* JAVA-20164 Changes after review

* JAVA-20164 Migrating java-cassandra to jdk8

* JAVA-20164 Fix legacy mode error

* Update pom.xml

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>

* BAEL-5905 move article

* BAEL-5947: Moving a project to a different package (#14054)

* Revert "feat: BAEL-5947 External Debugging with JMXTerm (#13847)"

This reverts commit ae04ab2510a5eb2e7b8c57e14474c6edadeb6883.

* BAEL-5947: Moving a project to a different package

* BAEL-4615: Create and Detect Memory Leak in Java (#14060)

* BAEL-6086: Customize WebFlux Exceptions in Spring Boot 3 (#13948)

* BAEL-6086: Added code for webflux default and custom exception along with Unit Tests

* BAEL-6086: added missing import

* BAEL-6086: reformatting

* BAEL-6086: reformatted code

---------

Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>

* BAEL-5575 (#14016)

* BAEL-5575

First commit of the example for the article:
https://drafts.baeldung.com/wp-admin/post.php?post=153774&action=edit

* BAEL-5575

Adjusted pom.xml

* BAEL-5575

Formatted source code

* BAEL-5575

Removed unused import

* BAEL-5575

Renamed UT to follow: https://docs.google.com/document/d/1iIeSPuYFG-jEtB8UbcxQnn2AI3OR2LWlnisNo2NUCL8/edit

* BAEL-5575

Modified pom.xml to define versions in  properties  as stated in:
https://docs.google.com/document/d/1iIeSPuYFG-jEtB8UbcxQnn2AI3OR2LWlnisNo2NUCL8/edit

* BAEL-5575

Changes checking the commands:
* mvn clean install
* mvn clean install -Dgib.enabled=false

* BAEL-5575

Set GB as the base language

* BAEL-6094 (#14043)

* Inital Commit for BAEL-6094

* Added the test

* Updated the test

* Convert Hashmap to JSON object in Java (#14070)

* Convert Hashmap to JSON object in Java

This commit is related to the article entitled "Convert Hashmap to JSON object in Java"

* Convert Hashmap to JSON object in Java

This commit is for the article "Convert Hashmap to JSON object in Java"

* Array vs List Performance in Java (#14078)

This commit is related to the article entitled "Array vs List Performance in Java"

* Bael-6331: Adding changes for creating and checking empty streams (#14047)

* BAEL-6331: Create EmptyStreams.java

* BAEL-6331: Create EmptyStreamsUnitTest.java

* JAVA-20163 Fix failed integration test with date creation comparison (#14080)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-21440: Changes made for upgrade jooby module to 2.16.1 to make j… (#14064)

* JAVA-21440: Chnages made for upgrade jooby module to 2.16.1 to make java-17 compatable

* JAVA-21440: commenting redis code as this will only work in the local or infra should have a redis setup

* JAVA-21440 Minor cleanup (#14084)

* Delete README.md

* removed optional specific function

* changing unit test class name

* BAEL-6250: refactor: Move to spring-caching-2 since spring-caching is full

* Update README.md

* Update README.md

* BAEL-6460: Why is Scanner skipping nextLine() after using other next functions? (#14079)

* changing branch

* BAEL-6334 Make object properties example clearer

* [BAEL-6344] address PR comment

* JAVA-21305 : Changes made for adding ratpack module to jdk9-and above… (#14012)

* JAVA-21106 : Changes made for adding ratpack module to jdk9-and above module

* JAVA-21106 : Changes made for adding java-lite module to jdk9-and above module

* JAVA-21305: Changes made for cleaninhg pom.xml

* JAVA-21305: Changes made for cleaning pom.xml

* BOSS-21305: changes made for adding ninja in jdk9 above modeule

* JAVA-21305: Changes made as per review comments

* JAVA-21305: Changes made as per review comments

* JAVA-21305: Changes made as per review comments

* [JAVA-21134] (#14045)

* [JAVA-21134] Removed external repository from jgit module

* [JAVA-21134] Removed external repository from aws-miscellaneous module + upgraded dynamodblocal version

* [JAVA-21134] Removed external repository from apache-tapestry module

* TASK-20628 (#14074)

* [TASK-20628] Moved xml module to jdk9-and-above profile

* [TASK-20628] Moved xml-2 module to jdk9-and-above profile

* [JAVA-15027]Upgraded follow redirects for apache http client + moved … (#14092)

* [JAVA-15027]Upgraded follow redirects for apache http client + moved older version to apache-httpclient4 module

* [JAVA-15027] Added test case

* BAEL-6508 Code for the Solving Gson Parsing Errors article

* JAVA-21189: Formatting pom.xml modules starting from KLM (#14096)

* JAVA-21189: Formatting pom.xml modules starting from NOPQR (#14097)

* JAVA-21189: Formatting pom.xml modules starting from NOPQR (#14097)

* java-20079: upgrade apache-spark module libraries (#14087)

* [scanner-with-spaces] how to take input as String with spaces in Java… (#14044)

* [scanner-with-spaces] how to take input as String with spaces in Java using Scanner?y

* [scanner-with-spaces] fix typo

* [output-to-file] Write Console Output to Text File in Java (#14082)

* [output-to-file] Write Console Output to Text File in Java

* [output-to-file] rebase on the master

* Convert Hashmap to JSON object in Java (#14110)

This commit is for Convert Hashmap to JSON object in Java

* Generating Javadoc with Gradle (#14091)

* Generating Javadoc with Gradle

* Generating Javadoc with Gradle

* Generating Javadoc with Gradle

* BAEL-6179: Fix readme (#14088)

* BAEL-6179: Add Actuator sample without Spring Boot

* BAEL-6179: Simplify custom health indicator

* BAEL-6179: Fix description in README.md

* JAVA-21189:  changes made for formatting modules starting from S (#14106)

* JAVA-21189:  changes made for formatting modules starting from TVWX (#14107)

* JAVA_21305: Changes made for fix the Integration test faliures (#14113)

* JAVA-20164 Fix .._SEQ.NEXTVAL error (#14109)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-15022 (#14099)

* [JAVA-15022] Moved 4.5 version code to apache-httpclient4 module

* [JAVA-15022] Upgraded code to 5.x version

* Array vs List Performance in Java (#14114)

This commit is related to the article entitled "Array vs List Performance in Java"

* BAEL-6461: What's the difference between Scanner next() and nextLine() methods? (#14057)

* JAVA-19670: changes made for upgrading jenkins module to jdk-9 above (#14105)

* JAVA-19670: changes made for upgrading jenkins module to jdk-9 above

* JAVA-19670: Changes made for adding jenkins-modules in jdk-9 and above profile

* JAVA_21106: Changes made for fixing test cases for jee-7 (#14115)

* Bael 5711: Securing Spring Boot API with API key and secret (#14102)

* #bael-5711: add source

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: add custom message

* #bael-5711: refactor return null

---------

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>

---------

Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
Co-authored-by: 3hsan <56245694+ehsansasanian@users.noreply.github.com>
Co-authored-by: edizor <113095366+edizor@users.noreply.github.com>
Co-authored-by: Vini <34344290+vinipx@users.noreply.github.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
Co-authored-by: jsgrah-spring <jsgrah@hotmail.com>
Co-authored-by: jogra <joseph.sterling.grah@miles.no>
Co-authored-by: Azhwani <13301425+azhwani@users.noreply.github.com>
Co-authored-by: Kai Yuan <kent.yuan@Gmail.com>
Co-authored-by: panos-kakos <102670093+panos-kakos@users.noreply.github.com>
Co-authored-by: Michael Olayemi <michaelolayemi28@gmail.com>
Co-authored-by: mariudotsh <33603097+mariudotsh@users.noreply.github.com>
Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>
Co-authored-by: anuragkumawat <anuragkumawat7@gmail.com>
Co-authored-by: Bipin kumar <sayy2bipin@gmail.com>
Co-authored-by: Shaun Phillips <61982125+ShaPhi7@users.noreply.github.com>
Co-authored-by: Alejamdro <alemolerio@gmail.com>
Co-authored-by: Daniel Strmecki <daniel.strmecki@gmail.com>
Co-authored-by: Arya <108480101+Dazzle-10@users.noreply.github.com>
Co-authored-by: Ana Peterlić <apeterlic@gmail.com>
Co-authored-by: Zahid Khan <63726443+zahikhan@users.noreply.github.com>
Co-authored-by: emanuel.trandafir <emanuel.trandafir@betvictor.com>
Co-authored-by: Kasra Madadipouya <kasra_mp@yahoo.com>
Co-authored-by: uzma <uzma.nasir@gmail.com>
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
Co-authored-by: ACHRAF TAITAI <43656331+achraftt@users.noreply.github.com>
Co-authored-by: Avin Buricha <avin.buricha@gmail.com>
Co-authored-by: Ulisses Lima <ulisseslima@users.noreply.github.com>
Co-authored-by: Bhaskar Ghosh Dastidar <dastidar.bhaskar@gmail.com>
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
Co-authored-by: Zahid Khan <Zahid.khan@globalpay.com>
Co-authored-by: Raj Kishor <30443297+rajkishorraj@users.noreply.github.com>
Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>
Co-authored-by: Gaetano Piazzolla <gae.piaz@gmail.com>
Co-authored-by: Eugene Kovko <37694937+eukovko@users.noreply.github.com>
Co-authored-by: Bahaa El-Din Helmy <bahaavampire@yahoo.com>
Co-authored-by: davidmartinezbarua <davmb5@gmail.com>
Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
Co-authored-by: Grzegorz Musiał <grzegorz@musial.tk>
Co-authored-by: Kilian Schneider <48420258+Basler182@users.noreply.github.com>
Co-authored-by: cesarevalenti90 <50798547+cesarevalenti90@users.noreply.github.com>
Co-authored-by: Cesare <cesare.valenti@hotmail.com>
Co-authored-by: brokenhardisk <brokenhardisk@gmail.com>
Co-authored-by: Sam Gardner <samgardner909@gmail.com>
Co-authored-by: timis1 <12120641+timis1@users.noreply.github.com>
Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Dmytro Budym <46810751+dbudim@users.noreply.github.com>
Co-authored-by: Vartika Nigam <63852792+vnigam2702@users.noreply.github.com>
Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
Co-authored-by: emanueltrandafir1993 <emanueltrandafir1993@gmail.com>
Co-authored-by: Ehsan Sasanianno <ehsan.sasanian@gmail.com>
Co-authored-by: Dileesha Rajapakse <dileesha@wso2.com>
Co-authored-by: Maciej Główka <maciejglowka.pl@gmail.com>
Co-authored-by: thibaultfaure <thibault.faure.pro@gmail.com>
Co-authored-by: Saikat Chakraborty <40471715+saikatcse03@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@perrio.io>
Co-authored-by: Hamid Reza Sharifi <hmdrzsharifi@gmail.com>
Co-authored-by: h_sharifi <h_sharifi@modernisc.com>
Co-authored-by: Ralf Ueberfuhr <40685729+ueberfuhr@users.noreply.github.com>
Co-authored-by: Deboshree <deboshree.banerjee@cred.club>
Co-authored-by: AndiCover <a.schoengruber@gmx.net>
Co-authored-by: Balamurugan <balamurugan.radhakrishnan@gmail.com>
Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>
Co-authored-by: victorsempere <victor.sempere1@gmail.com>
Co-authored-by: Muhammad Asif <muasif80@gmail.com>
Co-authored-by: vaibhav007jain <72961247+vaibhav007jain@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@gmail.com>
Co-authored-by: ciphx <wordcipherer@gmail.com>

* Merge source to fork (#8)

* JAVA-20280: remove wrong property (#13874)

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

* Update README.md

[skip ci]

* JAVA-13721 Format, Fix Package, Upgrade version of all the articles

* JAVA-13721 Moved mockito-simple to JDK9+ profiles

* JAVA-20278. Please point me to the tutorial code #13768. (#13923)

Co-authored-by: jogra <joseph.sterling.grah@miles.no>

* BAEL-6352: Check if the First Letter of a String is a Number (#13883)

* [BAEL-6434_charAndString] Difference Between "char" and "String" (#13907)

* [JAVA-18185] Upgrade groovy version (#13926)

* Update code for Overview of NLP Libraries in Java (#13912)

* Update code for Overview of NLP Libraries in Java

* Update code for Overview of NLP Libraries in Java

* Update code for Overview of NLP Libraries in Java

* BAEL-6319 Hibernate 6 Boolean Converters (#13894)

Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>

* BAEL-6194 Retrieve the Value of an HTML Input Using Selenium WebDriver in Java (#13898)

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* Retrieve the Value of an HTML Input Using Selenium WebDriver in Java

* JAVA-20898 Check Article Code Matches GitHub

* Java 15032 (#13913)

* JAVA-15032: Changes made for adding the test cases custom userAgent in request  header

* JAVA-15032: Changes made for adding the test cases custom userAgent in request  header

* JAVA-15032: Changes made for incorporarting review comments

* JAVA-20931 Commented out spring-boot-3 for now because of JDK 19 requirement (#13936)

* BAEL-6325 Create core-java-lang-oop-constructors-2 (#13933)

* BAEL-5915 Added different ways to create an object

* BAEL-6325 Create core-java-lang-oop-constructors-2

* BAEL-6435: Reverse a String in Java 8 using Lambda and Streams (#13910)

* [JAVA-20456] Upgraded jackson version (#13871)

* [JAVA-20457] Upgraded springdoc version (#13872)

* [JAVA-20459] Upgraded org.json to latest version (#13869)

* BAEL-6327 - Find the index of an element in a Java array (#13844)

* JAVA-20898 Move article url from javaxval-2 to javaxval

* Java 20643 (#13914)

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: Changes made for updating apache-tapestry module to java 11

* JAVA-20643: changes made for removing web-modules from default

* [BAEL-6436_printQuotesAroundString] Print "" Quotes Around a String in Java (#13925)

* JAVA-18113 Update spring-boot-swagger-keycloak module (#13506)

* JAVA-18113 Update spring-boot-swagger-keycloak module

* JAVA-16612: Mock Final Classes and Methods with Mockito article; MockMaker improvement (#13890)

* BAEL-6254: Scoped values (#13756)

* Added the code for "The difference between BufferedReader and FileReader". (#13942)

* BAEL-5814 - Is CompletableFuture Non-blocking (#13917)

* BAEL-5814 - Is CompletableFuture Non-blocking

* Fix the formatting

* BAEL-6326: Spring Boot H2 JdbcSQLSyntaxErrorException expected identifier (#13843)

* BAEL-6320: added code support for the @NaturalId article

* JAVA-16946: comment spring-jooq module from persistence-modules. (#13951)

* JAVA-20555 use Java Base64 instead of deprecated Spring Base64Utils (#13941)

* [BAEL-6105] code for list to page article

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* [BAEL-6105] code for list to page article

* [BAEL-6105] refactor test names

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* BAEL-6438 Code for the Find the longest word in a given string article

* BAEL-6332: Calling Non-Static Method In Static Method In Java (#13940)

* [BAEL-6485_RM-Punctuation] Remove Punctuation (#13946)

* BAEL-6410 (#13919)

* BAEL-6410 | Article code

* Adding consumer code for article

* BAEL-6046 MongoDB - Field Level Encryption (#13859)

* [BAEL-6253] record equals hashcode (#13958)

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode

* [BAEL-6253] records equals and hashcode test case

---------

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>

* [compByteArrays] Comparing Two Byte Arrays in Java (#13935)

* Remove Comments and update prefix.

* Uploading File using Selenium WebDriver in Java (#13947)

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* Uploading File using Selenium WebDriver in Java

* [rajkishorraj185@gmail.com] Lombok equalsandhashcode annotation (#13717)

* example code for equalsandhashcode annotation

* moving codes to lombok-2

---------

Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>

* Match prefix same as draft.

* JAVA-19152: fix intermittently failing RequestProcessorUnitTest (#13957)

* [JAVA-19362] Upgraded itextpdf to 5.5.13.3 (#13961)

* JAVA-16946: disable unit test for core-java-lang-oop-modifiers module for maintenance (#13968)

* BAEL-6444 | Added P6Spy logging in spring boot observation module. (#13965)

* BAEL-6444 | Added P6Spy logging in spring boot observation module.

* BAEL-6444 | Added Find with name query and custom log format now working

* BAEL-6444 | Formatting

* BAEL-6444 | Renaming junit files

* BAEL-6444 | Added start class

* BAEL-6444 | Actualized code with Article

* BAEL-6444 | Actualized code with Article

* BAEL-6444 | redded commit()

* BAEL-6444 | BDD naming strategy

* BAEL-6501 Update article "The producer-consumer problem example in Java" (#13973)

* BAEL-6501 Changed the synchronization block to use the DataQueue

* BAEL-6501 Fixed the platform agnostic new lines

* BAEL-6501 Moved ID increment to a static method

* BAEL-6501 Added a logger

* Add files via upload (#13978)

* JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975)

* BAEL-6250: Example code for Get All Caffeine Cache Keys article (#13806)

* BAEL-6185 reuse string builder performance (#13791)

* BAEL-6444 | Removed copyright commit (#13987)

* JAVA-18648 Review the time of the build - Week 9 - 2023 (#13954)

* JAVA-20277 GitHub Issue: Regarding article Introduction to JsonPath (#13939)

* BAEL-6197 - Execute Tests Based on Active Profile with JUnit 5 (#13776)

* BAEL-6255 - Run a Spring Boot application in AWS Lambda

* BAEL-6255 - Run a Spring Boot application in AWS Lambda

* fix on template.yaml

* fix on template.yaml

* removed log from test

* resolved issues reported on PR

* BAEL-6277 - A Guide To Spring Cloud Azure

First commit

* BAEL-6277 - A Guide To Spring Cloud Azure

Added to README.md the steps to create the secrets

* BAEL-6277 - A Guide To Spring Cloud Azure

Added the integration Azure Key Vault Properties

* BAEL-6277 - A Guide To Spring Cloud Azure

Added the integration Azure Key Vault Properties

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

Added one level package keyvault

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

removed target release version

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix compilation of NoSuchElementException

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix pom.xml

* Revert "BAEL-6277 - A Guide To Spring Cloud Azure Key Vault"

This reverts commit 1cca1d0d692646001a6d7de106f3a37fb22839ce.

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

fix pom.xml

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

downgrade version to fix jenkins pipeline error

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

comment run on main class

* Revert "reset last commit"

This reverts commit c557fad67f1c15bb384f0af5781430a45121a838.

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#First push

* BAEL-6277 - A Guide To Spring Cloud Azure Key Vault

Revert for new pr

* reset last commit

* reset last commit

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#Remove redundant test

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#Format fix

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix from review

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix from review

* BAEL 6197 - Execute Tests Based on Active Profile with JUnit 5

#fix test name

---------

Co-authored-by: Cesare <cesare.valenti@hotmail.com>

* [scanner-to-array] Saving Java Scanner Input to an Array (#13969)

* BAEL-6342 JUnit Test Class for Null and Empty String (#13963)

* JAVA-20630 upgrade maven war plugin to be compatible with JDK 11 and 17 (#13945)

* JAVA-20630 upgrade maven war plugin to be compatible with JDK 11 and 17

* JAVA-20630 code format

* JAVA-20630 don't fail if there's no web.xml and using Java based configuration while building a war file

* JAVA-20630 avoid unneeded formatting

* JAVA-20630 change order of modules to solve flaky tests

* fix module order

* add dependent module

* add parent

* JAVA-20828 Fixing the core-java-exclusions module (#13997)

* Upgrade spring.vault.core from 2.3.2 to 3.0.2 (#13977)

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Create README.md

[skip ci]

* Update README.md

[skip ci]

* Title: Regular Expression: \z vs \Z Anchors in Java (#13994)

Hello,
This commit related to the article entitled "Regular Expression: \z vs \Z Anchors in Java"

* JAVA-20828: Changes made for updating blade module to java 11 (#13929)

* JAVA-20828: Changes made for updating blade module to java 11

* JAVA-20828: Changes made for updating bootique,dropwizard,google-web-toolkit  module to java 11

* JAVA-20828: Changes made for updating bootique,dropwizard,google-web-toolkit  module to java 11

* JAVA-20828: Adding jakarta-ee to jdk-9 profile

* BAEL-6334 Add example code for checking if a list element is in another list

* JAVA-20610 Upgraded parent-boot-2 to 2.7.11 (#13944)

* JAVA-20163 Upgrade hibernate specific modules to JDK 11 (#13817)

* JAVA-20163 Migration hibernate-annotations

* JAVA-20163 Migrate hibernate-queries

* JAVA-20163 Migrating hibernate-mapping

* JAVA-20163 rename reserved keywords, update inheritance example

* JAVA-20163 Migrate hibernate-ogm module to the jdk 8 because hibernate-ogm doesn't support jakarta API

* JAVA-20163 Migrate hibernate-enterprise module

* JAVA-20163 Add update to HibernateExceptionUnitTest#whenQueryExecutedWithUnmappedEntity_thenMappingException

* JAVA-20163 Set explicit version for hibernate 6.1.7.Final in the hibernate-queries module

* JAVA-20163 Fix failed test with port that already exists (giving another port 8088)

* JAVA-20163 Fix other location after changing the port

* JAVA-20163 Remove duplicate Unit Test

---------

Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>

* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11 (#13952)

* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11

* JAVA-20165 Migrating spring-boot-persistence-mongodb

* JAVA-20165 Migrating spring-boot-persistence-mongodb-2

* JAVA-20165 Migrating spring-boot-persistence-mongodb-3

* JAVA-20165 Adding latest version for jdbi in spring-boot-persistence-2 module

---------

Co-authored-by: timis1 <noreplay@yahoo.com>

* [Check If a Specified Key Exists in a Given S3 Bucket using Java] added code examples (#13775)

* [Check If a Specified Key Exists in a Given S3 Bucket using Java]] added code examples for

change test name

remove link from README.md

* - used env variables for AWS credentials
- used codestyle profile of baledung

* [os-to-is] Convert an OutputStream to an InputStream (#13992)

* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue a… (#13851)

* BAEL-6264 added class to show how to instantiate ArrayBlockingQueue and LinkedBlockingQueue

* BAEL-6264 added unit test case

* modified test case

* BAEL-6264 deleted BlockingQueueImplExample file not needed anymore

* BAEL-6264 code review changes moved class file to different module

---------

Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>

* Add code examples for "Opening a New Tab Using Selenium WebDriver in Java" (#14001)

Add code examples for "Opening a New Tab Using Selenium WebDriver in Java"

* BAEL-6320: format & code review

* JAVA-16946 Upgrade h2 database version for remaining modules (#13976)

* Add java interface single implementation examples (#13972)

* Fix formatting issues, refactor the `profiles` word in the properties.

* Add files via upload (#14006)

* JAVA-20828 Fixed module name (#14018)

* fix SeleniumOpenNewTabLiveTest (#14019)

* BAEL-6493 - Read last N messages from a Kafka Topic (#14020)

* BAEL-6398: Java PrintStream to String (#13998)

* Revert "JAVA-20280: remove wrong property (#13874)" (#14021)

This reverts commit 561e893e86d9c51b1e61818f5450d6194d9959fd.

* Hashing with Argon2 in Java (#14009)

* Hashing with Argon2 in Java

* Hashing with Argon2 in Java

* JAVA-13721 Fixing the formatting

* JAVA-13721 Further formatting of files

* BAEL-4369: Multiple ways of declaring dependency versions in Gradle (#13825)

* BAEL-6246 Code for the article Send MultipartFile Request with RestAs… (#13803)

* BAEL-6246 Code for the article Send MultipartFile Request with RestAssured

* Fix code style in rest assured integration tests

---------

Co-authored-by: thibault.faure <thibault.faure@mimacom.com>

* Bael 4582: Custom Authentication using shared secret (#13801)

* Spring custom security filter add

* Integration Tests add

* Add Project into parent pom

* refactor code

* refactor code

* remove .env and refactor code

* refactor code

* exclude auto configuration

* Refactored code

* removed ssl certificate for security

* Set session management to statelees

* Refactor tests

* Refactor authentication logic

* Refactor authentication logic

* Refactor authentication logic

* Remove unused code

* Remove unused code

* Remove unused appconfig

* disable AWSS3ObjectIntegrationTest due to need real credentials (#14028)

make AWSS3ObjectIntegrationTest manual

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* Update README.md

[skip ci]

* JAVA-20828: changes made for resolving botique module (#14027)

* [JAVA-20626]Moved vertx-modules to jdk9-and-above profile + upgraded vertx version to 3.9.15 (#13960)

* [JAVA-20633  Clean up modules (#14024)

* add value of comparision

* [BAEL-6339] custom iterator with testcases (#14038)

Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>

* BAEL-6246 Fix AppControllerIntegrationTest (#14039)

Co-authored-by: thibault.faure <thibault.faure@mimacom.com>

* JAVA-20946 Renamed HttpBinServiceUnitTest to LiveTest (#14041)

- Since it is making actual live request to httpbin.org

* JAVA-21186 Fix references to parents - Week 21 - 2023 (#14036)

* JAVA-20630 move the jws module to  *-jdk9-and-above profiles (#14030)

* JAVA-20631 move Jetbrains module to *-jdk9-and-above profiles (#14029)

* JAVA-20631 move Jetbrains module to *-jdk9-and-above profiles

* JAVA-20631 fix parent modules so that the project parent (pom.xml) can be built without error

* BAEL-5711: Securing Spring Boot API with API key and secret (#14015)

* #bael-5711: add source

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: remove extra space

---------

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>

* BAEL-6334 Improve test names and typos

* BAEL-6179: Add Actuator sample without Spring Boot (#14032)

* BAEL-6179: Add Actuator sample without Spring Boot

* BAEL-6179: Simplify custom health indicator

* [JAVA-20624] Moved static-analysis module to jdk9-and-above-profile (#14026)

* change return type to optional

* Title: Array vs List Performance in Java (#14034)

This commit related to the article entitled "Array vs List Performance in Java".

* BAEL-6428 Make a Method Execute Only Once in Java

* 20616 (#14023)

* [JAVA-20616] Upgraded spring-spel module to jdk9-and-above profile

* [JAVA-20616]  Upgraded spring-websockets module to jdk9-and-above profile

* [JAVA-20616]  Upgraded spring-shell module to jdk9-and-above profile

---------

Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>

* JAVA-21106: Adding javax-servlets module to jdk9 and above (#13974)

* JAVA-21106: Adding javax-servlets module to jdk9 and above

* JAVA-21106: Changes made for adding the method for runt he application

* JAVA-21106: Changes made for adding javax-servlets-2 modules to jdk-9 and above

* JAVA-21106: Changes made for adding linkrest  modules to jdk-9 and above

* JAVA-21106 : Changes made for adding jee-7 and ninija in default-jdk9-and-above profile

* JAVA-21106 : Changes made for adding resteasy,spark-java,struts-3,vraptor,wicket in default-jdk9-and-above profile

* JAVA-21106 : Changes made for removing ninja module

* JAVA-21106 : Changes made for removing ninja module fro  jdk-9 and above

* JAVA-21106: Changes made for cleaninhg pom.xml

* JAVA-21106: FIXING MAVEN VERISON FOR WICKET

* Java 20277 (#14046)

* JAVA-20277 GitHub Issue: Regarding article Introduction to JsonPath

* JAVA-20277 Code Review Changes

* JAVA-20167 Upgrade spring-data hibernate with external libraries specific modules to JDK 11 (#14022)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-20166 Migrating spring-date-eclipselink (#13959)

* JAVA-20166 Migrating spring-date-eclipselink

* JAVA-20166 Fix failed tests address already bind

* JAVA-20166 Migrating spring-date-couchbase-2

* JAVA-20166 Replace with optional instead of returning null

---------

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11 (#13900)

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11

* JAVA-20164 Migrating java-jpa-2

* JAVA-20164 Migrating jnosql-artemis

* JAVA-20164 Migrating querydsl

* JAVA-20164 Migrating r2dbc

* JAVA-20164 Migrating redis

* JAVA-20164 Fixing test JPATextUnitTest#givenExam_whenSaveExam_thenReturnExpectedExam

* JAVA-20164 Fixing givenIdentityStrategy_whenCommitTransction_thenReturnPrimaryKey

* JAVA-20164 Changes after review

* JAVA-20164 Migrating java-cassandra to jdk8

* JAVA-20164 Fix legacy mode error

* Update pom.xml

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>

* BAEL-5905 move article

* BAEL-5947: Moving a project to a different package (#14054)

* Revert "feat: BAEL-5947 External Debugging with JMXTerm (#13847)"

This reverts commit ae04ab2510a5eb2e7b8c57e14474c6edadeb6883.

* BAEL-5947: Moving a project to a different package

* BAEL-4615: Create and Detect Memory Leak in Java (#14060)

* BAEL-6086: Customize WebFlux Exceptions in Spring Boot 3 (#13948)

* BAEL-6086: Added code for webflux default and custom exception along with Unit Tests

* BAEL-6086: added missing import

* BAEL-6086: reformatting

* BAEL-6086: reformatted code

---------

Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>

* BAEL-5575 (#14016)

* BAEL-5575

First commit of the example for the article:
https://drafts.baeldung.com/wp-admin/post.php?post=153774&action=edit

* BAEL-5575

Adjusted pom.xml

* BAEL-5575

Formatted source code

* BAEL-5575

Removed unused import

* BAEL-5575

Renamed UT to follow: https://docs.google.com/document/d/1iIeSPuYFG-jEtB8UbcxQnn2AI3OR2LWlnisNo2NUCL8/edit

* BAEL-5575

Modified pom.xml to define versions in  properties  as stated in:
https://docs.google.com/document/d/1iIeSPuYFG-jEtB8UbcxQnn2AI3OR2LWlnisNo2NUCL8/edit

* BAEL-5575

Changes checking the commands:
* mvn clean install
* mvn clean install -Dgib.enabled=false

* BAEL-5575

Set GB as the base language

* BAEL-6094 (#14043)

* Inital Commit for BAEL-6094

* Added the test

* Updated the test

* Convert Hashmap to JSON object in Java (#14070)

* Convert Hashmap to JSON object in Java

This commit is related to the article entitled "Convert Hashmap to JSON object in Java"

* Convert Hashmap to JSON object in Java

This commit is for the article "Convert Hashmap to JSON object in Java"

* Array vs List Performance in Java (#14078)

This commit is related to the article entitled "Array vs List Performance in Java"

* Bael-6331: Adding changes for creating and checking empty streams (#14047)

* BAEL-6331: Create EmptyStreams.java

* BAEL-6331: Create EmptyStreamsUnitTest.java

* JAVA-20163 Fix failed integration test with date creation comparison (#14080)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-21440: Changes made for upgrade jooby module to 2.16.1 to make j… (#14064)

* JAVA-21440: Chnages made for upgrade jooby module to 2.16.1 to make java-17 compatable

* JAVA-21440: commenting redis code as this will only work in the local or infra should have a redis setup

* JAVA-21440 Minor cleanup (#14084)

* Delete README.md

* removed optional specific function

* changing unit test class name

* BAEL-6250: refactor: Move to spring-caching-2 since spring-caching is full

* Update README.md

* Update README.md

* BAEL-6460: Why is Scanner skipping nextLine() after using other next functions? (#14079)

* changing branch

* BAEL-6334 Make object properties example clearer

* [BAEL-6344] address PR comment

* JAVA-21305 : Changes made for adding ratpack module to jdk9-and above… (#14012)

* JAVA-21106 : Changes made for adding ratpack module to jdk9-and above module

* JAVA-21106 : Changes made for adding java-lite module to jdk9-and above module

* JAVA-21305: Changes made for cleaninhg pom.xml

* JAVA-21305: Changes made for cleaning pom.xml

* BOSS-21305: changes made for adding ninja in jdk9 above modeule

* JAVA-21305: Changes made as per review comments

* JAVA-21305: Changes made as per review comments

* JAVA-21305: Changes made as per review comments

* [JAVA-21134] (#14045)

* [JAVA-21134] Removed external repository from jgit module

* [JAVA-21134] Removed external repository from aws-miscellaneous module + upgraded dynamodblocal version

* [JAVA-21134] Removed external repository from apache-tapestry module

* TASK-20628 (#14074)

* [TASK-20628] Moved xml module to jdk9-and-above profile

* [TASK-20628] Moved xml-2 module to jdk9-and-above profile

* [JAVA-15027]Upgraded follow redirects for apache http client + moved … (#14092)

* [JAVA-15027]Upgraded follow redirects for apache http client + moved older version to apache-httpclient4 module

* [JAVA-15027] Added test case

* BAEL-6508 Code for the Solving Gson Parsing Errors article

* JAVA-21189: Formatting pom.xml modules starting from KLM (#14096)

* JAVA-21189: Formatting pom.xml modules starting from NOPQR (#14097)

* JAVA-21189: Formatting pom.xml modules starting from NOPQR (#14097)

* java-20079: upgrade apache-spark module libraries (#14087)

* [scanner-with-spaces] how to take input as String with spaces in Java… (#14044)

* [scanner-with-spaces] how to take input as String with spaces in Java using Scanner?y

* [scanner-with-spaces] fix typo

* [output-to-file] Write Console Output to Text File in Java (#14082)

* [output-to-file] Write Console Output to Text File in Java

* [output-to-file] rebase on the master

* Convert Hashmap to JSON object in Java (#14110)

This commit is for Convert Hashmap to JSON object in Java

* Generating Javadoc with Gradle (#14091)

* Generating Javadoc with Gradle

* Generating Javadoc with Gradle

* Generating Javadoc with Gradle

* BAEL-6179: Fix readme (#14088)

* BAEL-6179: Add Actuator sample without Spring Boot

* BAEL-6179: Simplify custom health indicator

* BAEL-6179: Fix description in README.md

* JAVA-21189:  changes made for formatting modules starting from S (#14106)

* JAVA-21189:  changes made for formatting modules starting from TVWX (#14107)

* JAVA_21305: Changes made for fix the Integration test faliures (#14113)

* JAVA-20164 Fix .._SEQ.NEXTVAL error (#14109)

Co-authored-by: timis1 <noreplay@yahoo.com>

* JAVA-15022 (#14099)

* [JAVA-15022] Moved 4.5 version code to apache-httpclient4 module

* [JAVA-15022] Upgraded code to 5.x version

* Array vs List Performance in Java (#14114)

This commit is related to the article entitled "Array vs List Performance in Java"

* BAEL-6461: What's the difference between Scanner next() and nextLine() methods? (#14057)

* JAVA-19670: changes made for upgrading jenkins module to jdk-9 above (#14105)

* JAVA-19670: changes made for upgrading jenkins module to jdk-9 above

* JAVA-19670: Changes made for adding jenkins-modules in jdk-9 and above profile

* JAVA_21106: Changes made for fixing test cases for jee-7 (#14115)

* Bael 5711: Securing Spring Boot API with API key and secret (#14102)

* #bael-5711: add source

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: remove extra space

* #bael-5711: add custom message

* #bael-5711: refactor return null

---------

Co-authored-by: h_sharifi <h_sharifi@modernisc.com>

---------

Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
Co-authored-by: 3hsan <56245694+ehsansasanian@users.noreply.github.com>
Co-authored-by: edizor <113095366+edizor@users.noreply.github.com>
Co-authored-by: Vini <34344290+vinipx@users.noreply.github.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
Co-authored-by: jsgrah-spring <jsgrah@hotmail.com>
Co-authored-by: jogra <joseph.sterling.grah@miles.no>
Co-authored-by: Azhwani <13301425+azhwani@users.noreply.github.com>
Co-authored-by: Kai Yuan <kent.yuan@Gmail.com>
Co-authored-by: panos-kakos <102670093+panos-kakos@users.noreply.github.com>
Co-authored-by: Michael Olayemi <michaelolayemi28@gmail.com>
Co-authored-by: mariudotsh <33603097+mariudotsh@users.noreply.github.com>
Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>
Co-authored-by: anuragkumawat <anuragkumawat7@gmail.com>
Co-authored-by: Bipin kumar <sayy2bipin@gmail.com>
Co-authored-by: Shaun Phillips <61982125+ShaPhi7@users.noreply.github.com>
Co-authored-by: Alejamdro <alemolerio@gmail.com>
Co-authored-by: Daniel Strmecki <daniel.strmecki@gmail.com>
Co-authored-by: Arya <108480101+Dazzle-10@users.noreply.github.com>
Co-authored-by: Ana Peterlić <apeterlic@gmail.com>
Co-authored-by: Zahid Khan <63726443+zahikhan@users.noreply.github.com>
Co-authored-by: emanuel.trandafir <emanuel.trandafir@betvictor.com>
Co-authored-by: Kasra Madadipouya <kasra_mp@yahoo.com>
Co-authored-by: uzma <uzma.nasir@gmail.com>
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
Co-authored-by: ACHRAF TAITAI <43656331+achraftt@users.noreply.github.com>
Co-authored-by: Avin Buricha <avin.buricha@gmail.com>
Co-authored-by: Ulisses Lima <ulisseslima@users.noreply.github.com>
Co-authored-by: Bhaskar Ghosh Dastidar <dastidar.bhaskar@gmail.com>
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
Co-authored-by: Zahid Khan <Zahid.khan@globalpay.com>
Co-authored-by: Raj Kishor <30443297+rajkishorraj@users.noreply.github.com>
Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>
Co-authored-by: Gaetano Piazzolla <gae.piaz@gmail.com>
Co-authored-by: Eugene Kovko <37694937+eukovko@users.noreply.github.com>
Co-authored-by: Bahaa El-Din Helmy <bahaavampire@yahoo.com>
Co-authored-by: davidmartinezbarua <davmb5@gmail.com>
Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
Co-authored-by: Grzegorz Musiał <grzegorz@musial.tk>
Co-authored-by: Kilian Schneider <48420258+Basler182@users.noreply.github.com>
Co-authored-by: cesarevalenti90 <50798547+cesarevalenti90@users.noreply.github.com>
Co-authored-by: Cesare <cesare.valenti@hotmail.com>
Co-authored-by: brokenhardisk <brokenhardisk@gmail.com>
Co-authored-by: Sam Gardner <samgardner909@gmail.com>
Co-authored-by: timis1 <12120641+timis1@users.noreply.github.com>
Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Dmytro Budym <46810751+dbudim@users.noreply.github.com>
Co-authored-by: Vartika Nigam <63852792+vnigam2702@users.noreply.github.com>
Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
Co-authored-by: emanueltrandafir1993 <emanueltrandafir1993@gmail.com>
Co-authored-by: Ehsan Sasanianno <ehsan.sasanian@gmail.com>
Co-authored-by: Dileesha Rajapakse <dileesha@wso2.com>
Co-authored-by: Maciej Główka <maciejglowka.pl@gmail.com>
Co-authored-by: thibaultfaure <thibault.faure.pro@gmail.com>
Co-authored-by: Saikat Chakraborty <40471715+saikatcse03@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@perrio.io>
Co-authored-by: Hamid Reza Sharifi <hmdrzsharifi@gmail.com>
Co-authored-by: h_sharifi <h_sharifi@modernisc.com>
Co-authored-by: Ralf Ueberfuhr <40685729+ueberfuhr@users.noreply.github.com>
Co-authored-by: Deboshree <deboshree.banerjee@cred.club>
Co-authored-by: AndiCover <a.schoengruber@gmx.net>
Co-authored-by: Balamurugan <balamurugan.radhakrishnan@gmail.com>
Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>
Co-authored-by: victorsempere <victor.sempere1@gmail.com>
Co-authored-by: Muhammad Asif <muasif80@gmail.com>
Co-authored-by: vaibhav007jain <72961247+vaibhav007jain@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@gmail.com>
Co-authored-by: ciphx <wordcipherer@gmail.com>

* [BAEL-5934] code formatting and adding submodule

* [BAEL-5934] print s3 objects

* [BAEL-5934] add subpackage

---------

Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
Co-authored-by: 3hsan <56245694+ehsansasanian@users.noreply.github.com>
Co-authored-by: edizor <113095366+edizor@users.noreply.github.com>
Co-authored-by: Vini <34344290+vinipx@users.noreply.github.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
Co-authored-by: jsgrah-spring <jsgrah@hotmail.com>
Co-authored-by: jogra <joseph.sterling.grah@miles.no>
Co-authored-by: Azhwani <13301425+azhwani@users.noreply.github.com>
Co-authored-by: Kai Yuan <kent.yuan@Gmail.com>
Co-authored-by: panos-kakos <102670093+panos-kakos@users.noreply.github.com>
Co-authored-by: Michael Olayemi <michaelolayemi28@gmail.com>
Co-authored-by: mariudotsh <33603097+mariudotsh@users.noreply.github.com>
Co-authored-by: Mariusz Kaczmarczyk <to@mariu.sh>
Co-authored-by: anuragkumawat <anuragkumawat7@gmail.com>
Co-authored-by: Bipin kumar <sayy2bipin@gmail.com>
Co-authored-by: Shaun Phillips <61982125+ShaPhi7@users.noreply.github.com>
Co-authored-by: Alejamdro <alemolerio@gmail.com>
Co-authored-by: Daniel Strmecki <daniel.strmecki@gmail.com>
Co-authored-by: Arya <108480101+Dazzle-10@users.noreply.github.com>
Co-authored-by: Ana Peterlić <apeterlic@gmail.com>
Co-authored-by: Zahid Khan <63726443+zahikhan@users.noreply.github.com>
Co-authored-by: emanuel.trandafir <emanuel.trandafir@betvictor.com>
Co-authored-by: Kasra Madadipouya <kasra_mp@yahoo.com>
Co-authored-by: uzma <uzma.nasir@gmail.com>
Co-authored-by: thibault.faure <thibault.faure@mimacom.com>
Co-authored-by: ACHRAF TAITAI <43656331+achraftt@users.noreply.github.com>
Co-authored-by: Avin Buricha <avin.buricha@gmail.com>
Co-authored-by: Ulisses Lima <ulisseslima@users.noreply.github.com>
Co-authored-by: Bhaskar Ghosh Dastidar <dastidar.bhaskar@gmail.com>
Co-authored-by: Bhaskar <bhaskar.dastidar@freshworks.com>
Co-authored-by: Zahid Khan <Zahid.khan@globalpay.com>
Co-authored-by: Raj Kishor <30443297+rajkishorraj@users.noreply.github.com>
Co-authored-by: raj kishor <raj.kishor@smartcoin.co.in>
Co-authored-by: Gaetano Piazzolla <gae.piaz@gmail.com>
Co-authored-by: Eugene Kovko <37694937+eukovko@users.noreply.github.com>
Co-authored-by: Bahaa El-Din Helmy <bahaavampire@yahoo.com>
Co-authored-by: davidmartinezbarua <davmb5@gmail.com>
Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
Co-authored-by: Grzegorz Musiał <grzegorz@musial.tk>
Co-authored-by: Kilian Schneider <48420258+Basler182@users.noreply.github.com>
Co-authored-by: cesarevalenti90 <50798547+cesarevalenti90@users.noreply.github.com>
Co-authored-by: Cesare <cesare.valenti@hotmail.com>
Co-authored-by: brokenhardisk <brokenhardisk@gmail.com>
Co-authored-by: Sam Gardner <samgardner909@gmail.com>
Co-authored-by: timis1 <12120641+timis1@users.noreply.github.com>
Co-authored-by: n <noreplay@yahoo.com>
Co-authored-by: Dmytro Budym <46810751+dbudim@users.noreply.github.com>
Co-authored-by: Vartika Nigam <63852792+vnigam2702@users.noreply.github.com>
Co-authored-by: Vartika_Nigam <Vartika_Nigam@DellTeam.com>
Co-authored-by: emanueltrandafir1993 <emanueltrandafir1993@gmail.com>
Co-authored-by: Ehsan Sasanianno <ehsan.sasanian@gmail.com>
Co-authored-by: Dileesha Rajapakse <dileesha@wso2.com>
Co-authored-by: Maciej Główka <maciejglowka.pl@gmail.com>
Co-authored-by: thibaultfaure <thibault.faure.pro@gmail.com>
Co-authored-by: Saikat Chakraborty <40471715+saikatcse03@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@perrio.io>
Co-authored-by: Hamid Reza Sharifi <hmdrzsharifi@gmail.com>
Co-authored-by: h_sharifi <h_sharifi@modernisc.com>
Co-authored-by: Ralf Ueberfuhr <40685729+ueberfuhr@users.noreply.github.com>
Co-authored-by: Deboshree <deboshree.banerjee@cred.club>
Co-authored-by: AndiCover <a.schoengruber@gmx.net>
Co-authored-by: Balamurugan <balamurugan.radhakrishnan@gmail.com>
Co-authored-by: balasr3 <balamurugan.radhakrishnan@imgarena.com>
Co-authored-by: victorsempere <victor.sempere1@gmail.com>
Co-authored-by: Muhammad Asif <muasif80@gmail.com>
Co-authored-by: vaibhav007jain <72961247+vaibhav007jain@users.noreply.github.com>
Co-authored-by: Andrew Tarry <andrew.tarry@gmail.com>
Co-authored-by: ciphx <wordcipherer@gmail.com>
This commit is contained in:
Viktor Ardelean 2023-06-18 18:43:01 +03:00 committed by GitHub
parent 43fc8b38ea
commit 0f93526c25
8 changed files with 373 additions and 0 deletions

View File

@ -0,0 +1,50 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung.s3</groupId>
<artifactId>aws-s3-v2</artifactId>
<version>1.0-SNAPSHOT</version>
<name>aws-s3-v2</name>
<packaging>jar</packaging>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>aws-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<aws.java.sdk.version>2.20.52</aws.java.sdk.version>
<maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>${aws.java.sdk.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,21 @@
package com.baeldung.s3.listobjects;
import java.nio.ByteBuffer;
public class File {
private String name;
private ByteBuffer content;
public File(String name, ByteBuffer content) {
this.name = name;
this.content = content;
}
public String getName() {
return name;
}
public ByteBuffer getContent() {
return content;
}
}

View File

@ -0,0 +1,27 @@
package com.baeldung.s3.listobjects;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class FileGenerator {
public static List<File> generateFiles(int fileCount, int fileSize) {
List<File> files = new ArrayList<>();
for (int i = 0; i < fileCount; i++) {
String fileName = "file_" + i + ".txt";
ByteBuffer fileContent = generateRandomBytes(fileSize);
files.add(new File(fileName, fileContent));
}
return files;
}
private static ByteBuffer generateRandomBytes(int size) {
byte[] array = new byte[size];
new Random().nextBytes(array);
return ByteBuffer.wrap(array);
}
}

View File

@ -0,0 +1,22 @@
package com.baeldung.s3.listobjects;
import software.amazon.awssdk.regions.Region;
public class Main {
private static String AWS_BUCKET = "baeldung-tutorial-s3";
public static Region AWS_REGION = Region.EU_CENTRAL_1;
public static void main(String[] args) {
S3Service s3Service = new S3Service(AWS_REGION);
s3Service.putObject(AWS_BUCKET, FileGenerator.generateFiles(1000, 1));
s3Service.listBuckets();
s3Service.listObjectsInBucket(AWS_BUCKET);
s3Service.listAllObjectsInBucket(AWS_BUCKET);
s3Service.listAllObjectsInBucketPaginated(AWS_BUCKET, 500);
s3Service.listAllObjectsInBucketPaginatedWithPrefix(AWS_BUCKET, 500, "backup/");
s3Service.cleanup();
}
}

View File

@ -0,0 +1,129 @@
package com.baeldung.s3.listobjects;
import java.util.List;
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.*;
import software.amazon.awssdk.services.s3.paginators.ListObjectsV2Iterable;
class S3Service {
private S3Client s3Client;
public S3Service(Region awsRegion) {
init(awsRegion);
}
public S3Service(S3Client s3Client) {
this.s3Client = s3Client;
}
public void init(Region awsRegion) {
this.s3Client = S3Client.builder()
.region(awsRegion)
.credentialsProvider(ProfileCredentialsProvider.create("default"))
.build();
}
public void listObjectsInBucket(String bucketName) {
ListObjectsV2Request listObjectsV2Request = ListObjectsV2Request.builder()
.bucket(bucketName)
.build();
ListObjectsV2Response listObjectsV2Response = s3Client.listObjectsV2(listObjectsV2Request);
List<S3Object> contents = listObjectsV2Response.contents();
System.out.println("Number of objects in the bucket: " + contents.stream().count());
contents.stream().forEach(System.out::println);
}
public void listAllObjectsInBucket(String bucketName) {
String nextContinuationToken = null;
long totalObjects = 0;
do {
ListObjectsV2Request.Builder requestBuilder = ListObjectsV2Request.builder()
.bucket(bucketName)
.continuationToken(nextContinuationToken);
ListObjectsV2Response response = s3Client.listObjectsV2(requestBuilder.build());
nextContinuationToken = response.nextContinuationToken();
totalObjects += response.contents().stream()
.peek(System.out::println)
.reduce(0, (subtotal, element) -> subtotal + 1, Integer::sum);
} while (nextContinuationToken != null);
System.out.println("Number of objects in the bucket: " + totalObjects);
}
public void listAllObjectsInBucketPaginated(String bucketName, int pageSize) {
ListObjectsV2Request listObjectsV2Request = ListObjectsV2Request.builder()
.bucket(bucketName)
.maxKeys(pageSize) // Set the maxKeys parameter to control the page size
.build();
ListObjectsV2Iterable listObjectsV2Iterable = s3Client.listObjectsV2Paginator(listObjectsV2Request);
long totalObjects = 0;
for (ListObjectsV2Response page : listObjectsV2Iterable) {
long retrievedPageSize = page.contents().stream()
.peek(System.out::println)
.reduce(0, (subtotal, element) -> subtotal + 1, Integer::sum);
totalObjects += retrievedPageSize;
System.out.println("Page size: " + retrievedPageSize);
}
System.out.println("Total objects in the bucket: " + totalObjects);
}
public void listAllObjectsInBucketPaginatedWithPrefix(String bucketName, int pageSize, String prefix) {
ListObjectsV2Request listObjectsV2Request = ListObjectsV2Request.builder()
.bucket(bucketName)
.maxKeys(pageSize) // Set the maxKeys parameter to control the page size
.prefix(prefix)
.build();
ListObjectsV2Iterable listObjectsV2Iterable = s3Client.listObjectsV2Paginator(listObjectsV2Request);
long totalObjects = 0;
for (ListObjectsV2Response page : listObjectsV2Iterable) {
long retrievedPageSize = page.contents().stream()
.peek(System.out::println)
.reduce(0, (subtotal, element) -> subtotal + 1, Integer::sum);
totalObjects += retrievedPageSize;
System.out.println("Page size: " + retrievedPageSize);
}
System.out.println("Total objects in the bucket: " + totalObjects);
}
public void listBuckets() {
// List all buckets
ListBucketsResponse listBucketsResponse = s3Client.listBuckets();
// Display the bucket names
List<Bucket> buckets = listBucketsResponse.buckets();
System.out.println("Buckets:");
for (Bucket bucket : buckets) {
System.out.println(bucket.name());
}
}
public void putObject(String bucketName, List<File> files) {
try {
files.stream().forEach(file -> {
s3Client.putObject(PutObjectRequest.builder().bucket(bucketName).key(file.getName()).build(),
RequestBody.fromByteBuffer(file.getContent()));
System.out.println("Uploaded file: " + file.getName());
});
} catch (S3Exception e) {
System.err.println("Upload failed");
e.printStackTrace();
}
}
public void cleanup() {
this.s3Client.close();
}
}

View File

@ -0,0 +1,14 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
<!-- Change the log level for software.amazon.awssdk -->
<logger name="software.amazon.awssdk" level="info" />
</configuration>

View File

@ -0,0 +1,109 @@
package com.baeldung.s3.listobjects;
import com.baeldung.s3.listobjects.S3Service;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.ListBucketsResponse;
import software.amazon.awssdk.services.s3.model.ListObjectsV2Request;
import software.amazon.awssdk.services.s3.model.ListObjectsV2Response;
import software.amazon.awssdk.services.s3.model.S3Object;
import software.amazon.awssdk.services.s3.paginators.ListObjectsV2Iterable;
import java.util.Arrays;
import java.util.Collections;
import static org.mockito.Mockito.when;
class S3ServiceLiveTest {
@Mock
private S3Client s3Client;
private S3Service s3Service;
private String AWS_BUCKET = "baeldung-tutorial-s3";
@BeforeEach
public void setup() {
MockitoAnnotations.openMocks(this);
s3Service = new S3Service(s3Client);
}
@AfterEach
public void cleanup() {
s3Service.cleanup();
Mockito.verify(s3Client).close();
}
@Test
public void givenBucketName_whenListObjectsInBucket_thenReturnList() {
ListObjectsV2Request request = ListObjectsV2Request.builder().bucket(AWS_BUCKET).build();
ListObjectsV2Response response = ListObjectsV2Response.builder().contents(Collections.emptyList()).build();
when(s3Client.listObjectsV2(request)).thenReturn(response);
s3Service.listObjectsInBucket(AWS_BUCKET);
Mockito.verify(s3Client).listObjectsV2(request);
}
@Test
public void givenBucketName_whenListAllObjectsInBucket_thenReturnList() {
ListObjectsV2Request request = ListObjectsV2Request.builder().bucket(AWS_BUCKET).build();
ListObjectsV2Response response = ListObjectsV2Response.builder().contents(Collections.emptyList()).build();
when(s3Client.listObjectsV2(request)).thenReturn(response);
s3Service.listAllObjectsInBucket(AWS_BUCKET);
Mockito.verify(s3Client).listObjectsV2(request);
}
@Test
public void givenBucketNameAndPageSize_whenListAllObjectsInBucketPaginated_thenReturnPaginatedList() {
int pageSize = 10;
ListObjectsV2Request request = ListObjectsV2Request.builder().bucket(AWS_BUCKET).maxKeys(pageSize).build();
ListObjectsV2Iterable mockIterable = Mockito.mock(ListObjectsV2Iterable.class);
S3Object s3Object1 = S3Object.builder().key("object1").build();
S3Object s3Object2 = S3Object.builder().key("object2").build();
ListObjectsV2Response response = ListObjectsV2Response.builder().contents(s3Object1, s3Object2).build();
when(s3Client.listObjectsV2Paginator(request)).thenReturn(mockIterable);
when(mockIterable.iterator()).thenReturn(Arrays.asList(response).iterator());
s3Service.listAllObjectsInBucketPaginated(AWS_BUCKET, pageSize);
Mockito.verify(s3Client).listObjectsV2Paginator(request);
}
@Test
public void givenBucketNamePageSizeAndPrefix_whenListAllObjectsInBucketPaginatedWithPrefix_thenReturnPaginatedList() {
int pageSize = 1;
String prefix = "folder/";
ListObjectsV2Request request = ListObjectsV2Request.builder().bucket(AWS_BUCKET).maxKeys(pageSize).prefix(prefix).build();
ListObjectsV2Iterable mockIterable = Mockito.mock(ListObjectsV2Iterable.class);
S3Object s3Object1 = S3Object.builder().key("folder/object1").build();
S3Object s3Object2 = S3Object.builder().key("folder/object2").build();
ListObjectsV2Response response = ListObjectsV2Response.builder().contents(s3Object1, s3Object2).build();
when(s3Client.listObjectsV2Paginator(request)).thenReturn(mockIterable);
when(mockIterable.iterator()).thenReturn(Arrays.asList(response).iterator());
s3Service.listAllObjectsInBucketPaginatedWithPrefix(AWS_BUCKET, pageSize, prefix);
Mockito.verify(s3Client).listObjectsV2Paginator(request);
}
@Test
public void whenListBuckets_thenReturnBucketList() {
when(s3Client.listBuckets()).thenReturn(ListBucketsResponse.builder().buckets(Collections.emptyList()).build());
s3Service.listBuckets();
Mockito.verify(s3Client).listBuckets();
}
}

View File

@ -19,6 +19,7 @@
<module>aws-miscellaneous</module>
<module>aws-reactive</module>
<module>aws-s3</module>
<module>aws-s3-v2</module>
</modules>
<properties>