Esempio n. 1
0
 def test_correctSignature(self):
     sig = annotation.generateSignature(ChangeType())
     self.assertEquals(sig, 1572520470)
Esempio n. 2
0
 def test_inheritedGenericCustomFieldSerializer(self):
     """Verify that the generic serializer supports inherited types.
     """
     sig = annotation.generateSignature(FutureType())
     self.assertEquals(sig, 2439950297)
Esempio n. 3
0
 def test_IncompatibleRemoteServiceException(self):
     typeInstance = igwt.IType(error.IncompatibleRemoteServiceException())
     sig = annotation.generateSignature(typeInstance)
     self.assertEquals(sig, 3936916533)
Esempio n. 4
0
 def test_genericCustomFieldSerializer(self):
     """Verify that the generic serializer generates correct
     signatures
     """
     sig = annotation.generateSignature(ChangeType())
     self.assertEquals(sig, 1572520470)
Esempio n. 5
0
 def test_intArray(self):
     """Verify that the signature for an array of integers
     is generated correctly.
     """
     sig = annotation.generateSignature(annotation.Array(annotation.Integer()))
     self.assertEquals(sig, 2970817851)
Esempio n. 6
0
 def test_hashMapArray(self):
     """Verify that the signature for an array of java.util.HashMap is
     generated correctly.
     """
     sig = annotation.generateSignature(annotation.Array(annotation.HashMap()))
     self.assertEquals(sig, 3177835830)
Esempio n. 7
0
 def test_javaUtilHashMap(self):
     """Verify that the signature for java.util.HashMap is generated
     correctly.
     """
     sig = annotation.generateSignature(annotation.HashMap())
     self.assertEquals(sig, 962170901)
Esempio n. 8
0
 def test_javaLangString(self):
     """Verify that the signature for java.lang.String is generated
     correctly.
     """
     sig = annotation.generateSignature(annotation.String())
     self.assertEquals(sig, 2004016611)