| Summary: | ClientDriverTests do not create the DB | ||
|---|---|---|---|
| Product: | [RT] Gemini.DBaccess | Reporter: | Tom Ware <tom.ware> |
| Component: | Core | Assignee: | Project Inbox <gemini.dbaccess-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | michael.keith |
| Version: | unspecified | Flags: | michael.keith:
iplog+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Fixed. |
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; }