Community
Participate
Working Groups
In ClientDriverTests Properties getUrlProperties() { Properties props = new Properties(); props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, "org.apache.derby.jdbc.ClientDriver"); props.put(DataSourceFactory.JDBC_URL, "jdbc:derby://localhost:1527/accountDB"); props.put(DataSourceFactory.JDBC_USER, "app"); props.put(DataSourceFactory.JDBC_PASSWORD, "app"); return props; } Does not specify create=true. This means there will be a failure for anyone running the tests for the first time. Code should be: Properties getUrlProperties() { Properties props = new Properties(); props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, "org.apache.derby.jdbc.ClientDriver"); props.put(DataSourceFactory.JDBC_URL, "jdbc:derby://localhost:1527/accountDB;create=true"); props.put(DataSourceFactory.JDBC_USER, "app"); props.put(DataSourceFactory.JDBC_PASSWORD, "app"); return props; }
Fixed.