Explorar el Código

Add messages to the ActionEventsTest to figure out which is failing

git-svn-id: http://svn.dmdirc.com/trunk@3807 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith hace 16 años
padre
commit
029ded545e
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. 6
    3
      test/com/dmdirc/actions/metatypes/ActionEventsTest.java

+ 6
- 3
test/com/dmdirc/actions/metatypes/ActionEventsTest.java Ver fichero

@@ -21,6 +21,7 @@
21 21
  */
22 22
 package com.dmdirc.actions.metatypes;
23 23
 
24
+import com.dmdirc.actions.interfaces.ActionMetaType;
24 25
 import org.junit.Test;
25 26
 import static org.junit.Assert.*;
26 27
 
@@ -28,9 +29,11 @@ public class ActionEventsTest extends junit.framework.TestCase {
28 29
 
29 30
     @Test
30 31
     public void testArity() {
31
-        for (ActionEvents event : ActionEvents.values()) {
32
-            assertEquals(event.getArity(), event.getArgNames().length);
33
-            assertEquals(event.getArity(), event.getArgTypes().length);
32
+        for (ActionMetaType event : ActionEvents.values()) {
33
+            assertEquals("Arity and number of arg names must be equal",
34
+                    event.getArity(), event.getArgNames().length);
35
+            assertEquals("Arity and number of arg types must be equal",
36
+                    event.getArity(), event.getArgTypes().length);
34 37
         }
35 38
     }
36 39
 

Loading…
Cancelar
Guardar