use of org.junit.jupiter.api.TestTemplate in project java-cloudant by cloudant.
the class DatabaseURIHelperTest method buildEscapedDbUri.
// this test shows that non-ascii characters will be represented correctly
// in the url but that we don't escape characters like /
@TestTemplate
public void buildEscapedDbUri(String path) throws Exception {
URI expected = new URI(uriBase + "/SDF@%23%25$%23)DFGKLDfdffdg%C3%A9");
URI actual = helper(path + "/SDF@#%$#)DFGKLDfdffdg\u00E9").getDatabaseUri();
Assertions.assertEquals(expected.toASCIIString(), actual.toASCIIString());
}
Aggregations