Skip to content

Commit ab920a3

Browse files
committed
Tidy up.
Tidied up the tests with the following: - All test files now get written to ./test_output rather than polluting the root of the project. - Renamed credentials.properties to testing.properties as it contains more than just credentials. Also updated README.md to reflect this. Removed build.xml left over from when ant was being used. Renamed LICENCE.txt to LICENCE to be more standard.
1 parent 0554c36 commit ab920a3

File tree

5 files changed

+7
-43
lines changed

5 files changed

+7
-43
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
.project
1111
bin
1212

13-
.changelogcache/*
1413
.nb*
1514
nb*
1615

1716
build
1817
target
1918
lib
20-
credentials.properties
19+
*.properties
2120
cache
22-
test*.txt
2321
test_output
22+
dependency-reduced-pom.xml
File renamed without changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ When specifying `--object-cache-path` the Java objects used to store the changel
4040
Testing
4141
-------
4242

43-
In order to execute the unit tests properly (and build/install the program), you must create a file named credentials.properties and place it in the base directory. In this file, add the following values:
43+
In order to execute the unit tests properly (and build/install the program), you must create a file named testing.properties and place it in the base directory. In this file, add the following values:
4444

4545
* `url = <URL>` where `<URL>` is the web address of the JIRA instance.
4646
* `username = <username>` where `<username>` is the username of a user that can access the JIRA instance.

build.xml

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

test/com/switchtrue/jira/changelog/ChangelogTemplateTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void testXMLChangelog() throws Exception {
121121
*/
122122
public void testFullRun() throws Exception {
123123
Properties properties = new Properties();
124-
properties.load(new FileInputStream("credentials.properties"));
124+
properties.load(new FileInputStream("testing.properties"));
125125
System.out.println("fullRun");
126126
String[] args = new String[12];
127127
args[0] = properties.getProperty("url");
@@ -146,9 +146,9 @@ public void testFullRun() throws Exception {
146146

147147
public void testLineEndings() throws Exception {
148148
System.out.println("lineEndings");
149-
FileWriter out1 = new FileWriter("test_output/testNative.txt");
150-
FileWriter out2 = new FileWriter("test_output/testWindows.txt");
151-
FileWriter out3 = new FileWriter("test_output/testNIX.txt");
149+
FileWriter out1 = new FileWriter("test_output" + File.separator + "testNative.txt");
150+
FileWriter out2 = new FileWriter("test_output" + File.separator + "testWindows.txt");
151+
FileWriter out3 = new FileWriter("test_output" + File.separator + "testNIX.txt");
152152
try {
153153
ChangelogTemplate.fileRoot = "examples";
154154
ChangelogTemplate.createChangelog(versions, out1, "plain-text.mustache", LineEnding.NATIVE);

0 commit comments

Comments
 (0)