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.
Tests for texture and beginning of refactor
- Loading branch information
1 parent
d770adb
commit cab36b5
Showing
18 changed files
with
202 additions
and
41 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
jme3-android-examples/src/main/gen/com/jme3/android/BuildConfig.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,8 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jme3.android; | ||
|
||
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ | ||
public final class BuildConfig { | ||
public final static boolean DEBUG = Boolean.parseBoolean(null); | ||
} |
7 changes: 7 additions & 0 deletions
7
jme3-android-examples/src/main/gen/com/jme3/android/Manifest.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,7 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jme3.android; | ||
|
||
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ | ||
public final class Manifest { | ||
} |
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,7 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jme3.android; | ||
|
||
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ | ||
public final class R { | ||
} |
8 changes: 8 additions & 0 deletions
8
jme3-android/src/main/java/jme3test/android/gen/com/jme3/androiddemo/BuildConfig.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,8 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jme3.androiddemo; | ||
|
||
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ | ||
public final class BuildConfig { | ||
public final static boolean DEBUG = Boolean.parseBoolean(null); | ||
} |
7 changes: 7 additions & 0 deletions
7
jme3-android/src/main/java/jme3test/android/gen/com/jme3/androiddemo/Manifest.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,7 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jme3.androiddemo; | ||
|
||
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ | ||
public final class Manifest { | ||
} |
7 changes: 7 additions & 0 deletions
7
jme3-android/src/main/java/jme3test/android/gen/com/jme3/androiddemo/R.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,7 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jme3.androiddemo; | ||
|
||
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ | ||
public final class R { | ||
} |
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
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
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
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
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
15 changes: 8 additions & 7 deletions
15
jme3-core/src/main/resources/com/jme3/system/version.properties
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# THIS IS AN AUTO-GENERATED FILE.. | ||
# DO NOT MODIFY! | ||
build.date=1900-01-01 | ||
git.revision=0 | ||
git.branch=unknown | ||
git.hash= | ||
git.hash.short= | ||
git.tag= | ||
name.full=jMonkeyEngine 3.1.0-UNKNOWN | ||
build.date=2016-03-17 | ||
git.revision=5377 | ||
git.branch=master | ||
git.hash=a0261e78fb5a8f3ac406b3af63c5344a32b790b6 | ||
git.hash.short=a0261e7 | ||
git.tag=v3.1-alpha1-219-ga0261e7 | ||
name.full=jMonkeyEngine 3.1-5377 | ||
version.full=3.1-5377 | ||
version.number=3.1.0 | ||
version.tag=SNAPSHOT |
50 changes: 50 additions & 0 deletions
50
jme3-core/src/test/java/com/jme3/texture/Texture2DTest.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,50 @@ | ||
package com.jme3.texture; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* Created by kristinfjola on 17/03/16. | ||
*/ | ||
public class Texture2DTest { | ||
|
||
private Texture2D tex; | ||
|
||
@Before | ||
public void setUp(){ | ||
tex = new Texture2D(); | ||
} | ||
|
||
@Test(expected = IllegalArgumentException.class) | ||
public void testSetWrapWithAxisNull(){ | ||
tex.setWrap(null, Texture.WrapMode.EdgeClamp); | ||
} | ||
|
||
@Test(expected = IllegalArgumentException.class) | ||
public void testSetWrapModeNull() { | ||
tex.setWrap(Texture.WrapAxis.R, null); | ||
} | ||
|
||
@Test | ||
public void testSetWrapAxisS() { | ||
Texture.WrapMode wrapMode = Texture.WrapMode.EdgeClamp; | ||
Texture.WrapAxis wrapAxis = Texture.WrapAxis.S; | ||
tex.setWrap(wrapAxis, wrapMode); | ||
assert tex.getWrap(wrapAxis) == wrapMode; | ||
} | ||
|
||
@Test | ||
public void testSetWrapAxisT() { | ||
Texture.WrapMode wrapMode = Texture.WrapMode.MirroredRepeat; | ||
Texture.WrapAxis wrapAxis = Texture.WrapAxis.T; | ||
tex.setWrap(wrapAxis, wrapMode); | ||
assert tex.getWrap(wrapAxis) == wrapMode; | ||
} | ||
|
||
@Test(expected = IllegalArgumentException.class) | ||
public void testSetWrapAxisR() { | ||
Texture.WrapMode wrapMode = Texture.WrapMode.Repeat; | ||
Texture.WrapAxis wrapAxis = Texture.WrapAxis.R; | ||
tex.setWrap(wrapAxis, wrapMode); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
jme3-core/src/test/java/com/jme3/texture/Texture3DTest.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,49 @@ | ||
package com.jme3.texture; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
|
||
public class Texture3DTest { | ||
|
||
private Texture3D tex; | ||
|
||
@Before | ||
public void setUp(){ | ||
tex = new Texture3D(); | ||
} | ||
|
||
@Test(expected = IllegalArgumentException.class) | ||
public void testSetWrapWithAxisNull(){ | ||
tex.setWrap(null, Texture.WrapMode.EdgeClamp); | ||
} | ||
|
||
@Test(expected = IllegalArgumentException.class) | ||
public void testSetWrapModeNull() { | ||
tex.setWrap(Texture.WrapAxis.R, null); | ||
} | ||
|
||
@Test | ||
public void testSetWrapAxisS() { | ||
Texture.WrapMode wrapMode = Texture.WrapMode.EdgeClamp; | ||
Texture.WrapAxis wrapAxis = Texture.WrapAxis.S; | ||
tex.setWrap(wrapAxis, wrapMode); | ||
assert tex.getWrap(wrapAxis) == wrapMode; | ||
} | ||
|
||
@Test | ||
public void testSetWrapAxisT() { | ||
Texture.WrapMode wrapMode = Texture.WrapMode.MirroredRepeat; | ||
Texture.WrapAxis wrapAxis = Texture.WrapAxis.T; | ||
tex.setWrap(wrapAxis, wrapMode); | ||
assert tex.getWrap(wrapAxis) == wrapMode; | ||
} | ||
|
||
@Test | ||
public void testSetWrapAxisR() { | ||
Texture.WrapMode wrapMode = Texture.WrapMode.Repeat; | ||
Texture.WrapAxis wrapAxis = Texture.WrapAxis.R; | ||
tex.setWrap(wrapAxis, wrapMode); | ||
assert tex.getWrap(wrapAxis) == wrapMode; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
sdk/JME3TestsTemplateAndroid/mobile/gen/com/jmonkeyengine/tests/BuildConfig.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,8 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jmonkeyengine.tests; | ||
|
||
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ | ||
public final class BuildConfig { | ||
public final static boolean DEBUG = Boolean.parseBoolean(null); | ||
} |
7 changes: 7 additions & 0 deletions
7
sdk/JME3TestsTemplateAndroid/mobile/gen/com/jmonkeyengine/tests/Manifest.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,7 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jmonkeyengine.tests; | ||
|
||
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ | ||
public final class Manifest { | ||
} |
7 changes: 7 additions & 0 deletions
7
sdk/JME3TestsTemplateAndroid/mobile/gen/com/jmonkeyengine/tests/R.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,7 @@ | ||
/*___Generated_by_IDEA___*/ | ||
|
||
package com.jmonkeyengine.tests; | ||
|
||
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ | ||
public final class R { | ||
} |