Added @RunWith to integration tests for LeaseIntegrationTests (#543)
This commit is contained in:
parent
c8f82836b1
commit
9a15971bde
2 changed files with 6 additions and 1 deletions
|
|
@ -26,13 +26,15 @@ import java.util.concurrent.Executors;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.mockito.runners.MockitoJUnitRunner;
|
||||||
import software.amazon.kinesis.leases.Lease;
|
import software.amazon.kinesis.leases.Lease;
|
||||||
import software.amazon.kinesis.leases.LeaseIntegrationTest;
|
import software.amazon.kinesis.leases.LeaseIntegrationTest;
|
||||||
import software.amazon.kinesis.leases.LeaseRenewer;
|
import software.amazon.kinesis.leases.LeaseRenewer;
|
||||||
import software.amazon.kinesis.leases.exceptions.LeasingException;
|
import software.amazon.kinesis.leases.exceptions.LeasingException;
|
||||||
import software.amazon.kinesis.metrics.NullMetricsFactory;
|
import software.amazon.kinesis.metrics.NullMetricsFactory;
|
||||||
import software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumber;
|
import software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumber;
|
||||||
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class DynamoDBLeaseRenewerIntegrationTest extends LeaseIntegrationTest {
|
public class DynamoDBLeaseRenewerIntegrationTest extends LeaseIntegrationTest {
|
||||||
private final String TEST_METRIC = "TestOperation";
|
private final String TEST_METRIC = "TestOperation";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.mockito.runners.MockitoJUnitRunner;
|
||||||
import software.amazon.kinesis.leases.Lease;
|
import software.amazon.kinesis.leases.Lease;
|
||||||
import software.amazon.kinesis.leases.LeaseIntegrationTest;
|
import software.amazon.kinesis.leases.LeaseIntegrationTest;
|
||||||
import software.amazon.kinesis.leases.exceptions.LeasingException;
|
import software.amazon.kinesis.leases.exceptions.LeasingException;
|
||||||
|
|
@ -31,6 +33,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class DynamoDBLeaseTakerIntegrationTest extends LeaseIntegrationTest {
|
public class DynamoDBLeaseTakerIntegrationTest extends LeaseIntegrationTest {
|
||||||
|
|
||||||
private static final long LEASE_DURATION_MILLIS = 1000L;
|
private static final long LEASE_DURATION_MILLIS = 1000L;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue