fixup! Exclude milliseconds from transaction dates

This commit is contained in:
William Brawner 2021-09-19 20:25:35 -06:00
parent 9446b52e3d
commit 722805f732

View file

@ -32,7 +32,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Daily transaction", title = "Daily transaction",
amount = 123, amount = 123,
frequency = Frequency.Daily(1, Time(9, 0, 0, 0)), frequency = Frequency.Daily(1, Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -54,7 +54,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Daily transaction", title = "Daily transaction",
amount = 123, amount = 123,
frequency = Frequency.Daily(2, Time(9, 0, 0, 0)), frequency = Frequency.Daily(2, Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -73,7 +73,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Weekly transaction", title = "Weekly transaction",
amount = 123, amount = 123,
frequency = Frequency.Weekly(1, setOf(DayOfWeek.THURSDAY), Time(9, 0, 0, 0)), frequency = Frequency.Weekly(1, setOf(DayOfWeek.THURSDAY), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -96,7 +96,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Weekly transaction", title = "Weekly transaction",
amount = 123, amount = 123,
frequency = Frequency.Weekly(3, setOf(DayOfWeek.THURSDAY), Time(9, 0, 0, 0)), frequency = Frequency.Weekly(3, setOf(DayOfWeek.THURSDAY), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -117,7 +117,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Monthly transaction", title = "Monthly transaction",
amount = 123, amount = 123,
frequency = Frequency.Monthly(1, DayOfMonth.day(1), Time(9, 0, 0, 0)), frequency = Frequency.Monthly(1, DayOfMonth.day(1), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -140,7 +140,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Monthly transaction", title = "Monthly transaction",
amount = 123, amount = 123,
frequency = Frequency.Monthly(1, DayOfMonth.day(31), Time(9, 0, 0, 0)), frequency = Frequency.Monthly(1, DayOfMonth.day(31), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -163,7 +163,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Monthly transaction", title = "Monthly transaction",
amount = 123, amount = 123,
frequency = Frequency.Monthly(6, DayOfMonth.day(15), Time(9, 0, 0, 0)), frequency = Frequency.Monthly(6, DayOfMonth.day(15), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -187,7 +187,7 @@ class RecurringTransactionProcessingJobTest {
frequency = Frequency.Monthly( frequency = Frequency.Monthly(
1, 1,
DayOfMonth.positionalDayOfWeek(Position.SECOND, DayOfWeek.TUESDAY), DayOfMonth.positionalDayOfWeek(Position.SECOND, DayOfWeek.TUESDAY),
Time(9, 0, 0, 0) Time(9, 0, 0)
), ),
expense = true, expense = true,
start = start, start = start,
@ -214,7 +214,7 @@ class RecurringTransactionProcessingJobTest {
frequency = Frequency.Monthly( frequency = Frequency.Monthly(
1, 1,
DayOfMonth.positionalDayOfWeek(Position.LAST, DayOfWeek.FRIDAY), DayOfMonth.positionalDayOfWeek(Position.LAST, DayOfWeek.FRIDAY),
Time(9, 0, 0, 0) Time(9, 0, 0)
), ),
expense = true, expense = true,
start = start, start = start,
@ -238,7 +238,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Yearly transaction", title = "Yearly transaction",
amount = 123, amount = 123,
frequency = Frequency.Yearly(1, MonthDay.of(3, 31), Time(9, 0, 0, 0)), frequency = Frequency.Yearly(1, MonthDay.of(3, 31), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -261,7 +261,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Yearly transaction", title = "Yearly transaction",
amount = 123, amount = 123,
frequency = Frequency.Yearly(2, MonthDay.of(3, 31), Time(9, 0, 0, 0)), frequency = Frequency.Yearly(2, MonthDay.of(3, 31), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",
@ -282,7 +282,7 @@ class RecurringTransactionProcessingJobTest {
RecurringTransaction( RecurringTransaction(
title = "Yearly transaction", title = "Yearly transaction",
amount = 123, amount = 123,
frequency = Frequency.Yearly(1, MonthDay.of(2, 29), Time(9, 0, 0, 0)), frequency = Frequency.Yearly(1, MonthDay.of(2, 29), Time(9, 0, 0)),
expense = true, expense = true,
start = start, start = start,
createdBy = "tester", createdBy = "tester",