Skip to content

Commit 564825e

Browse files
committed
Migrated to newer JUnit version and restructured tests
1 parent 076dd92 commit 564825e

11 files changed

+38
-23
lines changed

pom.xml

+19-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,15 @@
4242
<dependency>
4343
<groupId>org.junit.jupiter</groupId>
4444
<artifactId>junit-jupiter</artifactId>
45-
<version>RELEASE</version>
45+
<version>5.9.2</version>
4646
<scope>test</scope>
4747
</dependency>
48+
<dependency>
49+
<groupId>org.junit.jupiter</groupId>
50+
<artifactId>junit-jupiter-api</artifactId>
51+
<version>5.9.2</version>
52+
<scope>compile</scope>
53+
</dependency>
4854
</dependencies>
4955

5056
<distributionManagement>
@@ -100,6 +106,18 @@
100106
<target>7</target>
101107
</configuration>
102108
</plugin>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-surefire-plugin</artifactId>
112+
<version>2.22.0</version>
113+
<dependencies>
114+
<dependency>
115+
<groupId>org.junit.jupiter</groupId>
116+
<artifactId>junit-jupiter-engine</artifactId>
117+
<version>5.9.2</version>
118+
</dependency>
119+
</dependencies>
120+
</plugin>
103121
<!--
104122
<plugin>
105123
<groupId>org.apache.maven.plugins</groupId>

src/test/QuestionTest.java renamed to src/test/java/simplenlgde/QuestionTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
package simplenlgde;/*
22
* The contents of this file are subject to the Mozilla Public License
33
* Version 1.1 (the "License"); you may not use this file except in
44
* compliance with the License. You may obtain a copy of the License at
@@ -14,14 +14,13 @@
1414

1515
import org.junit.jupiter.api.BeforeAll;
1616
import org.junit.jupiter.api.Test;
17+
import org.junit.jupiter.api.Assertions;
1718
import simplenlgde.framework.*;
1819
import simplenlgde.lexicon.Lexicon;
1920
import simplenlgde.realiser.Realiser;
2021
import simplenlgde.features.*;
2122
import simplenlgde.phrasespec.*;
2223

23-
import org.junit.jupiter.api.Assertions;
24-
2524
public class QuestionTest {
2625
private static Lexicon lexicon;
2726
private static NLGFactory nlgFactory;

src/test/RealiserTest.java renamed to src/test/java/simplenlgde/RealiserTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
package simplenlgde;
2+
13
import org.junit.jupiter.api.BeforeAll;
24
import org.junit.jupiter.api.Test;
5+
import org.junit.jupiter.api.Assertions;
36
import simplenlgde.framework.*;
47
import simplenlgde.lexicon.Lexicon;
58
import simplenlgde.realiser.Realiser;
69
import simplenlgde.features.*;
710
import simplenlgde.phrasespec.*;
811

9-
import org.junit.jupiter.api.Assertions;
10-
1112
public class RealiserTest {
1213

1314
private static Lexicon lexicon;

src/test/SaToSTest.java renamed to src/test/java/simplenlgde/SaToSTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
package simplenlgde;/*
22
* The contents of this file are subject to the Mozilla Public License
33
* Version 1.1 (the "License"); you may not use this file except in
44
* compliance with the License. You may obtain a copy of the License at
@@ -14,13 +14,12 @@
1414

1515
import org.junit.jupiter.api.BeforeAll;
1616
import org.junit.jupiter.api.Test;
17+
import org.junit.jupiter.api.Assertions;
1718
import simplenlgde.framework.*;
1819
import simplenlgde.lexicon.Lexicon;
1920
import simplenlgde.realiser.Realiser;
2021
import simplenlgde.phrasespec.*;
2122

22-
import org.junit.jupiter.api.Assertions;
23-
2423
public class SaToSTest {
2524
private static Lexicon lexicon;
2625
private static NLGFactory nlgFactory;

src/test/SyntaxTreeTest.java renamed to src/test/java/simplenlgde/SyntaxTreeTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package simplenlgde;
2+
13
import org.junit.jupiter.api.BeforeAll;
24
import org.junit.jupiter.api.Test;
35
import simplenlgde.framework.*;

src/test/MorphologyTest/AdjectiveInflectionTest.java renamed to src/test/java/simplenlgde/morphology/AdjectiveInflectionTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
package MorphologyTest;
1+
package simplenlgde.morphology;
22

33
import org.junit.jupiter.api.BeforeAll;
44
import org.junit.jupiter.api.Test;
5+
import org.junit.jupiter.api.Assertions;
56
import simplenlgde.framework.*;
67
import simplenlgde.lexicon.Lexicon;
78
import simplenlgde.realiser.Realiser;
89
import simplenlgde.features.*;
910
import simplenlgde.phrasespec.*;
1011

11-
import org.junit.jupiter.api.Assertions;
12-
1312
public class AdjectiveInflectionTest {
1413

1514
private static Lexicon lexicon;

src/test/MorphologyTest/BasewordTest.java renamed to src/test/java/simplenlgde/morphology/BasewordTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@
1212
* Contributor(s): Daniel Braun, Technical University of Munich.
1313
*/
1414

15-
package MorphologyTest;
15+
package simplenlgde.morphology;
1616

1717
import org.junit.jupiter.api.BeforeAll;
1818
import org.junit.jupiter.api.Test;
19+
import org.junit.jupiter.api.Assertions;
1920
import simplenlgde.framework.*;
2021
import simplenlgde.lexicon.Lexicon;
2122
import simplenlgde.realiser.Realiser;
2223
import simplenlgde.phrasespec.*;
2324

24-
import org.junit.jupiter.api.Assertions;
25-
2625
public class BasewordTest {
2726
private static Lexicon lexicon;
2827
private static NLGFactory nlgFactory;

src/test/MorphologyTest/NounInflectionTest.java renamed to src/test/java/simplenlgde/morphology/NounInflectionTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
package MorphologyTest;
1+
package simplenlgde.morphology;
22

33
import org.junit.jupiter.api.BeforeAll;
44
import org.junit.jupiter.api.Test;
5+
import org.junit.jupiter.api.Assertions;
56
import simplenlgde.framework.*;
67
import simplenlgde.lexicon.Lexicon;
78
import simplenlgde.realiser.Realiser;
89
import simplenlgde.features.*;
910
import simplenlgde.phrasespec.*;
1011

11-
import org.junit.jupiter.api.Assertions;
12-
1312
public class NounInflectionTest {
1413

1514
private static Lexicon lexicon;

src/test/MorphologyTest/VerbInflectionTest.java renamed to src/test/java/simplenlgde/morphology/VerbInflectionTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package MorphologyTest;
1+
package simplenlgde.morphology;
22

33
import org.junit.jupiter.api.BeforeAll;
44
import org.junit.jupiter.api.Test;

src/test/SyntaxTest/MainClausesTest.java renamed to src/test/java/simplenlgde/syntax/MainClausesTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package SyntaxTest;
2-
import org.junit.jupiter.api.Assertions;
1+
package simplenlgde.syntax;
32

43
import org.junit.jupiter.api.BeforeAll;
54
import org.junit.jupiter.api.Test;
5+
import org.junit.jupiter.api.Assertions;
66
import simplenlgde.framework.*;
77
import simplenlgde.lexicon.Lexicon;
88
import simplenlgde.realiser.Realiser;

src/test/SyntaxTest/SubordinateClausesTest.java renamed to src/test/java/simplenlgde/syntax/SubordinateClausesTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
package SyntaxTest;
1+
package simplenlgde.syntax;
22

33
import org.junit.jupiter.api.Assertions;
4-
54
import org.junit.jupiter.api.BeforeAll;
65
import org.junit.jupiter.api.Test;
76
import simplenlgde.framework.*;

0 commit comments

Comments
 (0)