-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from rnc/224
- Loading branch information
Showing
5 changed files
with
100 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
core/src/test/java/org/jacorb/config/JacORBConfigurationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.jacorb.config; | ||
|
||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.contrib.java.lang.system.SystemErrRule; | ||
import org.omg.CORBA.ORB; | ||
|
||
import java.util.Properties; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class JacORBConfigurationTest | ||
{ | ||
@Rule | ||
public final SystemErrRule systemErrRule = new SystemErrRule().enableLog().muteForSuccessfulTests(); | ||
|
||
@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" ) ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters