Skip to content

Commit 4041216

Browse files
authored
remove references to Thundra, add pointer to Testcontainers module in README (#106)
1 parent c73b738 commit 4041216

File tree

9 files changed

+3
-59
lines changed

9 files changed

+3
-59
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[![CI](https://github.com/localstack/localstack-java-utils/actions/workflows/build.yml/badge.svg)](https://github.com/localstack/localstack-java-utils/actions/workflows/build.yml)
22
[![Maven Central](https://img.shields.io/maven-central/v/cloud.localstack/localstack-utils)](https://mvnrepository.com/artifact/cloud.localstack/localstack-utils)
3-
[![Thundra Foresight](https://thundra-assets-prod.s3.us-west-2.amazonaws.com/images/badges/thundra-foresight-badge-enabled.svg)](https://foresight.thundra.live/testRuns/71e743a6-b8d5-4d55-aa89-5299f3c3d08e)
3+
4+
⚠️ Note: This repo is not currently very actively maintained. Please consider using the [Testcontainers LocalStack Java module](https://java.testcontainers.org/modules/localstack/) as a potential alternative.
5+
46
# LocalStack Java Utils
57

68
Java utilities and JUnit integration for [LocalStack](https://github.com/localstack/localstack).

pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -317,19 +317,6 @@
317317
<version>2.12.1</version>
318318
<scope>test</scope>
319319
</dependency>
320-
<dependency>
321-
<groupId>io.thundra</groupId>
322-
<artifactId>jexter-junit4-core</artifactId>
323-
<version>${jexter.version}</version>
324-
<scope>test</scope>
325-
</dependency>
326-
<dependency>
327-
<groupId>io.thundra</groupId>
328-
<artifactId>jexter-junit5-core</artifactId>
329-
<version>${jexter.version}</version>
330-
<scope>test</scope>
331-
</dependency>
332-
333320
</dependencies>
334321

335322
<profiles>

src/test/java/cloud/localstack/awssdkv1/KinesisConsumerTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.amazonaws.services.kinesis.model.GetShardIteratorRequest;
1111
import com.amazonaws.services.kinesis.model.PutRecordRequest;
1212
import com.amazonaws.services.kinesis.model.ResourceInUseException;
13-
import io.thundra.jexter.junit4.core.sysprop.SystemPropertySandboxRule;
1413
import org.junit.Assert;
1514
import org.junit.Rule;
1615
import org.junit.Test;
@@ -26,10 +25,6 @@
2625
@LocalstackDockerProperties(ignoreDockerRunErrors=true)
2726
public class KinesisConsumerTest {
2827

29-
// Revert system properties to the back after the test
30-
@Rule
31-
public SystemPropertySandboxRule systemPropertySandboxRule = new SystemPropertySandboxRule();
32-
3328
@Test
3429
public void testGetRecordCBOR() throws Exception {
3530
System.setProperty(SDKGlobalConfiguration.AWS_CBOR_DISABLE_SYSTEM_PROPERTY, "false");

src/test/java/cloud/localstack/awssdkv1/docker/BasicDockerFunctionalityTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
import com.amazonaws.services.sqs.model.CreateQueueRequest;
4141
import com.amazonaws.services.sqs.model.ListQueuesResult;
4242
import com.amazonaws.util.IOUtils;
43-
import io.thundra.jexter.junit4.core.envvar.EnvironmentVariableSandboxRule;
44-
import io.thundra.jexter.junit4.core.sysprop.SystemPropertySandboxRule;
45-
import io.thundra.jexter.junit5.core.envvar.EnvironmentVariableSandbox;
4643
import org.assertj.core.api.Assertions;
4744
import org.junit.Assert;
4845
import org.junit.ClassRule;
@@ -63,14 +60,8 @@
6360
@RunWith(LocalstackTestRunner.class)
6461
@ExtendWith(LocalstackDockerExtension.class)
6562
@LocalstackDockerProperties(randomizePorts = true)
66-
// [JUnit5] Revert environment variables to the back after the test suite (class)
67-
@EnvironmentVariableSandbox
6863
public class BasicDockerFunctionalityTest {
6964

70-
// [JUnit4] Revert environment variables to the back after the test suite (class)
71-
@ClassRule
72-
public static EnvironmentVariableSandboxRule environmentVariableSandboxRule = new EnvironmentVariableSandboxRule();
73-
7465
@org.junit.BeforeClass
7566
@org.junit.jupiter.api.BeforeAll
7667
public static void beforeAll() {

src/test/java/cloud/localstack/awssdkv1/docker/DockerOnlySQSFunctionalityTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import com.amazonaws.services.sqs.AmazonSQS;
1313
import com.amazonaws.services.sqs.model.CreateQueueRequest;
1414
import com.amazonaws.services.sqs.model.ListQueuesResult;
15-
import io.thundra.jexter.junit4.core.envvar.EnvironmentVariableSandboxRule;
16-
import io.thundra.jexter.junit5.core.envvar.EnvironmentVariableSandbox;
1715
import org.assertj.core.api.Assertions;
1816
import org.junit.ClassRule;
1917
import org.junit.jupiter.api.extension.ExtendWith;
@@ -30,14 +28,8 @@
3028
@RunWith(LocalstackTestRunner.class)
3129
@ExtendWith(LocalstackDockerExtension.class)
3230
@LocalstackDockerProperties(randomizePorts = true, services = "sqs")
33-
// [JUnit5] Revert environment variables to the back after the test suite (class)
34-
@EnvironmentVariableSandbox
3531
public class DockerOnlySQSFunctionalityTest {
3632

37-
// [JUnit4] Revert environment variables to the back after the test suite (class)
38-
@ClassRule
39-
public static EnvironmentVariableSandboxRule environmentVariableSandboxRule = new EnvironmentVariableSandboxRule();
40-
4133
@org.junit.BeforeClass
4234
@org.junit.jupiter.api.BeforeAll
4335
public static void beforeAll() {

src/test/java/cloud/localstack/awssdkv2/BasicFeaturesSDKV2Test.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import cloud.localstack.sample.LambdaHandler;
88
import cloud.localstack.utils.LocalTestUtil;
99
import com.amazonaws.services.s3.model.ObjectListing;
10-
import io.thundra.jexter.junit4.core.sysprop.SystemPropertySandboxRule;
1110
import lombok.SneakyThrows;
1211
import lombok.val;
1312
import org.assertj.core.api.Assertions;
@@ -109,10 +108,6 @@
109108
@LocalstackDockerProperties(ignoreDockerRunErrors=true)
110109
public class BasicFeaturesSDKV2Test {
111110

112-
// Revert system properties to the back after the test suite (class)
113-
@ClassRule
114-
public static SystemPropertySandboxRule systemPropertySandboxRule = new SystemPropertySandboxRule();
115-
116111
@BeforeClass
117112
public static void beforeAll() {
118113
System.setProperty(SdkSystemSetting.CBOR_ENABLED.property(), "false");

src/test/java/cloud/localstack/awssdkv2/KinesisSchedulerTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import cloud.localstack.awssdkv2.consumer.DeliveryStatusRecordProcessorFactory;
44
import cloud.localstack.awssdkv2.consumer.EventProcessor;
55
import cloud.localstack.docker.annotation.LocalstackDockerProperties;
6-
import io.thundra.jexter.junit4.core.sysprop.SystemPropertySandboxRule;
76
import org.junit.Assert;
87
import org.junit.Before;
98
import org.junit.Rule;
@@ -34,10 +33,6 @@ public class KinesisSchedulerTest extends PowerMockLocalStack {
3433
String testMessage = "hello, world";
3534
Integer consumerCreationTime = 15; //35 for real AWS
3635

37-
// Revert system properties to the back after the test
38-
@Rule
39-
public SystemPropertySandboxRule systemPropertySandboxRule = new SystemPropertySandboxRule();
40-
4136
@Before
4237
public void mockServicesForScheduler() {
4338
System.setProperty(SdkSystemSetting.CBOR_ENABLED.property(), "false");

src/test/java/cloud/localstack/awssdkv2/KinesisV2ConsumerTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import cloud.localstack.LocalstackTestRunner;
44
import cloud.localstack.docker.annotation.LocalstackDockerProperties;
5-
import io.thundra.jexter.junit4.core.sysprop.SystemPropertySandboxRule;
65
import org.junit.Assert;
76
import org.junit.Rule;
87
import org.junit.Test;
@@ -27,10 +26,6 @@
2726
@LocalstackDockerProperties(ignoreDockerRunErrors = true)
2827
public class KinesisV2ConsumerTest {
2928

30-
// Revert system properties to the back after the test suite (class)
31-
@Rule
32-
public SystemPropertySandboxRule systemPropertySandboxRule = new SystemPropertySandboxRule();
33-
3429
@Test
3530
public void testGetRecordCBOR() throws Exception {
3631
System.setProperty(SdkSystemSetting.CBOR_ENABLED.property(), "true");

src/test/java/cloud/localstack/deprecated/BasicFunctionalityTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
import com.amazonaws.services.sqs.model.ReceiveMessageResult;
3333
import com.amazonaws.services.sqs.model.SendMessageRequest;
3434
import com.amazonaws.services.sqs.model.SendMessageResult;
35-
import io.thundra.jexter.junit4.core.envvar.EnvironmentVariableSandboxRule;
36-
import io.thundra.jexter.junit5.core.envvar.EnvironmentVariableSandbox;
3735
import org.assertj.core.api.Assertions;
3836
import org.junit.Assert;
3937
import org.junit.ClassRule;
@@ -59,8 +57,6 @@
5957
@ExtendWith(LocalstackExtension.class)
6058
@org.junit.Ignore
6159
@org.junit.jupiter.api.Disabled
62-
// [JUnit5] Revert environment variables to the back after the test suite (class)
63-
@EnvironmentVariableSandbox
6460
public class BasicFunctionalityTest {
6561

6662
static {
@@ -70,10 +66,6 @@ public class BasicFunctionalityTest {
7066
}
7167
}
7268

73-
// [JUnit4] Revert environment variables to the back after the test suite (class)
74-
@ClassRule
75-
public static EnvironmentVariableSandboxRule environmentVariableSandboxRule = new EnvironmentVariableSandboxRule();
76-
7769
@org.junit.BeforeClass
7870
@org.junit.jupiter.api.BeforeAll
7971
public static void beforeAll() {

0 commit comments

Comments
 (0)