12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- * CoreActionMetaTypeTest.java
- * JUnit 4.x based test
- *
- * Created on 05 June 2007, 22:55
- */
-
- package com.dmdirc.actions;
-
- import junit.framework.TestCase;
- import org.junit.AfterClass;
- import org.junit.Before;
- import org.junit.BeforeClass;
- import org.junit.Test;
- import static org.junit.Assert.*;
-
- /**
- *
- * @author chris
- */
- public class CoreActionMetaTypeTest extends TestCase {
-
- public CoreActionMetaTypeTest() {
- }
-
- @BeforeClass
- public static void setUpClass() throws Exception {
- }
-
- @AfterClass
- public static void tearDownClass() throws Exception {
- }
-
- @Before
- public void setUp() throws Exception {
- }
-
- @Test
- public void testCheckArgTypeSize() {
- for (CoreActionMetaType type : CoreActionMetaType.values()) {
- assertEquals(type.getArity(), type.getArgTypes().length);
- }
- }
-
- @Test
- public void testCheckArgNameSize() {
- for (CoreActionMetaType type : CoreActionMetaType.values()) {
- assertEquals(type.getArity(), type.getArgNames().length);
- }
- }
-
- }
|