Sha256: 655821189f67793e07f44b2724afad89d8cab2978fc38bc28179b180ad080df4

Contents?: true

Size: 876 Bytes

Versions: 30

Compression:

Stored size: 876 Bytes

Contents

"""This test validates the fix for 511493 (jreload truncates large class files).

We do this by loading a large class file Blob.class from blob.jar (source inside the jar).  If the load failes with ClassFormatError,
the bug is present, if the load succeeds, the bug is fixed, if something else occurs, we don't know.
"""

import unittest
import test_support

from jreload import makeLoadSet
from java.lang import System, ClassFormatError

import os

class JreloadTestCase(unittest.TestCase):

    blobjar = test_support.findfile('blob.jar')

    def test( self ):
        myls = makeLoadSet('myls', [self.blobjar])

        try:
            from myls import Blob
        except ClassFormatError:
            print "Reload Error is present"
            raise
        
def test_main():
    test_support.run_unittest(JreloadTestCase)

if __name__ == "__main__":
    test_main()

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.19.2.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/test/test_jreload.py