public void testConstructor() {
Hashtable defps = new Hashtable();
Vector names = new Vector();
try {
OrderedPropertySetManager opsm = new OrderedPropertySetManager( null, null );
fail();
} catch( Exception iae ) {}
try {
OrderedPropertySetManager opsm = new OrderedPropertySetManager( null, defps );
fail();
} catch( Exception iae ) {}
try {
OrderedPropertySetManager opsm = new OrderedPropertySetManager( names, null );
fail();
} catch( Exception iae ) {}
OrderedPropertySetManager opsm01 = new OrderedPropertySetManager();
OrderedPropertySetManager opsm02 = new OrderedPropertySetManager( names, defps );
PropertySet ps01 = new PropertySet();
defps.put( "ps01", ps01 );
names.add( "ps01" );
OrderedPropertySetManager opsm03 = new OrderedPropertySetManager( names, defps );
defps.put( "ps02", new Object() );
try {
OrderedPropertySetManager opsm04 = new OrderedPropertySetManager( names, defps );
fail();
} catch( Exception iae ) {}
defps.put( "ps02", new PropertySet() );
names.add( "ps02" );
OrderedPropertySetManager opsm05 = new OrderedPropertySetManager( names, defps );
defps.remove( "ps02" );
try {
OrderedPropertySetManager opsm06 = new OrderedPropertySetManager( names, defps );
fail();
} catch( Exception iae ) {}
names.remove( "ps02" );
OrderedPropertySetManager opsm07 = new OrderedPropertySetManager( names, defps );
names.add( new Object() );
try {
OrderedPropertySetManager opsm06 = new OrderedPropertySetManager( names, defps );
fail();
} catch( Exception iae ) {}
}