Search in sources :

Example 1 with JsonWrapper

use of com.github.mgramin.sqlboot.model.uri.wrappers.JsonWrapper in project sql-boot by sql-boot.

the class DbUriTest method test.

private void test(String uriString, String jsonExpected) throws BootException {
    Uri uri = new DbUri(uriString);
    assertEquals(uriString, uri.toString());
    assertEquals(new JsonWrapper(new DbUri(uriString)).toString(), jsonExpected);
}
Also used : DbUri(com.github.mgramin.sqlboot.model.uri.impl.DbUri) JsonWrapper(com.github.mgramin.sqlboot.model.uri.wrappers.JsonWrapper) Uri(com.github.mgramin.sqlboot.model.uri.Uri) DbUri(com.github.mgramin.sqlboot.model.uri.impl.DbUri)

Aggregations

Uri (com.github.mgramin.sqlboot.model.uri.Uri)1 DbUri (com.github.mgramin.sqlboot.model.uri.impl.DbUri)1 JsonWrapper (com.github.mgramin.sqlboot.model.uri.wrappers.JsonWrapper)1