Closed luke-grassroot closed 9 years ago
Call route is accountManagementService.createAccount(String accountName)
will have a look
account entity and account repository looks fine, passes a simple save test
service test also passes :-(
@Test
public void shouldSaveBilling() {
String email = "bigbucks@money.com";
Account account = accountManagementService.createAccount("branch1");
account = accountManagementService.setBillingEmail(account, email);
assertNotEquals(null,account.getId());
assertEquals("bigbucks@money.com",account.getPrimaryEmail());
}
will have to make myself an administrator so i can test the web page
I am also writing tests in core (really big bloops on my part not to have done earlier) and the repository is passing. So the problem isn't in Hibernate/JPA, it must be in the DB (since this only causes a problem in local_pg). Maybe I messed something up in creating/assigning the sequences?
Fixed by latest commit recreating table.
Via 'admin/accounts/create', posting, get this log error:
org.postgresql.util.PSQLException: ERROR: null value in column "id" violates not-null constraint Detail: Failing row contains (null, 2015-11-13 23:05:49.053, Test, null, t, t, t).