/hg/rhino-tests: Three new tests added into the test suite Bindi...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Jan 16 04:30:23 PST 2013
changeset 075b8d6e5fb1 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=075b8d6e5fb1
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Jan 16 13:33:30 2013 +0100
Three new tests added into the test suite BindingsClassTest.
diffstat:
ChangeLog | 5 +++++
src/org/RhinoTests/BindingsClassTest.java | 24 ++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
diffs (46 lines):
diff -r 0319b6a1e77f -r 075b8d6e5fb1 ChangeLog
--- a/ChangeLog Tue Jan 15 11:52:58 2013 +0100
+++ b/ChangeLog Wed Jan 16 13:33:30 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-16 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/BindingsClassTest.java:
+ Three new tests added to the test suite BindingsClassTest.
+
2013-01-15 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/SimpleScriptContextClassTest.java:
diff -r 0319b6a1e77f -r 075b8d6e5fb1 src/org/RhinoTests/BindingsClassTest.java
--- a/src/org/RhinoTests/BindingsClassTest.java Tue Jan 15 11:52:58 2013 +0100
+++ b/src/org/RhinoTests/BindingsClassTest.java Wed Jan 16 13:33:30 2013 +0100
@@ -597,6 +597,30 @@
}
/**
+ * Test for method javax.script.Bindings.getClass().getEnclosingClass()
+ */
+ protected void testGetEnclosingClass() {
+ Class<?> cls = this.bindingsClass.getEnclosingClass();
+ assertNull(cls, "getEnclosingClass() does not return null");
+ }
+
+ /**
+ * Test for method javax.script.Bindings.getClass().getEnclosingConstructor()
+ */
+ protected void testGetEnclosingConstructor() {
+ Constructor<?> cons = this.bindingsClass.getEnclosingConstructor();
+ assertNull(cons, "getEnclosingConstructor() does not return null");
+ }
+
+ /**
+ * Test for method javax.script.Bindings.getClass().getEnclosingMethod()
+ */
+ protected void testGetEnclosingMethod() {
+ Method m = this.bindingsClass.getEnclosingMethod();
+ assertNull(m, "getEnclosingMethod() does not return null");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.Bindings
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list