Code example for SortedMap

Methods: get

0
 
    @Test 
    public void testParameterOptions() throws Exception { 
        CommandLineArgs lineArgs = parseArgs("Reproject", "-PpixelSizeX=0.02", "-PpixelSizeY=0.03", "-PpixelOffsetX=0.5", "-PpixelOffsetY=1.0", "source.dim");
        SortedMap<String, String> parameterMap = lineArgs.getParameterMap();
        assertEquals("0.02", parameterMap.get("pixelSizeX"));
        assertEquals("0.03", parameterMap.get("pixelSizeY"));
        assertEquals("0.5", parameterMap.get("pixelOffsetX"));
        assertEquals("1.0", parameterMap.get("pixelOffsetY"));
    } 
 
 
    @Test 
    public void testParametersFileOption() throws Exception { 
        CommandLineArgs lineArgs = parseArgs("Reproject", "source.dim", "-p", "param.properties");
        assertEquals("param.properties", lineArgs.getParameterFilePath());
    } 
 
    @Test 
    public void testMetadataFileOption() throws Exception { 
Experience pair programming with AI  Get Codota for Java