Prevents jars from being built as part of jar downloading
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good
This commit is contained in:
@ -58,7 +58,7 @@ public class JarDownloaderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void craftbukkitDownloadTest() throws ConfigurationException, IOException {
|
||||
public void craftBukkitDownloadTest() throws ConfigurationException, IOException {
|
||||
singleDownloadTest(ServerTypeHandler.getByName("Bukkit"));
|
||||
}
|
||||
|
||||
@ -96,6 +96,10 @@ public class JarDownloaderTest {
|
||||
private void singleDownloadTest(ServerType serverType) throws IOException {
|
||||
assertNotNull(serverType);
|
||||
for (String serverVersion : serverType.getVersions()) {
|
||||
if ((serverType.getName().equals("Spigot") || serverType.getName().equals("Bukkit"))
|
||||
&& serverVersion.equals("Latest")) {
|
||||
continue;
|
||||
}
|
||||
System.out.println("Downloading " + serverType.getName() + serverVersion + ".jar");
|
||||
serverType.downloadJar(targetDirectory, serverVersion);
|
||||
assertTrue(new File(targetDirectory + serverType.getName() + serverVersion + ".jar").exists());
|
||||
|
Reference in New Issue
Block a user