forked from jMonkeyEngine/jmonkeyengine
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
307 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
29 changes: 29 additions & 0 deletions
29
jme3-core/src/test/java/com/jme3/texture/TestExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.jme3.texture; | ||
|
||
import com.jme3.export.JmeExporter; | ||
import com.jme3.export.OutputCapsule; | ||
import com.jme3.export.Savable; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
|
||
import static org.mockito.Mockito.spy; | ||
|
||
public class TestExporter implements JmeExporter { | ||
|
||
@Override | ||
public void save(Savable object, OutputStream f) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void save(Savable object, File f) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public OutputCapsule getCapsule(Savable object) { | ||
return spy(new TestOutputCapsule()); | ||
} | ||
} |
222 changes: 222 additions & 0 deletions
222
jme3-core/src/test/java/com/jme3/texture/TestOutputCapsule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
package com.jme3.texture; | ||
|
||
import com.jme3.export.OutputCapsule; | ||
import com.jme3.export.Savable; | ||
import com.jme3.util.IntMap; | ||
|
||
import java.io.IOException; | ||
import java.nio.ByteBuffer; | ||
import java.nio.FloatBuffer; | ||
import java.nio.IntBuffer; | ||
import java.nio.ShortBuffer; | ||
import java.util.ArrayList; | ||
import java.util.BitSet; | ||
import java.util.Map; | ||
|
||
public class TestOutputCapsule implements OutputCapsule { | ||
|
||
@Override | ||
public void write(byte value, String name, byte defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(byte[] value, String name, byte[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(byte[][] value, String name, byte[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(int value, String name, int defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(int[] value, String name, int[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(int[][] value, String name, int[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(float value, String name, float defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(float[] value, String name, float[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(float[][] value, String name, float[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(double value, String name, double defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(double[] value, String name, double[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(double[][] value, String name, double[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(long value, String name, long defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(long[] value, String name, long[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(long[][] value, String name, long[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(short value, String name, short defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(short[] value, String name, short[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(short[][] value, String name, short[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(boolean value, String name, boolean defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(boolean[] value, String name, boolean[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(boolean[][] value, String name, boolean[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(String value, String name, String defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(String[] value, String name, String[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(String[][] value, String name, String[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(BitSet value, String name, BitSet defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(Savable object, String name, Savable defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(Savable[] objects, String name, Savable[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(Savable[][] objects, String name, Savable[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeSavableArrayList(ArrayList array, String name, ArrayList defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeSavableArrayListArray(ArrayList[] array, String name, ArrayList[] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeSavableArrayListArray2D(ArrayList[][] array, String name, ArrayList[][] defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeFloatBufferArrayList(ArrayList<FloatBuffer> array, String name, ArrayList<FloatBuffer> defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeByteBufferArrayList(ArrayList<ByteBuffer> array, String name, ArrayList<ByteBuffer> defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeSavableMap(Map<? extends Savable, ? extends Savable> map, String name, Map<? extends Savable, ? extends Savable> defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeStringSavableMap(Map<String, ? extends Savable> map, String name, Map<String, ? extends Savable> defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void writeIntSavableMap(IntMap<? extends Savable> map, String name, IntMap<? extends Savable> defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(FloatBuffer value, String name, FloatBuffer defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(IntBuffer value, String name, IntBuffer defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(ByteBuffer value, String name, ByteBuffer defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(ShortBuffer value, String name, ShortBuffer defVal) throws IOException { | ||
|
||
} | ||
|
||
@Override | ||
public void write(Enum value, String name, Enum defVal) throws IOException { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters