"jdbc:phoenix:v1,v2,v3:/hbase:user/principal:/user.keytab;test=false",
"jdbc:phoenix:v1,v2,v3:LongRunningQueries;test=false",
"jdbc:phoenix:v1,v2,v3:345:LongRunningQueries;test=false",
};
ConnectionInfo[] infos = new ConnectionInfo[] {
new ConnectionInfo(null,null,null),
new ConnectionInfo(null,null,null),
new ConnectionInfo("localhost",null,null),
new ConnectionInfo("localhost",123,null),
new ConnectionInfo("localhost",123,null),
new ConnectionInfo("localhost",123,"/hbase"),
new ConnectionInfo("localhost",123,"/hbase"),
new ConnectionInfo("localhost",null,"/hbase"),
new ConnectionInfo("localhost",null,"/hbase"),
new ConnectionInfo("v1,v2,v3",null,null),
new ConnectionInfo("v1,v2,v3",null,null),
new ConnectionInfo("v1,v2,v3",null,null),
new ConnectionInfo("v1,v2,v3",null,"/hbase"),
new ConnectionInfo("v1,v2,v3",null,"/hbase"),
new ConnectionInfo("v1,v2,v3",123,"/hbase"),
new ConnectionInfo("v1,v2,v3",123,"/hbase"),
new ConnectionInfo("v1,v2,v3",123,"/hbase","user/principal", "/user.keytab" ),
new ConnectionInfo("v1,v2,v3",123, null,"user/principal", "/user.keytab" ),
new ConnectionInfo("v1,v2,v3", null, null,"user/principal", "/user.keytab" ),
new ConnectionInfo("v1,v2,v3",null,"/hbase","user/principal", "/user.keytab" ),
new ConnectionInfo("v1,v2,v3",null,null,"LongRunningQueries", null ),
new ConnectionInfo("v1,v2,v3",345,null,"LongRunningQueries", null ),
};
assertEquals(urls.length,infos.length);
for (int i = 0; i < urls.length; i++) {
try {
ConnectionInfo info = ConnectionInfo.create(urls[i]);
assertEquals(infos[i], info);
} catch (AssertionError e) {
throw new AssertionError("For \"" + urls[i] + "\": " + e.getMessage());
}
}