Преглед на файлове

PhantomTrianglesTest: initialize the system delegate

Stephen Gold преди 4 години
родител
ревизия
9e0a85beb4
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      jme3-core/src/test/java/com/jme3/scene/PhantomTrianglesTest.java

+ 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");