/hg/rhino-tests: Added new test testNewInstance into the test suite
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Sep 19 00:47:40 PDT 2013
changeset 83faff14e207 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=83faff14e207
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Sep 19 09:51:27 2013 +0200
Added new test testNewInstance into the test suite
CompilableClassTest.
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/SimpleScriptContextClassTest.java | 18 ++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diffs (41 lines):
diff -r 2e5f4bdb4931 -r 83faff14e207 ChangeLog
--- a/ChangeLog Wed Sep 18 11:42:31 2013 +0200
+++ b/ChangeLog Thu Sep 19 09:51:27 2013 +0200
@@ -1,3 +1,9 @@
+2013-09-19 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/SimpleScriptContextClassTest.java:
+ Added new test testNewInstance into the test suite
+ CompilableClassTest.
+
2013-09-18 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptExceptionClassTest.java:
diff -r 2e5f4bdb4931 -r 83faff14e207 src/org/RhinoTests/SimpleScriptContextClassTest.java
--- a/src/org/RhinoTests/SimpleScriptContextClassTest.java Wed Sep 18 11:42:31 2013 +0200
+++ b/src/org/RhinoTests/SimpleScriptContextClassTest.java Thu Sep 19 09:51:27 2013 +0200
@@ -1692,6 +1692,24 @@
}
/**
+ * Test for method javax.script.SimpleScriptContext.getClass().newInstance()
+ */
+ protected void testNewInstance() {
+ try {
+ Object o = this.simpleScriptContextClass.newInstance();
+ }
+ catch (InstantiationException e) {
+ e.printStackTrace();
+ throw new AssertionError(e.getMessage());
+ }
+ catch (IllegalAccessException e) {
+ e.printStackTrace();
+ throw new AssertionError(e.getMessage());
+ }
+
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.SimpleScriptContext
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list