Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.airlift.jmx;
 
 
 import java.util.Map;
 
 import static io.airlift.configuration.testing.ConfigAssertions.assertFullMapping;
 import static io.airlift.configuration.testing.ConfigAssertions.assertRecordedDefaults;
import static io.airlift.configuration.testing.ConfigAssertions.recordDefaults;
public class TestJmxConfig
    @Test
    public void testDefaults()
    {
                .setRmiRegistryPort(null)
                .setRmiServerPort(null));
    }
    @Test
    public void testExplicitPropertyMappings()
    {
        Map<StringStringproperties = new ImmutableMap.Builder<StringString>()
                .put("jmx.rmiregistry.port""1")
                .put("jmx.rmiserver.port""2")
                .build();
        JmxConfig expected = new JmxConfig()
                .setRmiRegistryPort(1)
                .setRmiServerPort(2);
        assertFullMapping(propertiesexpected);
    }
New to GrepCode? Check out our FAQ X