Fixed tests that use wildHouse.zip so that the loading append in the simple init and not in the main, because it fails since the testChooser change

On a side note the wildhouse.zip in the download section is not the same as the one in the test package, and fails to load due to bad file naming (meshxml instead of mesh.xml)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7159 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 14 years ago
parent 56554d970d
commit 6d27155e86
  1. 9
      engine/src/test/jme3test/scene/TestSceneLoading.java
  2. 10
      engine/src/test/jme3test/water/TestPostWaterLake.java
  3. 10
      engine/src/test/jme3test/water/TestSceneWater.java

@ -56,10 +56,7 @@ public class TestSceneLoading extends SimpleApplication {
private static boolean useHttp = false; private static boolean useHttp = false;
public static void main(String[] args) { public static void main(String[] args) {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
TestSceneLoading app = new TestSceneLoading(); TestSceneLoading app = new TestSceneLoading();
app.start(); app.start();
} }
@ -75,6 +72,10 @@ public class TestSceneLoading extends SimpleApplication {
// load sky // load sky
rootNode.attachChild(SkyFactory.createSky(assetManager, "Textures/Sky/Bright/BrightSky.dds", false)); rootNode.attachChild(SkyFactory.createSky(assetManager, "Textures/Sky/Bright/BrightSky.dds", false));
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
// create the geometry and attach it // create the geometry and attach it
// load the level from zip or http zip // load the level from zip or http zip
if (useHttp) { if (useHttp) {

@ -52,10 +52,7 @@ public class TestPostWaterLake extends SimpleApplication {
private static boolean useHttp = true; private static boolean useHttp = true;
public static void main(String[] args) { public static void main(String[] args) {
File file = new File("wildhouse.zip");
if (file.exists()) {
useHttp = false;
}
TestPostWaterLake app = new TestPostWaterLake(); TestPostWaterLake app = new TestPostWaterLake();
app.start(); app.start();
} }
@ -68,6 +65,11 @@ public class TestPostWaterLake extends SimpleApplication {
// load sky // load sky
rootNode.attachChild(SkyFactory.createSky(assetManager, "Textures/Sky/Bright/BrightSky.dds", false)); rootNode.attachChild(SkyFactory.createSky(assetManager, "Textures/Sky/Bright/BrightSky.dds", false));
File file = new File("wildhouse.zip");
if (file.exists()) {
useHttp = false;
}
// create the geometry and attach it // create the geometry and attach it
// load the level from zip or http zip // load the level from zip or http zip
if (useHttp) { if (useHttp) {

@ -59,10 +59,7 @@ public class TestSceneWater extends SimpleApplication {
private static boolean useHttp = true; private static boolean useHttp = true;
public static void main(String[] args) { public static void main(String[] args) {
File file = new File("wildhouse.zip");
if (file.exists()) {
useHttp = false;
}
TestSceneWater app = new TestSceneWater(); TestSceneWater app = new TestSceneWater();
app.start(); app.start();
} }
@ -76,6 +73,11 @@ public class TestSceneWater extends SimpleApplication {
// load sky // load sky
mainScene.attachChild(SkyFactory.createSky(assetManager, "Textures/Sky/Bright/BrightSky.dds", false)); mainScene.attachChild(SkyFactory.createSky(assetManager, "Textures/Sky/Bright/BrightSky.dds", false));
File file = new File("wildhouse.zip");
if (file.exists()) {
useHttp = false;
}
// create the geometry and attach it // create the geometry and attach it
// load the level from zip or http zip // load the level from zip or http zip
if (useHttp) { if (useHttp) {

Loading…
Cancel
Save