Improves output logging and fixes some bugs
Fixes an error caused by the BuildTools directory not being created Creates functions for writing to files in CommonFunctions Adds some more error info to the log when BuildTools fails to download Fixes some typos Makes sure all visible text is logged
This commit is contained in:
@ -10,6 +10,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import javax.naming.ConfigurationException;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
@ -21,8 +22,13 @@ public class JarDownloaderTest {
|
||||
|
||||
@BeforeAll
|
||||
public static void setUp() {
|
||||
targetDirectory = Main.getApplicationWorkDirectory() + File.separator + "files" + File.separator +
|
||||
"testjars" + File.separator;
|
||||
String filesDirectory = Main.getApplicationWorkDirectory() + File.separator + "files";
|
||||
try {
|
||||
CommonFunctions.createFolder(new File(filesDirectory + File.separator + "testjars"));
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
targetDirectory = filesDirectory + File.separator + "testjars" + File.separator;
|
||||
removeDownloadedFiles();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user