@Test void testURLTransform() { this.testProperties.setProperty("javax.persistence.jdbc.url", "jdbc:cutom: Properties properties = this.provider.getProperties(TEST_DATABASENAME); assertThat(properties.getProperty("javax.persistence.jdbc.url"), is("jdbc:cutom: }
@Override public Properties getProperties(String name) { Properties properties = new Properties(this.javaxProperties); String url = properties.getProperty(JAVAX_PERSISTENCE_URL); url = url.replace("{databasename}", name); properties.setProperty(JAVAX_PERSISTENCE_URL, url); return properties; }
GenericJDBCPersistenceProvider implements PersistenceProvider { @Override public Properties getProperties(String name) { Properties properties = new Properties(this.javaxProperties); String url = properties.getProperty(JAVAX_PERSISTENCE_URL); url = url.replace("{databasename}", name); properties.setProperty(JAVAX_PERSISTENCE_URL, url); return properties; } }
GenericJDBCPersistenceProvider implements PersistenceProvider { @Override public Properties getProperties(String name) { Properties properties = new Properties(this.javaxProperties); String url = properties.getProperty(JAVAX_PERSISTENCE_URL); url = url.replace("{databasename}", name); properties.setProperty(JAVAX_PERSISTENCE_URL, url); return properties; }  }
GenericJDBCPersistenceProvider implements PersistenceProvider { @Override public Properties getProperties(String name) { Properties properties = new Properties(this.javaxProperties); String url = properties.getProperty(JAVAX_PERSISTENCE_URL); url = url.replace("{databasename}", name); properties.setProperty(JAVAX_PERSISTENCE_URL, url); return properties; }  @Override Properties getProperties(String name); }
GenericJDBCPersistenceProvider implements PersistenceProvider { @Override public Properties getProperties(String name) { Properties properties = new Properties(this.javaxProperties); String url = properties.getProperty(JAVAX_PERSISTENCE_URL); url = url.replace("{databasename}", name); properties.setProperty(JAVAX_PERSISTENCE_URL, url); return properties; }  @Override Properties getProperties(String name);  }