소스 검색

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 16 년 전
부모
커밋
029ded545e
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6
    3
      test/com/dmdirc/actions/metatypes/ActionEventsTest.java

+ 6
- 3
test/com/dmdirc/actions/metatypes/ActionEventsTest.java 파일 보기

@@ -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…
취소
저장