Exemplo n.º 1
0
 def testStartup(self):
     with subrun.Client() as client, self.assertRaises(OSError):
         client.execute(runStartupTwice)
Exemplo n.º 2
0
 def testPathTwice(self):
     with subrun.Client() as client, self.assertRaises(TypeError):
         client.execute(runStartJVM, self.path, jvmpath=self.path)
Exemplo n.º 3
0
 def testBadKeyword(self):
     with subrun.Client() as client, self.assertRaises(TypeError):
         client.execute(runStartJVM, invalid=True)
Exemplo n.º 4
0
 def testClasspathArgDef(self):
     with subrun.Client() as client:
         client.execute(runStartJVMTest,
                        '-Djava.class.path=%s' % self.cp,
                        convertStrings=False)
Exemplo n.º 5
0
 def testStartup(self):
     with subrun.Client() as client:
         client.execute(runStartup, self.path)
Exemplo n.º 6
0
 def testInvalidArgsFalse(self):
     with subrun.Client() as client, self.assertRaises(RuntimeError):
         client.execute(runStartJVM,
                        "-for_sure_InVaLiD",
                        ignoreUnrecognized=False,
                        convertStrings=False)
Exemplo n.º 7
0
 def testClasspathArgKeyword(self):
     with subrun.Client() as client:
         client.execute(runStartJVMTest,
                        classpath=self.cp,
                        convertStrings=False)
Exemplo n.º 8
0
 def testStringLeak(self):
     with subrun.Client() as client:
         client.execute(runLeakChecker, "stringFunc", 5000)
Exemplo n.º 9
0
 def testClassLeak(self):
     with subrun.Client() as client:
         client.execute(runLeakChecker, "classFunc", 5000)
Exemplo n.º 10
0
 def testShutdown(self):
     with subrun.Client() as client:
         client.execute(runShutdown)
Exemplo n.º 11
0
 def setUpClass(cls):
     cls.client = subrun.Client()
     cls.client.execute(startup)
Exemplo n.º 12
0
 def testValueEntry(self):
     with self.assertRaises(RuntimeError):
         with subrun.Client() as client:
             client.execute(runValueEntry)
Exemplo n.º 13
0
 def testNoMethodCode(self):
     with self.assertRaises(RuntimeError):
         with subrun.Client() as client:
             client.execute(runNoMethodCode, self.path)
Exemplo n.º 14
0
 def testStartupBadArgs(self):
     with self.assertRaises(TypeError):
         with subrun.Client() as client:
             client.execute(runStartupBadArgs, self.path)
Exemplo n.º 15
0
 def testRestart(self):
     with subrun.Client() as client, self.assertRaises(OSError):
         client.execute(runRestart)
Exemplo n.º 16
0
 def testCtorLeak(self):
     with subrun.Client() as client:
         client.execute(runLeakCtor, "java.lang.String", 5000)
Exemplo n.º 17
0
 def testJVMPathKeyword(self):
     with subrun.Client() as client:
         client.execute(runStartJVM, jvmpath=self.path)
Exemplo n.º 18
0
 def testInvokeLeak(self):
     with subrun.Client() as client:
         client.execute(runInvoke, 5000)
Exemplo n.º 19
0
 def testInvalidArgsTrue(self):
     with subrun.Client() as client:
         client.execute(runStartJVM,
                        "-for_sure_InVaLiD",
                        ignoreUnrecognized=True,
                        convertStrings=False)
Exemplo n.º 20
0
 def testRefCount(self):
     with subrun.Client() as client:
         client.execute(runRefCount)
Exemplo n.º 21
0
 def testClasspathArgListEmpty(self):
     with subrun.Client() as client:
         client.execute(runStartJVMTest,
                        classpath=[self.cp, ''],
                        convertStrings=False)
Exemplo n.º 22
0
 def testClasspathBadType(self):
     with subrun.Client() as client, self.assertRaises(TypeError):
         client.execute(runStartJVMTest, classpath=1, convertStrings=False)
Exemplo n.º 23
0
 def testClasspathTwice(self):
     with subrun.Client() as client, self.assertRaises(TypeError):
         client.execute(runStartJVMTest,
                        '-Djava.class.path=%s' % self.cp,
                        classpath=self.cp,
                        convertStrings=False)
Exemplo n.º 24
0
 def setUpClass(cls):
     BeansTest.client = subrun.Client()
     BeansTest.client.execute(startup, os.path.abspath("test/classes"))