Examples of asUrlEncoded()


Examples of org.apache.isis.viewer.json.applib.links.LinkRepresentation.asUrlEncoded()

        final String expectedValue = "%7B%22method%22%3A%22GET%22%2C%22rel%22%3A%22object%22%2C%22href%22%3A%22http%3A%2F%2Flocalhost%3A8080%2Fobjects%2FABC%3A123%22%7D";
        @SuppressWarnings("unused")
        final String decoded = URLDecoder.decode(expectedValue, Charsets.UTF_8.name());

        assertThat(l.asUrlEncoded(), is(expectedValue));

    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.