1 19 package org.enhydra.zeus.binding; 20 21 import java.util.BitSet ; 22 import java.util.Vector ; 23 24 import junit.framework.Test; 25 import junit.framework.TestCase; 26 import junit.framework.TestSuite; 27 28 43 public class ContainerPropertyTest extends AbstractContainerTest { 44 45 49 private BitSet modifiers; 50 51 52 private ContainerProperty containerProperty; 53 54 55 61 protected Container createContainer() { 62 return new ContainerProperty("", 63 "my_xml_name", 64 "my_type_uri", 65 "my_xml_type"); 66 } 67 68 71 public ContainerPropertyTest(String name) { 72 super(name); 73 } 74 75 80 public static Test suite() { 81 return new TestSuite(ContainerPropertyTest.class); 82 } 83 84 87 protected void setUp() { 88 modifiers = new BitSet (); 89 modifiers.set(Property.ACCESS_PRIVATE); 90 modifiers.set(Property.SOURCE_ATTLIST); 91 92 containerProperty = new ContainerProperty("", 93 "my_xml_name", 94 "my_type_uri", 95 "my_xml_type"); 96 } 97 98 101 protected void tearDown() { 102 modifiers = null; 103 containerProperty = null; 104 } 105 106 109 public void testConstructor1() { 110 ContainerProperty c 111 = new ContainerProperty("xml_name_uri", 112 "xml_name", 113 "xml_type_uri", 114 "xml_type", 115 modifiers); 116 assertTrue("Constructor failure", c != null); 117 } 118 119 122 public void testConstructor3() { 123 ContainerProperty c 124 = new ContainerProperty("xml_name_uri", 125 "xml_name", 126 "xml_type_uri", 127 "xml_type"); 128 assertTrue("Constructor failure", c != null); 129 } 130 131 } 132 133 | Popular Tags |