From 3311856604a9836cbd9b49a0f458ce0e6aa0ff27 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Thu, 11 Jun 2020 14:32:12 +0200 Subject: [PATCH] Extract guava-2 --- guava-2/.gitignore | 13 +++++ guava-2/README.md | 6 +++ guava-2/pom.xml | 48 ++++++++++++++++++ .../guava/throwables}/ThrowablesUnitTest.java | 2 +- guava-2/src/test/resources/.gitignore | 13 +++++ guava-2/src/test/resources/test.out | 1 + guava-2/src/test/resources/test1.in | 1 + guava-2/src/test/resources/test1_1.in | 1 + guava-2/src/test/resources/test2.in | 4 ++ guava-2/src/test/resources/test_copy.in | 1 + guava-2/src/test/resources/test_le.txt | Bin 0 -> 4 bytes guava/README.md | 1 - pom.xml | 1 + 13 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 guava-2/.gitignore create mode 100644 guava-2/README.md create mode 100644 guava-2/pom.xml rename {guava/src/test/java/com/baeldung/guava => guava-2/src/test/java/com/baeldung/guava/throwables}/ThrowablesUnitTest.java (97%) create mode 100644 guava-2/src/test/resources/.gitignore create mode 100644 guava-2/src/test/resources/test.out create mode 100644 guava-2/src/test/resources/test1.in create mode 100644 guava-2/src/test/resources/test1_1.in create mode 100644 guava-2/src/test/resources/test2.in create mode 100644 guava-2/src/test/resources/test_copy.in create mode 100644 guava-2/src/test/resources/test_le.txt diff --git a/guava-2/.gitignore b/guava-2/.gitignore new file mode 100644 index 0000000000..83c05e60c8 --- /dev/null +++ b/guava-2/.gitignore @@ -0,0 +1,13 @@ +*.class + +#folders# +/target +/neoDb* +/data +/src/main/webapp/WEB-INF/classes +*/META-INF/* + +# Packaged files # +*.jar +*.war +*.ear \ No newline at end of file diff --git a/guava-2/README.md b/guava-2/README.md new file mode 100644 index 0000000000..c20fc3e7bd --- /dev/null +++ b/guava-2/README.md @@ -0,0 +1,6 @@ +## Guava + +This module contains articles a Google Guava + +### Relevant Articles: +- [Introduction to Guava Throwables](https://www.baeldung.com/guava-throwables) diff --git a/guava-2/pom.xml b/guava-2/pom.xml new file mode 100644 index 0000000000..df6d57bd09 --- /dev/null +++ b/guava-2/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + guava + 0.1.0-SNAPSHOT + guava + + + com.baeldung + parent-java + 0.0.1-SNAPSHOT + ../parent-java + + + + + org.apache.commons + commons-lang3 + ${commons-lang3.version} + + + + org.assertj + assertj-core + ${assertj.version} + test + + + + + guava + + + src/main/resources + true + + + + + + + 3.6.1 + + + \ No newline at end of file diff --git a/guava/src/test/java/com/baeldung/guava/ThrowablesUnitTest.java b/guava-2/src/test/java/com/baeldung/guava/throwables/ThrowablesUnitTest.java similarity index 97% rename from guava/src/test/java/com/baeldung/guava/ThrowablesUnitTest.java rename to guava-2/src/test/java/com/baeldung/guava/throwables/ThrowablesUnitTest.java index 7d33b38a0e..c1707f8903 100644 --- a/guava/src/test/java/com/baeldung/guava/ThrowablesUnitTest.java +++ b/guava-2/src/test/java/com/baeldung/guava/throwables/ThrowablesUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.guava; +package com.baeldung.guava.throwables; import com.google.common.base.Throwables; import org.junit.Test; diff --git a/guava-2/src/test/resources/.gitignore b/guava-2/src/test/resources/.gitignore new file mode 100644 index 0000000000..83c05e60c8 --- /dev/null +++ b/guava-2/src/test/resources/.gitignore @@ -0,0 +1,13 @@ +*.class + +#folders# +/target +/neoDb* +/data +/src/main/webapp/WEB-INF/classes +*/META-INF/* + +# Packaged files # +*.jar +*.war +*.ear \ No newline at end of file diff --git a/guava-2/src/test/resources/test.out b/guava-2/src/test/resources/test.out new file mode 100644 index 0000000000..7a79da3803 --- /dev/null +++ b/guava-2/src/test/resources/test.out @@ -0,0 +1 @@ +John Jane Adam Tom \ No newline at end of file diff --git a/guava-2/src/test/resources/test1.in b/guava-2/src/test/resources/test1.in new file mode 100644 index 0000000000..70c379b63f --- /dev/null +++ b/guava-2/src/test/resources/test1.in @@ -0,0 +1 @@ +Hello world \ No newline at end of file diff --git a/guava-2/src/test/resources/test1_1.in b/guava-2/src/test/resources/test1_1.in new file mode 100644 index 0000000000..8318c86b35 --- /dev/null +++ b/guava-2/src/test/resources/test1_1.in @@ -0,0 +1 @@ +Test \ No newline at end of file diff --git a/guava-2/src/test/resources/test2.in b/guava-2/src/test/resources/test2.in new file mode 100644 index 0000000000..622efea9e6 --- /dev/null +++ b/guava-2/src/test/resources/test2.in @@ -0,0 +1,4 @@ +John +Jane +Adam +Tom \ No newline at end of file diff --git a/guava-2/src/test/resources/test_copy.in b/guava-2/src/test/resources/test_copy.in new file mode 100644 index 0000000000..70c379b63f --- /dev/null +++ b/guava-2/src/test/resources/test_copy.in @@ -0,0 +1 @@ +Hello world \ No newline at end of file diff --git a/guava-2/src/test/resources/test_le.txt b/guava-2/src/test/resources/test_le.txt new file mode 100644 index 0000000000000000000000000000000000000000..f7cc484bf45e18b3fe4dea78290abf122bedbad1 GIT binary patch literal 4 LcmYdcU|;|M0h9n` literal 0 HcmV?d00001 diff --git a/guava/README.md b/guava/README.md index 9c650dbc1d..720aba274d 100644 --- a/guava/README.md +++ b/guava/README.md @@ -12,5 +12,4 @@ This module contains articles a Google Guava - [Guide to Mathematical Utilities in Guava](https://www.baeldung.com/guava-math) - [Bloom Filter in Java using Guava](https://www.baeldung.com/guava-bloom-filter) - [Quick Guide to the Guava RateLimiter](https://www.baeldung.com/guava-rate-limiter) -- [Introduction to Guava Throwables](https://www.baeldung.com/guava-throwables) - [Guava Cache](https://www.baeldung.com/guava-cache) diff --git a/pom.xml b/pom.xml index 20adc4bfef..1c4401750e 100644 --- a/pom.xml +++ b/pom.xml @@ -425,6 +425,7 @@ grpc gson guava + guava-2 guava-collections guava-collections-map guava-collections-set