Skip to content

Commit 37245fb

Browse files
committed
Move junit4 dependency to each module #317
1 parent f4e9902 commit 37245fb

File tree

24 files changed

+142
-34
lines changed

24 files changed

+142
-34
lines changed

fj-doc-base-json/pom.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@
4343
<dependency>
4444
<groupId>org.fugerit.java</groupId>
4545
<artifactId>fj-xml-to-json</artifactId>
46-
</dependency>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>junit</groupId>
50+
<artifactId>junit</artifactId>
51+
<scope>test</scope>
52+
</dependency>
4753

4854
</dependencies>
4955

fj-doc-base-kotlin/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@
9191
<version>${kotlin.version}</version>
9292
</dependency>
9393

94+
<dependency>
95+
<groupId>junit</groupId>
96+
<artifactId>junit</artifactId>
97+
<scope>test</scope>
98+
</dependency>
99+
94100
<dependency>
95101
<groupId>org.junit.jupiter</groupId>
96102
<artifactId>junit-jupiter-api</artifactId>

fj-doc-base-yaml/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
<groupId>com.fasterxml.jackson.dataformat</groupId>
5151
<artifactId>jackson-dataformat-yaml</artifactId>
5252
</dependency>
53+
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<scope>test</scope>
58+
</dependency>
5359

5460
</dependencies>
5561

fj-doc-base/pom.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@
7979
<version>2.3.34</version>
8080
<scope>test</scope>
8181
</dependency>
82-
82+
83+
<dependency>
84+
<groupId>junit</groupId>
85+
<artifactId>junit</artifactId>
86+
<scope>test</scope>
87+
</dependency>
88+
8389
<dependency>
8490
<groupId>org.fugerit.java</groupId>
8591
<artifactId>fj-test-helper8</artifactId>

fj-doc-freemarker/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@
108108
<scope>test</scope>
109109
</dependency>
110110

111+
<dependency>
112+
<groupId>junit</groupId>
113+
<artifactId>junit</artifactId>
114+
<scope>test</scope>
115+
</dependency>
116+
111117
<dependency>
112118
<groupId>org.fugerit.java</groupId>
113119
<artifactId>fj-test-helper8</artifactId>

fj-doc-guide/pom.xml

-12
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,6 @@
222222
<groupId>org.fugerit.java</groupId>
223223
<artifactId>fj-doc-freemarker</artifactId>
224224
</dependency>
225-
226-
<dependency>
227-
<groupId>org.fugerit.java</groupId>
228-
<artifactId>fj-test-helper8</artifactId>
229-
<scope>test</scope>
230-
<exclusions>
231-
<exclusion>
232-
<groupId>*</groupId>
233-
<artifactId>*</artifactId>
234-
</exclusion>
235-
</exclusions>
236-
</dependency>
237225

238226
</dependencies>
239227

fj-doc-lib-autodoc/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@
109109
<scope>runtime</scope>
110110
</dependency>
111111

112+
<dependency>
113+
<groupId>junit</groupId>
114+
<artifactId>junit</artifactId>
115+
<scope>test</scope>
116+
</dependency>
117+
112118
</dependencies>
113119

114120
<organization>

fj-doc-lib-simpletable-import/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
<artifactId>fj-doc-mod-opencsv</artifactId>
6161
</dependency>
6262

63+
<dependency>
64+
<groupId>junit</groupId>
65+
<artifactId>junit</artifactId>
66+
<scope>test</scope>
67+
</dependency>
68+
6369
</dependencies>
6470

6571
<organization>

fj-doc-lib-simpletable/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
<artifactId>fj-doc-freemarker</artifactId>
4646
</dependency>
4747

48+
<dependency>
49+
<groupId>junit</groupId>
50+
<artifactId>junit</artifactId>
51+
<scope>test</scope>
52+
</dependency>
53+
4854
<dependency>
4955
<groupId>org.fugerit.java</groupId>
5056
<artifactId>fj-test-helper8</artifactId>

fj-doc-maven-plugin/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
<version>1.3.2</version>
9090
</dependency>
9191

92+
<dependency>
93+
<groupId>junit</groupId>
94+
<artifactId>junit</artifactId>
95+
<scope>test</scope>
96+
</dependency>
97+
9298
</dependencies>
9399

94100
<organization>

fj-doc-mod-fop/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@
9494
<artifactId>fj-doc-freemarker</artifactId>
9595
</dependency>
9696

97+
<dependency>
98+
<groupId>junit</groupId>
99+
<artifactId>junit</artifactId>
100+
<scope>test</scope>
101+
</dependency>
102+
97103
<dependency>
98104
<groupId>org.fugerit.java</groupId>
99105
<artifactId>fj-test-helper8</artifactId>

fj-doc-mod-opencsv/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,14 @@
8181
<dependency>
8282
<groupId>org.fugerit.java</groupId>
8383
<artifactId>fj-doc-base</artifactId>
84-
</dependency>
85-
84+
</dependency>
85+
86+
<dependency>
87+
<groupId>junit</groupId>
88+
<artifactId>junit</artifactId>
89+
<scope>test</scope>
90+
</dependency>
91+
8692
</dependencies>
8793

8894
<organization>

fj-doc-mod-openpdf-ext/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@
4747
<groupId>org.fugerit.java</groupId>
4848
<artifactId>fj-doc-freemarker</artifactId>
4949
<scope>test</scope>
50-
</dependency>
51-
50+
</dependency>
51+
52+
<dependency>
53+
<groupId>junit</groupId>
54+
<artifactId>junit</artifactId>
55+
<scope>test</scope>
56+
</dependency>
57+
5258
</dependencies>
5359

5460
<organization>

fj-doc-mod-openrtf-ext/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@
5252
<groupId>org.fugerit.java</groupId>
5353
<artifactId>fj-doc-freemarker</artifactId>
5454
<scope>test</scope>
55-
</dependency>
56-
55+
</dependency>
56+
57+
<dependency>
58+
<groupId>junit</groupId>
59+
<artifactId>junit</artifactId>
60+
<scope>test</scope>
61+
</dependency>
62+
5763
</dependencies>
5864

5965
<organization>

fj-doc-mod-poi/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,14 @@
8484
<dependency>
8585
<groupId>org.fugerit.java</groupId>
8686
<artifactId>fj-doc-base</artifactId>
87-
</dependency>
88-
87+
</dependency>
88+
89+
<dependency>
90+
<groupId>junit</groupId>
91+
<artifactId>junit</artifactId>
92+
<scope>test</scope>
93+
</dependency>
94+
8995
</dependencies>
9096

9197
<organization>

fj-doc-playground-quarkus/src/test/java/org/fugerit/java/doc/playground/GenerateRestTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.fugerit.java.doc.lib.simpletable.SimpleTableFacade;
1010
import org.fugerit.java.doc.lib.simpletable.model.SimpleTable;
1111
import org.fugerit.java.doc.playground.doc.GenerateRest;
12-
import org.junit.Assert;
1312
import org.junit.jupiter.api.Assertions;
1413
import org.junit.jupiter.api.Test;
1514

@@ -25,7 +24,7 @@ class GenerateRestTest {
2524
void testAddRow() {
2625
SimpleTable simpleTable = SimpleTableFacade.newTable(100);
2726
GenerateRest.addRow(simpleTable, 1, "error", "test");
28-
Assert.assertEquals(1, simpleTable.getRows().size());
27+
Assertions.assertEquals(1, simpleTable.getRows().size());
2928
}
3029

3130
private byte[] getInput(String path) {

fj-doc-sample/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,14 @@
113113
<dependency>
114114
<groupId>org.fugerit.java</groupId>
115115
<artifactId>fj-doc-mod-openrtf-ext</artifactId>
116-
</dependency>
117-
116+
</dependency>
117+
118+
<dependency>
119+
<groupId>junit</groupId>
120+
<artifactId>junit</artifactId>
121+
<scope>test</scope>
122+
</dependency>
123+
118124
</dependencies>
119125

120126
<organization>

fj-doc-tool/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@
4444
<dependency>
4545
<groupId>org.fugerit.java</groupId>
4646
<artifactId>fj-doc-freemarker</artifactId>
47-
</dependency>
48-
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>junit</groupId>
51+
<artifactId>junit</artifactId>
52+
<scope>test</scope>
53+
</dependency>
54+
4955
</dependencies>
5056

5157
<organization>

fj-doc-val-core/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
<artifactId>fj-core</artifactId>
3636
</dependency>
3737

38+
<dependency>
39+
<groupId>junit</groupId>
40+
<artifactId>junit</artifactId>
41+
<scope>test</scope>
42+
</dependency>
43+
3844
</dependencies>
3945

4046
<organization>

fj-doc-val-p7m/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
<scope>test</scope>
4848
</dependency>
4949

50+
<dependency>
51+
<groupId>junit</groupId>
52+
<artifactId>junit</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
5056
<dependency>
5157
<groupId>org.bouncycastle</groupId>
5258
<artifactId>bcpkix-jdk18on</artifactId>

fj-doc-val-pdfbox/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
<version>${pdfbox-version}</version>
4848
</dependency>
4949

50+
<dependency>
51+
<groupId>junit</groupId>
52+
<artifactId>junit</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
5056
</dependencies>
5157

5258
<organization>

fj-doc-val-poi/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
<artifactId>poi-scratchpad</artifactId>
5151
</dependency>
5252

53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<scope>test</scope>
57+
</dependency>
58+
5359
</dependencies>
5460

5561
<organization>

fj-doc-val/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
<artifactId>fj-doc-val-p7m</artifactId>
5656
</dependency>
5757

58+
<dependency>
59+
<groupId>junit</groupId>
60+
<artifactId>junit</artifactId>
61+
<scope>test</scope>
62+
</dependency>
63+
5864
</dependencies>
5965

6066
<organization>

pom.xml

+1-6
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,7 @@
343343
<groupId>org.hsqldb</groupId>
344344
<artifactId>hsqldb</artifactId>
345345
<scope>test</scope>
346-
</dependency>
347-
<dependency>
348-
<groupId>junit</groupId>
349-
<artifactId>junit</artifactId>
350-
<scope>test</scope>
351-
</dependency>
346+
</dependency>
352347

353348
</dependencies>
354349

0 commit comments

Comments
 (0)