Example #1
0
    def test_javalists(self):
        # these first two tests just verify that we have a good unit test
        alt = ListTest.getArrayListTest(False)
        alt.testAll()

        alt = ListTest.getArrayListTest(True)
        alt.testAll()

        # Now run the tests
        plt = PyListTest()
        plt.testAll()
        ptt = PyTupleTest()
        ptt.testAll()
Example #2
0
    def test_javalists(self):
        # these first two tests just verify that we have a good unit test
        alt = ListTest.getArrayListTest(False)
        alt.testAll()

        alt = ListTest.getArrayListTest(True)
        alt.testAll()

        # Now run the tests
        plt = PyListTest()
        plt.testAll()
        ptt = PyTupleTest()
        ptt.testAll()
Example #3
0
 def __init__(self):
     ListTest.__init__(self)
Example #4
0
       ListTest.__init__(self)
       
   def newInstance(self, coll):
       if coll is None:
           return tuple()
       else:
           return tuple(coll)
       
   def isReadOnly(self):
       return True       


# these first two tests just verify that we have a good unit test
print "ListTest.java driver (test_javalist.py)"
print "running test on ArrayList"
alt = ListTest.getArrayListTest(False)
alt.testAll()

print "running test on ArrayList (read-only)"
alt = ListTest.getArrayListTest(True)
alt.testAll()


# Now run the critical tests

print "running test on PyListTest"
plt = PyListTest()
plt.testAll()       

print "running test on PyTupleTest"
ptt = PyTupleTest()
 def __init__(self):
     ListTest.__init__(self)
        ListTest.__init__(self)

    def newInstance(self, coll):
        if coll is None:
            return tuple()
        else:
            return tuple(coll)

    def isReadOnly(self):
        return True


# these first two tests just verify that we have a good unit test
print_test("ListTest.java driver (test_javalist.py)", 1)
print_test("running test on ArrayList", 2)
alt = ListTest.getArrayListTest(False)
alt.testAll()

print_test("running test on ArrayList (read-only)", 2)
alt = ListTest.getArrayListTest(True)
alt.testAll()

# Now run the critical tests

print_test("running test on PyListTest", 2)
plt = PyListTest()
plt.testAll()

print_test("running test on PyTupleTest", 2)
ptt = PyTupleTest()
ptt.testAll()