Fix broken test (LIABILITY->EXPENSE is now valid) and adjust mapping of RecurringTransaction in Transaction to better reflect the actual relationship
This commit is contained in:
@@ -18,7 +18,7 @@ public class Transaction {
|
|||||||
private Date date;
|
private Date date;
|
||||||
private String description;
|
private String description;
|
||||||
private Long amount;
|
private Long amount;
|
||||||
@OneToOne(fetch = FetchType.EAGER)
|
@ManyToOne(fetch = FetchType.EAGER)
|
||||||
private RecurringTransaction recurringTransaction;
|
private RecurringTransaction recurringTransaction;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ public class RuleService_isValidBookingTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test_isValidBooking_LIABILITY_EXPENSE() {
|
public void test_isValidBooking_LIABILITY_EXPENSE() {
|
||||||
doTest(AccountType.LIABILITY, AccountType.EXPENSE, false);
|
doTest(AccountType.LIABILITY, AccountType.EXPENSE, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user