@Test public void testSetUpNoClassName() throws ClassNotFoundException { expectedEx.expect(RuntimeException.class); expectedEx.expectMessage("No db class name provided"); CustomDatabase customDatabase = new CustomDatabase(); SQLInputs sqlInput = SQLInputs.builder().build(); sqlInput.setDbClass(EMPTY); customDatabase.setUp(sqlInput); }
@Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { try { loadClassForName(sqlInputs.getDbClass()); } catch (final RuntimeException e) { throw new RuntimeException("No db class name provided"); } return getDbUrls(sqlInputs.getDbUrl()); }
CustomDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { try { loadClassForName(sqlInputs.getDbClass()); } catch (final RuntimeException e) { throw new RuntimeException("No db class name provided"); } return getDbUrls(sqlInputs.getDbUrl()); } }
CustomDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { try { loadClassForName(sqlInputs.getDbClass()); } catch (final RuntimeException e) { throw new RuntimeException("No db class name provided"); } return getDbUrls(sqlInputs.getDbUrl()); }  }
CustomDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { try { loadClassForName(sqlInputs.getDbClass()); } catch (final RuntimeException e) { throw new RuntimeException("No db class name provided"); } return getDbUrls(sqlInputs.getDbUrl()); }  @Override List<String> setUp(@NotNull final SQLInputs sqlInputs); }
CustomDatabase implements SqlDatabase { @Override public List<String> setUp(@NotNull final SQLInputs sqlInputs) { try { loadClassForName(sqlInputs.getDbClass()); } catch (final RuntimeException e) { throw new RuntimeException("No db class name provided"); } return getDbUrls(sqlInputs.getDbUrl()); }  @Override List<String> setUp(@NotNull final SQLInputs sqlInputs);  }