beatrix: remove unused warnings
@@ -22,7 +22,6 @@ import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
-import org.checkerframework.checker.nullness.qual.Nullable;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.joda.time.Period;
@@ -55,12 +54,10 @@ import com.google.common.collect.Iterables;
import static org.killbill.billing.ErrorCode.INVOICE_NOTHING_TO_DO;
import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertNotNull;
public class TestWithInvoiceOptimization extends TestIntegrationBase {
-
@Override
protected KillbillConfigSource getConfigSource(final Map<String, String> extraProperties) {
final Map<String, String> allExtraProperties = new HashMap<String, String>(extraProperties);
@@ -69,7 +66,6 @@ public class TestWithInvoiceOptimization extends TestIntegrationBase {
return getConfigSource(null, allExtraProperties);
}
-
@Test(groups = "slow")
public void testRecurringInAdvance() throws Exception {
@@ -122,7 +118,6 @@ public class TestWithInvoiceOptimization extends TestIntegrationBase {
new ExpectedInvoiceItemCheck(new LocalDate(2020, 3, 1), new LocalDate(2020, 4, 1), InvoiceItemType.REPAIR_ADJ, new BigDecimal("-29.95")),
new ExpectedInvoiceItemCheck(new LocalDate(2020, 3, 1), new LocalDate(2020, 3, 1), InvoiceItemType.CBA_ADJ, new BigDecimal("20.00")));
-
DryRunArguments dryRun = new TestDryRunArguments(DryRunType.TARGET_DATE);
// Issue a first dry-run on 2020-03-02
@@ -135,7 +130,6 @@ public class TestWithInvoiceOptimization extends TestIntegrationBase {
assertEquals(e.getCode(), INVOICE_NOTHING_TO_DO.getCode());
}
-
// Issue a series of dry-run starting on 2020-04-01
DateTime nextDate = clock.getUTCNow().plusMonths(1);
for (int i = 0; i < 5; i++) {
@@ -143,7 +137,7 @@ public class TestWithInvoiceOptimization extends TestIntegrationBase {
// Filter to eliminate CBA
int actualRecurring = Iterables.size(Iterables.filter(invoice.getInvoiceItems(), new Predicate<InvoiceItem>() {
@Override
- public boolean apply(@Nullable final InvoiceItem invoiceItem) {
+ public boolean apply(final InvoiceItem invoiceItem) {
return invoiceItem.getInvoiceItemType() == InvoiceItemType.RECURRING;
}
}));
@@ -154,7 +148,6 @@ public class TestWithInvoiceOptimization extends TestIntegrationBase {
}
-
// Used to demonstrate what happens when maxInvoiceLimit = 0 and we do billing IN_ADVANCE
@Test(groups = "slow")
public void testRecurringInAdvance2() throws Exception {
@@ -175,7 +168,6 @@ public class TestWithInvoiceOptimization extends TestIntegrationBase {
invoiceChecker.checkInvoice(account.getId(), 1, callContext,
new ExpectedInvoiceItemCheck(new LocalDate(2020, 1, 1), new LocalDate(2020, 2, 1), InvoiceItemType.RECURRING, new BigDecimal("29.95")));
-
final Entitlement entitlement = entitlementApi.getEntitlementForId(entitlementId, callContext);
final PlanPhaseSpecifier spec2 = new PlanPhaseSpecifier("pistol-monthly-notrial");
