package com.ning.billing.entitlement.api.user;
import org.testng.annotations.Test;
import com.ning.billing.entitlement.glue.MockEngineModuleSql;
import com.ning.billing.util.svcapi.entitlement.EntitlementBillingApiException;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Stage;
public class TestUserApiCancelSql extends TestUserApiCancel {
@Override
public Injector getInjector() {
return Guice.createInjector(Stage.DEVELOPMENT, new MockEngineModuleSql());
}
@Test(enabled = false, groups = {"slow, stress"})
public void stressTest() throws Exception {
final int MAX_STRESS_ITERATIONS = 10;
for (int i = 0; i < MAX_STRESS_ITERATIONS; i++) {
cleanupTest();
setupTest();
testCancelSubscriptionIMM();
cleanupTest();
setupTest();
testCancelSubscriptionEOTWithChargeThroughDate();
cleanupTest();
setupTest();
testCancelSubscriptionEOTWithNoChargeThroughDate();
}
}
@Override
@Test(groups = "slow")
public void testCancelSubscriptionIMM() {
super.testCancelSubscriptionIMM();
}
@Override
@Test(groups = "slow")
public void testCancelSubscriptionEOTWithChargeThroughDate() throws EntitlementBillingApiException {
super.testCancelSubscriptionEOTWithChargeThroughDate();
}
@Override
@Test(groups = "slow")
public void testCancelSubscriptionEOTWithNoChargeThroughDate() {
super.testCancelSubscriptionEOTWithNoChargeThroughDate();
}
@Override
@Test(groups = "slow")
public void testUncancel() throws EntitlementBillingApiException {
super.testUncancel();
}
}