@Test public void mysqlTestOverrides() throws Exception { InfobrightDatabaseMeta idm = new InfobrightDatabaseMeta(); idm.setAccessType( DatabaseMeta.TYPE_ACCESS_NATIVE ); assertEquals( 5029, idm.getDefaultDatabasePort() ); idm.setAccessType( DatabaseMeta.TYPE_ACCESS_ODBC ); assertEquals( -1, idm.getDefaultDatabasePort() ); }
@Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5029; } return -1; }
InfobrightDatabaseMeta extends MySQLDatabaseMeta implements DatabaseInterface { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5029; } return -1; } }
InfobrightDatabaseMeta extends MySQLDatabaseMeta implements DatabaseInterface { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5029; } return -1; }  }
InfobrightDatabaseMeta extends MySQLDatabaseMeta implements DatabaseInterface { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5029; } return -1; }  @Override int getDefaultDatabasePort(); @Override void addDefaultOptions(); }
InfobrightDatabaseMeta extends MySQLDatabaseMeta implements DatabaseInterface { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5029; } return -1; }  @Override int getDefaultDatabasePort(); @Override void addDefaultOptions();  }