1 10 11 package com.triactive.jdo.model.test; 12 13 import com.triactive.jdo.model.*; 14 import com.triactive.jdo.model.test.widgets.*; 15 import junit.framework.TestCase; 16 17 18 24 25 public class ClassMetaDataTest extends TestCase 26 { 27 33 34 public ClassMetaDataTest(String name) 35 { 36 super(name); 37 } 38 39 40 43 44 public void testLoadingMetaDataForOneClass() 45 { 46 Widget.assertValidMetaData(ClassMetaData.forClass(Widget.class), this); 47 } 48 49 50 53 54 public void testLoadingMetaDataForAPackage() 55 { 56 BinaryWidget.assertValidMetaData(ClassMetaData.forClass(BinaryWidget.class), this); 57 58 DateWidget.assertValidMetaData(ClassMetaData.forClass(DateWidget.class), this); 59 60 FloatWidget.assertValidMetaData(ClassMetaData.forClass(FloatWidget.class), this); 61 62 SelfReferencingWidget.assertValidMetaData(ClassMetaData.forClass(SelfReferencingWidget.class), this); 63 } 64 } 65 | Popular Tags |