Skip to content

Commit 5089ebd

Browse files
author
Greg Martin
committed
Moved the HelpfulNullPointerException code to the npe package.
Merge remote-tracking branch 'upstream/master'
2 parents 44e71e8 + 2a21f8f commit 5089ebd

2,055 files changed

Lines changed: 38333 additions & 12620 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ ninja/devDb.mv.db
7373
**/out-tsc
7474
**/nbproject/
7575
**/nb-configuration.xml
76-
core-scala/.cache-main
77-
core-scala/.cache-tests
7876

7977

8078
persistence-modules/hibernate5/transaction.log

README.md

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,38 @@ This project is **a collection of small and focused tutorials** - each covering
2222
A strong focus of these is, of course, the Spring Framework - Spring, Spring Boot and Spring Security.
2323
In additional to Spring, the modules here are covering a number of aspects in Java.
2424

25+
Profile based segregation
26+
====================
27+
28+
We are using maven build profiles to segregate the huge list of individual projects we have in our repository.
29+
30+
The projects are broadly divided into 3 list: first, second and heavy.
31+
32+
Next, they are segregated further on the basis of tests that we want to execute.
33+
34+
Therefore, we have a total of 6 profiles:
35+
36+
| Profile | Includes | Type of test enabled |
37+
| ----------------------- | --------------------------- | -------------------- |
38+
| default-first | First set of projects | *UnitTest |
39+
| integration-lite-first | First set of projects | *IntegrationTest |
40+
| default-second | Second set of projects | *UnitTest |
41+
| integration-lite-second | Second set of projects | *IntegrationTest |
42+
| default-heavy | Heavy/long running projects | *UnitTest |
43+
| integration-heavy | Heavy/long running projects | *IntegrationTest |
2544

2645
Building the project
2746
====================
28-
To do the full build, do: `mvn clean install`
47+
48+
Though it should not be needed often to build the entire repository at once because we are usually concerned with a specific module.
49+
50+
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:
51+
52+
`mvn clean install -Pdefault-first,default-second,default-heavy`
53+
54+
or if we want to build the entire repository with Integration Tests enabled, we can do:
55+
56+
`mvn clean install -Pintegration-lite-first,integration-lite-second,integration-heavy`
2957

3058

3159
Building a single module
@@ -46,8 +74,18 @@ When you're working with an individual module, there's no need to import all of
4674

4775
Running Tests
4876
=============
49-
The command `mvn clean install` will run the unit tests in a module.
50-
To run the integration tests, use the command `mvn clean install -Pintegration-lite-first`
77+
The command `mvn clean install` from within a module will run the unit tests in that module.
78+
For Spring modules this will also run the `SpringContextTest` if present.
79+
80+
To run the integration tests, use the command:
81+
82+
`mvn clean install -Pintegration-lite-first` or
83+
84+
`mvn clean install -Pintegration-lite-second` or
85+
86+
`mvn clean install -Pintegration-heavy`
87+
88+
depending on the list where our module exists
5189

5290

5391

algorithms-miscellaneous-3/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ This module contains articles about algorithms. Some classes of algorithms, e.g.
1313
- [Checking if a Java Graph has a Cycle](https://www.baeldung.com/java-graph-has-a-cycle)
1414
- [A Guide to the Folding Technique in Java](https://www.baeldung.com/folding-hashing-technique)
1515
- [Creating a Triangle with for Loops in Java](https://www.baeldung.com/java-print-triangle)
16-
- [Efficient Word Frequency Calculator in Java](https://www.baeldung.com/java-word-frequency)
1716
- [The K-Means Clustering Algorithm in Java](https://www.baeldung.com/java-k-means-clustering-algorithm)
1817
- More articles: [[<-- prev]](/algorithms-miscellaneous-2) [[next -->]](/algorithms-miscellaneous-4)

algorithms-miscellaneous-5/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ This module contains articles about algorithms. Some classes of algorithms, e.g.
1919
- [Balanced Brackets Algorithm in Java](https://www.baeldung.com/java-balanced-brackets-algorithm)
2020
- [Efficiently Merge Sorted Java Sequences](https://www.baeldung.com/java-merge-sorted-sequences)
2121
- [Introduction to Greedy Algorithms with Java](https://www.baeldung.com/java-greedy-algorithms)
22+
- [The Caesar Cipher in Java](https://www.baeldung.com/java-caesar-cipher)
2223
- More articles: [[<-- prev]](/../algorithms-miscellaneous-4)

algorithms-miscellaneous-5/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@
4141
<artifactId>guava</artifactId>
4242
<version>${guava.version}</version>
4343
</dependency>
44-
<dependency>
45-
<groupId>com.fasterxml.jackson.core</groupId>
46-
<artifactId>jackson-databind</artifactId>
47-
<version>${jackson.version}</version>
48-
</dependency>
4944
<dependency>
5045
<groupId>org.junit.platform</groupId>
5146
<artifactId>junit-platform-commons</artifactId>
@@ -78,7 +73,6 @@
7873
<commons-codec.version>1.11</commons-codec.version>
7974
<commons-math3.version>3.6.1</commons-math3.version>
8075
<guava.version>28.1-jre</guava.version>
81-
<jackson.version>2.10.2</jackson.version>
8276
<junit.platform.version>1.6.0</junit.platform.version>
8377
</properties>
8478

algorithms-miscellaneous-5/src/main/java/com/baeldung/algorithms/boruvka/BoruvkaMST.java

Lines changed: 0 additions & 61 deletions
This file was deleted.

algorithms-miscellaneous-5/src/main/java/com/baeldung/algorithms/boruvka/DisjointSet.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

algorithms-miscellaneous-5/src/main/java/com/baeldung/algorithms/boruvka/Edge.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

algorithms-miscellaneous-5/src/main/java/com/baeldung/algorithms/boruvka/Graph.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

algorithms-miscellaneous-5/src/main/java/com/baeldung/algorithms/boruvka/Input.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)