Java 类javax.management.openmbean.KeyAlreadyExistsException 实例源码

项目:freeVM    文件:TabularDataSupportTest.java   
/**
 * Verify that TabularData does not accept the same CompositeData.
 */
public Result testTheSameCompositeData() throws Exception {
    try {
        TabularData tabularData = getTabularData();
        tabularData.put(CompositeDataSupportTest.getCompositeData());
        assertTrue(false);
    } catch (KeyAlreadyExistsException e) {
    }
    return result();
}