You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CoreActionMetaTypeTest.java 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * CoreActionMetaTypeTest.java
  3. * JUnit 4.x based test
  4. *
  5. * Created on 05 June 2007, 22:55
  6. */
  7. package com.dmdirc.actions;
  8. import junit.framework.TestCase;
  9. import org.junit.AfterClass;
  10. import org.junit.Before;
  11. import org.junit.BeforeClass;
  12. import org.junit.Test;
  13. import static org.junit.Assert.*;
  14. /**
  15. *
  16. * @author chris
  17. */
  18. public class CoreActionMetaTypeTest extends TestCase {
  19. public CoreActionMetaTypeTest() {
  20. }
  21. @BeforeClass
  22. public static void setUpClass() throws Exception {
  23. }
  24. @AfterClass
  25. public static void tearDownClass() throws Exception {
  26. }
  27. @Before
  28. public void setUp() throws Exception {
  29. }
  30. @Test
  31. public void testCheckArgTypeSize() {
  32. for (CoreActionMetaType type : CoreActionMetaType.values()) {
  33. assertEquals(type.getArity(), type.getArgTypes().length);
  34. }
  35. }
  36. @Test
  37. public void testCheckArgNameSize() {
  38. for (CoreActionMetaType type : CoreActionMetaType.values()) {
  39. assertEquals(type.getArity(), type.getArgNames().length);
  40. }
  41. }
  42. }