/hg/rhino-tests: Added four new tests testGetEnumConstants(), te...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Jul 23 02:20:18 PDT 2013
changeset 68a78d6a2c57 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=68a78d6a2c57
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jul 23 11:23:58 2013 +0200
Added four new tests testGetEnumConstants(), testGetTypeParameters(),
testGetSigners() and testDesiredAssertionStatus()
into SimpleBindingsClassTest.
diffstat:
ChangeLog | 7 +++++
src/org/RhinoTests/SimpleBindingsClassTest.java | 33 +++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)
diffs (57 lines):
diff -r 993887993a34 -r 68a78d6a2c57 ChangeLog
--- a/ChangeLog Mon Jul 22 10:19:45 2013 +0200
+++ b/ChangeLog Tue Jul 23 11:23:58 2013 +0200
@@ -1,3 +1,10 @@
+2013-07-23 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/SimpleBindingsClassTest.java:
+ Added four new tests testGetEnumConstants(), testGetTypeParameters(),
+ testGetSigners() and testDesiredAssertionStatus()
+ into SimpleBindingsClassTest.
+
2013-07-22 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/CompiledScriptClassTest.java:
diff -r 993887993a34 -r 68a78d6a2c57 src/org/RhinoTests/SimpleBindingsClassTest.java
--- a/src/org/RhinoTests/SimpleBindingsClassTest.java Mon Jul 22 10:19:45 2013 +0200
+++ b/src/org/RhinoTests/SimpleBindingsClassTest.java Tue Jul 23 11:23:58 2013 +0200
@@ -1255,6 +1255,39 @@
}
/**
+ * Test for method javax.script.SimpleBindings.getClass().getEnumConstants()
+ */
+ protected void testGetEnumConstants() {
+ Object[] enumConstants = this.simpleBindingsClass.getEnumConstants();
+ assertNull(enumConstants, "getEnumConstants() does not return null");
+ }
+
+ /**
+ * Test for method javax.script.SimpleBindings.getClass().getTypeParameters()
+ */
+ protected void testGetTypeParameters() {
+ TypeVariable<?>[] typeParameters = this.simpleBindingsClass.getTypeParameters();
+ assertNotNull(typeParameters, "getTypeParameters() return null");
+ assertEquals(0, typeParameters.length, "array of wrong size returned by getTypeParameters() " + typeParameters.length);
+ }
+
+ /**
+ * Test for method javax.script.SimpleBindings.getClass().getSigners()
+ */
+ protected void testGetSigners() {
+ Object[] signers = this.simpleBindingsClass.getSigners();
+ assertNull(signers, "getSigners() does not return null");
+ }
+
+ /**
+ * Test for method javax.script.SimpleBindings.getClass().desiredAssertionStatus()
+ */
+ protected void testDesiredAssertionStatus() {
+ assertFalse(this.simpleBindingsClass.desiredAssertionStatus(),
+ "Method SimpleBindings.getClass().desiredAssertionStatus() returns wrong value");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.SimpleBindings
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list