JacORBConfiguration implements Configuration { @Override public void setAttributes(Properties properties) { for ( String key : properties.stringPropertyNames() ) { setAttribute( key, properties.getProperty( key ) ); } } private  JacORBConfiguration(String name,
                                Properties orbProperties,
                                ORB orb,
                                boolean isApplet); static Configuration getConfiguration(Properties props,
                                                 org.omg.CORBA.ORB orb,
                                                 boolean isApplet); static Configuration getConfiguration(Properties props,
                                                 ORB orb,
                                                 String orbid,
                                                 boolean isApplet); @Override void setAttribute(String key, String value); @Override void setAttribute(String key, int value); @Override void setAttributes(Properties properties); void shutdownLogging(); @Override org.jacorb.orb.ORB getORB(); @Override org.slf4j.Logger getLogger(String name); @Override boolean isAttributeSet(String key); @Override String getAttribute(String key); @Override String getAttribute(String key, String defaultValue); @Override int getAttributeAsInteger(String key, int defaultValue); @Override int getAttributeAsInteger(String key, int defaultValue, int radix); @Override int getAttributeAsInteger(String key); @Override long getAttributeAsLong(String key, long defaultValue); @Override List<String> getAttributeList(String key); @Override String[] getAttributeAsStringsArray(String key); @Override Object getAttributeAsObject( String key ); @Override Object getAttributeAsObject(String key, String defaultClass); @Override boolean getAttributeAsBoolean(String key, boolean defaultValue); @Override List<String> getAttributeNamesWithPrefix(String prefix); @Override double getAttributeAsFloat(String key, double defaultValue); static final boolean useTCCL; }
@Test public void setAttributes() throws ConfigurationException { Properties orbProps = new Properties(); orbProps.setProperty("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB"); orbProps.setProperty("org.omg.CORBA.ORBSingletonClass", "org.jacorb.orb.ORBSingleton"); ORB orb = ORB.init( new String[] {}, orbProps); Properties props = new Properties(); props.put ("jacorb.config.log.verbosity", "4"); props.put("jacorb.connection.request.write_timeout", 60000); props.put ("custom.props", "applet-special.properties"); JacORBConfiguration.getConfiguration(props, orb, true); orb.destroy(); assertTrue( systemErrRule.getLog().contains( "Property jacorb.connection.request.write_timeout does not map to String object" ) ); }