/hg/rhino-tests: Added new test into the test case src/org/Rhino...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Dec 11 00:29:45 PST 2012
changeset 971cae449335 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=971cae449335
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Dec 11 09:32:49 2012 +0100
Added new test into the test case src/org/RhinoTests/CompilableClassTest.java: getField()
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/CompilableClassTest.java | 22 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
diffs (45 lines):
diff -r 2c37c25280fa -r 971cae449335 ChangeLog
--- a/ChangeLog Mon Dec 10 10:38:24 2012 +0100
+++ b/ChangeLog Tue Dec 11 09:32:49 2012 +0100
@@ -1,3 +1,9 @@
+2012-12-11 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/CompilableClassTest.java:
+ Added new test into this test case:
+ - getField()
+
2012-12-10 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/BindingsClassTest.java:
diff -r 2c37c25280fa -r 971cae449335 src/org/RhinoTests/CompilableClassTest.java
--- a/src/org/RhinoTests/CompilableClassTest.java Mon Dec 10 10:38:24 2012 +0100
+++ b/src/org/RhinoTests/CompilableClassTest.java Tue Dec 11 09:32:49 2012 +0100
@@ -356,6 +356,28 @@
}
/**
+ * Test for method javax.script.Compilable.getClass().getField()
+ */
+ protected void testGetField() {
+ // following fields should exists
+ final String[] fieldsThatShouldExists = {
+ };
+ // check if all required fields really exists
+ for (String fieldThatShouldExists : fieldsThatShouldExists) {
+ try {
+ Field field = this.compilableClass.getField(fieldThatShouldExists);
+ String fieldName = field.getName();
+ assertTrue(fieldName.equals(fieldThatShouldExists),
+ "field " + fieldThatShouldExists + " not found");
+ }
+ catch (Exception e) {
+ e.printStackTrace();
+ throw new AssertionError(e.getMessage());
+ }
+ }
+ }
+
+ /**
* Test for method javax.script.Compilable.getClass().getMethods()
*/
protected void testGetMethods() {
More information about the distro-pkg-dev
mailing list