Package org.jolokia.jvmagent

Examples of org.jolokia.jvmagent.ParsedUri


*/
public class ParseUriTest {

    @Test
    public void simple() throws URISyntaxException {
        ParsedUri uri = new ParsedUri(new URI("http://localhost:8080/jolokia/read?test=eins&test=zwei&bla"),"/read");
        String[] test= uri.getParameterMap().get("test");
        assertEquals(test[0],"eins");
        assertEquals(test[1],"zwei");
        assertTrue(uri.getParameterMap().containsKey("bla"));
        assertNull(uri.getParameterMap().get("bla")[0]);
    }
View Full Code Here

TOP

Related Classes of org.jolokia.jvmagent.ParsedUri

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.