1 50 package org.apache.avalon.meta.info.test; 51 52 import org.apache.avalon.meta.info.CategoryDescriptor; 53 import org.apache.avalon.meta.info.Descriptor; 54 55 61 public class CategoryDescriptorTestCase extends AbstractDescriptorTestCase 62 { 63 private final String m_name = "name"; 64 65 public CategoryDescriptorTestCase( String name ) 66 { 67 super( name ); 68 } 69 70 protected Descriptor getDescriptor() 71 { 72 return new CategoryDescriptor(m_name, getProperties()); 73 } 74 75 76 protected void checkDescriptor( Descriptor desc ) 77 { 78 super.checkDescriptor( desc ); 79 CategoryDescriptor cat = (CategoryDescriptor) desc; 80 81 assertEquals( m_name, cat.getName() ); 82 } 83 } | Popular Tags |