Example #1
0
"""

"""

import support

support.compileJPythonc("test190c.py", output="test190.err")

if support.grep("jpywork/test190c.java", "SubDate extends .*Date", count=1) != 1:
   raise support.TestError("SubDate should extends java.util.Date")
Example #2
0
"""

"""

import support

support.compileJPythonc("test190c.py", output="test190.err")

if support.grep("jpywork/test190c.java", "SubDate extends .*Date",
                count=1) != 1:
    raise support.TestError("SubDate should extends java.util.Date")
Example #3
0
"""

"""

import support

support.compileJPythonc("test297c.py", output="test297.err")

if support.grep("jpywork/test297c.java",
             r'TestFactory extends .*HTMLFactory', count=1) != 1:
    raise support.TestError('Subclassing an inner class should be possible')
Example #4
0
"""

"""

import support

support.compileJPythonc("test189c.py", output="test189.err")

if support.grep("jpywork/test189c.java", r'makeClass\("test189c".* test189c.class\)', count=1) != 1:
    raise support.TestError("test189c should use test189c.class as proxy")

if support.grep("jpywork/test189c.java", r'makeClass\("test189c2".* test189c2.class\)', count=1) != 1:
    raise support.TestError("test189c2 should use test189c.class as proxy")
Example #5
0
"""

"""

import support

support.compileJPythonc("test297c.py", output="test297.err")

if support.grep("jpywork/test297c.java",
                r'TestFactory extends .*HTMLFactory',
                count=1) != 1:
    raise support.TestError('Subclassing an inner class should be possible')
Example #6
0
"""

"""

import support

support.compileJPythonc("test188c.py", output="test188.err")

if support.grep("jpywork/test188c.java", "extends .*ListCellRenderer",
                count=1) != 1:
    raise support.TestWarning(
        "test188c should extends ListCellRenderer (but properly never will)")
Example #7
0
"""

"""

import support

support.compileJPythonc("test188c.py", output="test188.err")

if support.grep("jpywork/test188c.java", "extends .*ListCellRenderer", count=1) != 1:
    raise support.TestWarning("test188c should extends ListCellRenderer (but properly never will)")

Example #8
0
"""

"""

import support

support.compileJPythonc("test189c.py", output="test189.err")

if support.grep("jpywork/test189c.java",
                r'makeClass\("test189c".* test189c.class\)',
                count=1) != 1:
    raise support.TestError("test189c should use test189c.class as proxy")

if support.grep("jpywork/test189c.java",
                r'makeClass\("test189c2".* test189c2.class\)',
                count=1) != 1:
    raise support.TestError("test189c2 should use test189c.class as proxy")
Example #9
0
"""

"""

import support

support.compileJPythonc("test191c.py", output="test191.err")

lines = [
   r'public boolean after\(java.util.Date when2, boolean flag\) {',
   r'public boolean after\(java.util.Date when2\) {'
]

for l in lines:
    if support.grep("jpywork/test191c.java", l, count=1) != 1:
	raise support.TestError("Line %s not found in .java files" % l)
Example #10
0
"""

"""

import support

support.compileJPythonc("test191c.py", output="test191.err")

lines = [
    r'public boolean after\(java.util.Date when2, boolean flag\) {',
    r'public boolean after\(java.util.Date when2\) {'
]

for l in lines:
    if support.grep("jpywork/test191c.java", l, count=1) != 1:
        raise support.TestError("Line %s not found in .java files" % l)