]> granicus.if.org Git - icu/commitdiff
ICU-9129 Improved error handling and message in the serialization coverage test.
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 3 May 2012 21:46:11 +0000 (21:46 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 3 May 2012 21:46:11 +0000 (21:46 +0000)
X-SVN-Rev: 31794

icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/CoverageTest.java

index 48275c9eb1a59fe450da3f33c090baf03ef6a303..0d1ef38b0b51250026dd56d9fa4cc3af3c6fcbba 100644 (file)
@@ -1,7 +1,7 @@
 //##header
 /*
  *******************************************************************************
- * Copyright (C) 2005-2011, International Business Machines Corporation and    *
+ * Copyright (C) 2005-2012, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  *
@@ -166,7 +166,11 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
                             
                             add(className, m, byteOut.toByteArray());
                         } else {
-                            add(className, m, null);
+                            if (!Modifier.isAbstract(m)) {
+                                errln("Missing test handler. Update the list of tests in SerializableTest.java to include a test case for " + className);
+                            } else {
+                                add(className, m, null);
+                            }
                         }
                     }
                 }