Dhawal Kapil 1ab0a19d25 Java 3590 (#11367) (#11380)
* Java 3590 (#11367)

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

* resolving unnecessary mockito stubbings exception

* adding junit-bom in dependency management

* fixing tests which were not getting discovered

* Revert "fixing tests which were not getting discovered"

This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263.

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

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

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

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

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

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

* updated failsafe plugin configuration to skip integration tests in blade

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

* fixing tests in libraries and libraries-2 modules

Co-authored-by: chaos2418 <>

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

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

* resolving unnecessary mockito stubbings exception

* adding junit-bom in dependency management

* fixing tests which were not getting discovered

* Revert "fixing tests which were not getting discovered"

This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263.

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

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

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

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

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

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

* updated failsafe plugin configuration to skip integration tests in blade

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

* fixing tests in libraries and libraries-2 modules

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

Co-authored-by: chaos2418 <>

Co-authored-by: chaos2418 <92030908+chaos2418@users.noreply.github.com>
2021-10-29 09:37:04 +05:30
2021-05-06 17:14:43 +05:30
2021-10-29 09:37:04 +05:30
2021-05-06 17:14:43 +05:30
2021-10-29 09:37:04 +05:30
2021-09-24 14:53:08 +08:00
2021-10-29 09:37:04 +05:30
2021-09-29 23:32:13 +08:00
2021-05-06 17:14:43 +05:30
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-07-29 03:38:54 +08:00
2021-10-29 09:37:04 +05:30
2021-10-28 01:48:10 +08:00
2021-10-29 09:37:04 +05:30
2021-09-24 14:09:33 +08:00
2020-09-16 23:55:27 +08:00
2020-03-18 13:24:46 +08:00
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2020-07-07 14:18:10 +03:00
2021-10-28 01:54:57 +08:00
2021-07-22 01:16:53 +08:00
2021-08-25 21:51:24 +08:00
2021-09-26 08:58:09 +05:30
2021-09-24 13:43:30 +08:00
2021-10-29 09:37:04 +05:30
2020-05-12 15:29:06 +08:00
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-07-07 23:22:36 +08:00
2021-10-25 16:35:06 +05:30
2021-06-24 04:03:36 +08:00
2020-07-21 21:57:20 +08:00
2021-05-24 13:47:38 +02:00
2021-10-29 09:37:04 +05:30
2021-09-24 13:46:29 +08:00
2021-10-29 09:37:04 +05:30
2020-07-07 14:18:10 +03:00
2021-09-24 13:23:31 +08:00
2020-07-07 14:18:10 +03:00
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-10-29 09:37:04 +05:30
2021-09-22 22:43:18 +08:00
2020-03-18 12:32:33 +08:00
2021-09-24 12:56:21 +08:00
2021-10-29 09:37:04 +05:30
2021-10-21 22:00:30 +08:00
2021-10-29 09:37:04 +05:30
2021-10-21 22:10:30 +08:00
2021-06-18 13:35:56 +05:30
2021-10-15 08:58:53 +05:30
2021-09-22 22:38:44 +08:00
2021-09-24 15:05:35 +08:00
2021-10-29 09:37:04 +05:30
2021-05-27 01:03:35 +08:00
2021-10-29 09:37:04 +05:30
2021-09-24 13:38:57 +08:00
2021-09-09 00:35:27 +08:00
2020-05-12 16:34:14 +08:00
2021-10-29 09:37:04 +05:30
2021-10-18 13:30:21 +02:00
2021-10-29 09:37:04 +05:30
2020-10-31 12:07:35 +02:00

The Courses

Here's the new "Learn Spring" course:
>> LEARN SPRING - THE MASTER CLASS

Here's the Master Class of "REST With Spring" (along with the new announced Boot 2 material):
>> THE REST WITH SPRING - MASTER CLASS

And here's the Master Class of "Learn Spring Security":
>> LEARN SPRING SECURITY - MASTER CLASS

Java and Spring Tutorials

This project is a collection of small and focused tutorials - each covering a single and well defined area of development in the Java ecosystem. A strong focus of these is, of course, the Spring Framework - Spring, Spring Boot and Spring Security. In additional to Spring, the modules here are covering a number of aspects in Java.

Profile based segregation

We are using maven build profiles to segregate the huge list of individual projects we have in our repository.

The projects are broadly divided into 3 list: first, second and heavy.

Next, they are segregated further on the basis of tests that we want to execute.

Therefore, we have a total of 6 profiles:

Profile Includes Type of test enabled
default-first First set of projects *UnitTest
integration-lite-first First set of projects *IntegrationTest
default-second Second set of projects *UnitTest
integration-lite-second Second set of projects *IntegrationTest
default-heavy Heavy/long running projects *UnitTest
integration-heavy Heavy/long running projects *IntegrationTest

Building the project

Though it should not be needed often to build the entire repository at once because we are usually concerned with a specific module.

But if we want to, we can invoke the below command from the root of the repository if we want to build the entire repository with only Unit Tests enabled:

mvn clean install -Pdefault-first,default-second,default-heavy

or if we want to build the entire repository with Integration Tests enabled, we can do:

mvn clean install -Pintegration-lite-first,integration-lite-second,integration-heavy

Building a single module

To build a specific module run the command: mvn clean install in the module directory

Running a Spring Boot module

To run a Spring Boot module run the command: mvn spring-boot:run in the module directory

Working with the IDE

This repo contains a large number of modules. When you're working with an individual module, there's no need to import all of them (or build all of them) - you can simply import that particular module in either Eclipse or IntelliJ.

Running Tests

The command mvn clean install from within a module will run the unit tests in that module. For Spring modules this will also run the SpringContextTest if present.

To run the integration tests, use the command:

mvn clean install -Pintegration-lite-first or

mvn clean install -Pintegration-lite-second or

mvn clean install -Pintegration-heavy

depending on the list where our module exists

Languages
Java 88%
HTML 3.6%
JavaScript 2.7%
TypeScript 2.4%
CSS 1.5%
Other 1%