@@ -167,6 +167,9 @@ def test_bytes_rw(self):
167167 self ._try_marshalling (jobj , pobj )
168168
169169 def test_class_with_byte_array_rw (self ):
170+ """
171+ Tests handling of classes containing a Byte Array
172+ """
170173 jobj = self .read_file ("testClassWithByteArray.ser" )
171174 pobj = javaobj .loads (jobj )
172175
@@ -250,6 +253,9 @@ def test_class(self):
250253 # _logger.debug(".. Fields Types: %s", classdesc.fields_types)
251254
252255 def test_super (self ):
256+ """
257+ Tests basic class inheritance handling
258+ """
253259 jobj = self .read_file ("objSuper.ser" )
254260 pobj = javaobj .loads (jobj )
255261 _logger .debug (pobj )
@@ -267,6 +273,9 @@ def test_super(self):
267273 self ._try_marshalling (jobj , pobj )
268274
269275 def test_arrays (self ):
276+ """
277+ Tests handling of Java arrays
278+ """
270279 jobj = self .read_file ("objArrays.ser" )
271280 pobj = javaobj .loads (jobj )
272281 _logger .debug (pobj )
@@ -290,6 +299,9 @@ def test_arrays(self):
290299 self ._try_marshalling (jobj , pobj )
291300
292301 def test_japan (self ):
302+ """
303+ Tests the UTF encoding handling with Japanese characters
304+ """
293305 # Japan.ser contains a string using wide characters: the name of the
294306 # state from Japan (according to wikipedia)
295307 jobj = self .read_file ("testJapan.ser" )
@@ -302,6 +314,9 @@ def test_japan(self):
302314 self ._try_marshalling (jobj , pobj )
303315
304316 def test_char_array (self ):
317+ """
318+ Tests the loading of a wide-char array
319+ """
305320 jobj = self .read_file ("testCharArray.ser" )
306321 pobj = javaobj .loads (jobj )
307322 _logger .debug (pobj )
@@ -320,6 +335,9 @@ def test_char_array(self):
320335 self ._try_marshalling (jobj , pobj )
321336
322337 def test_enums (self ):
338+ """
339+ Tests the handling of "enum" types
340+ """
323341 jobj = self .read_file ("objEnums.ser" )
324342 pobj = javaobj .loads (jobj )
325343 _logger .debug (pobj )
@@ -340,6 +358,9 @@ def test_enums(self):
340358 # self._try_marshalling(jobj, pobj)
341359
342360 def test_sets (self ):
361+ """
362+ Tests handling of HashSet and TreeSet
363+ """
343364 for filename in ("testHashSet.ser" , "testTreeSet.ser" ):
344365 _logger .debug ("Loading file: %s" , filename )
345366 jobj = self .read_file (filename )
@@ -349,6 +370,9 @@ def test_sets(self):
349370 self .assertSetEqual ({i .value for i in pobj }, {1 , 2 , 42 })
350371
351372 def test_times (self ):
373+ """
374+ Tests the handling of java.time classes
375+ """
352376 jobj = self .read_file ("testTime.ser" )
353377 pobj = javaobj .loads (jobj )
354378 _logger .debug (pobj )
@@ -392,6 +416,9 @@ def test_sun_example(self):
392416 self .assertFalse (pobj .next )
393417
394418 def test_collections (self ):
419+ """
420+ Tests the handling of ArrayList, LinkedList and HashMap
421+ """
395422 jobj = self .read_file ("objCollections.ser" )
396423 pobj = javaobj .loads (jobj )
397424 _logger .debug (pobj )
@@ -407,6 +434,9 @@ def test_collections(self):
407434 # self._try_marshalling(jobj, pobj)
408435
409436 def test_jceks_issue_5 (self ):
437+ """
438+ Tests the handling of JCEKS issue #5
439+ """
410440 jobj = self .read_file ("jceks_issue_5.ser" )
411441 pobj = javaobj .loads (jobj )
412442 _logger .info (pobj )
0 commit comments