Prechádzať zdrojové kódy

PhantomTrianglesTest: initialize the system delegate

Stephen Gold 4 rokov pred
rodič
commit
9e0a85beb4

+ 4 - 1
jme3-core/src/test/java/com/jme3/scene/PhantomTrianglesTest.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 jMonkeyEngine
+ * Copyright (c) 2017-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -41,6 +41,8 @@ import com.jme3.material.plugins.J3MLoader;
 import com.jme3.math.Ray;
 import com.jme3.math.Vector3f;
 import com.jme3.scene.shape.Quad;
+import com.jme3.system.JmeSystem;
+import com.jme3.system.MockJmeSystemDelegate;
 import org.junit.Test;
 
 /**
@@ -114,6 +116,7 @@ public class PhantomTrianglesTest {
 
     @Test
     public void testPhantomTriangles() {
+        JmeSystem.setSystemDelegate(new MockJmeSystemDelegate());
         assetManager = new DesktopAssetManager();
         assetManager.registerLocator(null, ClasspathLocator.class);
         assetManager.registerLoader(J3MLoader.class, "j3m", "j3md");