#813 Move test resources to conform to package structure
This commit is contained in:
@@ -32,11 +32,11 @@ import static org.junit.Assert.assertThat;
|
||||
public class NewSettingIntegrationTest {
|
||||
|
||||
/** File name of the sample config including all {@link TestConfiguration} values. */
|
||||
private static final String COMPLETE_FILE = "/config-sample-values.yml";
|
||||
private static final String COMPLETE_FILE = TestHelper.PROJECT_ROOT + "settings/config-sample-values.yml";
|
||||
/** File name of the sample config missing certain {@link TestConfiguration} values. */
|
||||
private static final String INCOMPLETE_FILE = "/config-incomplete-sample.yml";
|
||||
private static final String INCOMPLETE_FILE = TestHelper.PROJECT_ROOT + "settings/config-incomplete-sample.yml";
|
||||
/** File name for testing difficult values. */
|
||||
private static final String DIFFICULT_FILE = "/config-difficult-values.yml";
|
||||
private static final String DIFFICULT_FILE = TestHelper.PROJECT_ROOT + "settings/config-difficult-values.yml";
|
||||
|
||||
private static PropertyMap propertyMap = TestConfiguration.generatePropertyMap();
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public class SpawnLoaderTest {
|
||||
public void setup() throws IOException {
|
||||
// Copy test config into a new temporary folder
|
||||
testFolder = temporaryFolder.newFolder();
|
||||
File source = TestHelper.getJarFile("/spawn/spawn-firstspawn.yml");
|
||||
File source = TestHelper.getJarFile(TestHelper.PROJECT_ROOT + "settings/spawn-firstspawn.yml");
|
||||
File destination = new File(testFolder, "spawn.yml");
|
||||
Files.copy(source, destination);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user