You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -142,34 +144,8 @@ public static class DynamoDBConfig {
142
144
}
143
145
```
144
146
145
-
And finally write a test client [UserRepositoryIT](https://github.com/derjust/spring-data-dynamodb-examples/blob/master/src/test/java/com/github/derjust/spring_data_dynamodb_examples/simple/UserRepositoryIT.java):
147
+
And finally write a test client [UserRepositoryIT](https://github.com/derjust/spring-data-dynamodb-examples/blob/master/src/test/java/com/github/derjust/spring_data_dynamodb_examples/simple/UserRepositoryIT.java) or start calling it from your existing Spring code.
List<User> result = repository.findByLastName("Gosling");
165
-
Assert.assertThat(result.size(), is(1));
166
-
Assert.assertThat(result, hasItem(gosling));
167
-
log.info("Found in table: {}", result.get(0));
168
-
}
169
-
170
-
// setup code
171
-
}
172
-
```
173
149
174
150
The full source code is available at [spring-data-dynamodb-examples' simple example](https://github.com/derjust/spring-data-dynamodb-examples/blob/master/README-simple.md)
0 commit comments