1 7 8 package org.jdesktop.jdnc.markup; 9 10 import java.util.List ; 11 12 import junit.framework.Test; 13 import junit.framework.TestCase; 14 import junit.framework.TestSuite; 15 16 import org.jdesktop.jdnc.markup.ElementTypes; 17 import net.openmarkup.ElementType; 18 19 public class VocabularyUnitTest extends TestCase { 20 21 public VocabularyUnitTest() { 22 super("Vocabulary Unit Test"); 23 } 24 25 public void testDummy() { 27 } 28 29 public static void main(String [] args) { 30 listVocabulary(ElementTypes.get().family()); 31 } 32 33 private static void listVocabulary(List types) { 34 System.out.println("**** BEGIN VOCABULARY ****"); 35 for (int i = 0; i < types.size(); i++) { 36 ElementType elemType = (ElementType) types.get(i); 37 System.out.println(elemType.getFullName()); 38 System.out.println("\timplemented by: " + elemType.getImplementationClass()); 39 System.out.println("\trealized as: " + elemType.getObjectClassName()); 40 } 41 System.out.println("**** END VOCABULARY ****"); 42 } 43 } 44 | Popular Tags |