Skip to content

Commit 7b26430

Browse files
author
Michael Whitaker
authored
Add project imports to examples
The main confusion was around the 'legacy.LocalstackDocker' usage and the static import of 'LocalstackService.S3' I think this syntax clears up that confusion (and shows what the library is actually providing) though I understand that this is a matter of taste.
1 parent 43d70e9 commit 7b26430

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,13 @@ This option will fit you if you wish to get Spring Context and the Localstack co
125125
The class `SpringLocalstackDockerRunner` is a JUnit runner with the purpose of testing integrated with Localstack and Spring. With this runner, we can compound with `@SpringLocalstackProperties` for more extensible configuration. Check it out:
126126

127127
```java
128+
...
129+
import xyz.fabiano.spring.localstack.LocalstackService;
130+
import xyz.fabiano.spring.localstack.annotation.SpringLocalstackProperties;
131+
import xyz.fabiano.spring.localstack.junit.SpringLocalstackDockerRunner;
132+
128133
@RunWith(SpringLocalstackDockerRunner.class)
129-
@SpringLocalstackProperties(services = { S3 })
134+
@SpringLocalstackProperties(services = { LocalstackService.S3 })
130135
@ContextConfiguration(classes = SpringTestContext.class)
131136
public class SpringWithLocalstackExampleTest {
132137
@Autowired
@@ -146,6 +151,10 @@ public class SpringWithLocalstackExampleTest {
146151
And the context configuration:
147152

148153
```java
154+
...
155+
import xyz.fabiano.spring.localstack.legacy.LocalstackDocker;
156+
import xyz.fabiano.spring.localstack.support.AmazonDockerClientsHolder;
157+
149158
@Configuration
150159
public class SpringTestContext {
151160

0 commit comments

Comments
 (0)