Skip to content

Commit d15984d

Browse files
authored
Merge pull request #1 from derjust/master
Pulling latest
2 parents 77d9206 + 03c017d commit d15984d

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Download the JAR though [Maven Central](http://mvnrepository.com/artifact/com.gi
3737
<dependency>
3838
<groupId>com.github.derjust</groupId>
3939
<artifactId>spring-data-dynamodb</artifactId>
40-
<version>5.0.3</version>
40+
<version>5.0.4</version>
4141
</dependency>
4242
```
4343

@@ -165,10 +165,10 @@ API changes will follow SEMVER and loosly the Spring Framework releases.
165165
| ------------------------------- | ------------------------------ | ------------------------------ | ------------------------- |
166166
| 1.0.x | | >= 3.1 && < 4.2 | |
167167
| 4.2.x | >= 1.3.0 && < 1.4.0 | >= 4.2 && < 4.3 | Gosling-SR1 |
168-
| 4.3.x | >= 1.4.0 < 2.0 | >= 4.3 && < 5.0 | Gosling-SR1 |
169-
| 4.4.x | >= 1.4.0 < 2.0 | >= 4.3 && < 5.0 | Hopper-SR2 |
170-
| 4.5.x | >= 1.4.0 < 2.0 | >= 4.3 && < 5.0 | Ingalls |
171-
| 5.0.x | >= 2.0 | >= 5.0 | Kay-SR1 |
168+
| 4.3.x | >= 1.4.0 && < 2.0 | >= 4.3 && < 5.0 | Gosling-SR1 |
169+
| 4.4.x | >= 1.4.0 && < 2.0 | >= 4.3 && < 5.0 | Hopper-SR2 |
170+
| 4.5.x | >= 1.4.0 && < 2.0 | >= 4.3 && < 5.0 | Ingalls |
171+
| 5.0.x | >= 2.0 && < 2.1 | >= 5.0 && < 5.1 | Kay-SR1 |
172172
| 5.1.x | >= 2.1 | >= 5.1 | Lovelace-SR1 |
173173
`spring-data-dynamodb` depends directly on `spring-data` as also `spring-context`, `spring-data` and `spring-tx`.
174174

pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
<spring-data.version>2.1.2.RELEASE</spring-data.version>
4242

4343
<hibernate-validator.version>6.0.9.Final</hibernate-validator.version>
44-
<aws-java-sdk.version>1.11.452</aws-java-sdk.version>
44+
<aws-java-sdk.version>1.11.443</aws-java-sdk.version>
4545
<junit.version>4.12</junit.version>
46-
<mockito.version>2.21.0</mockito.version>
46+
<mockito.version>2.23.0</mockito.version>
4747
<cdi.version>1.2</cdi.version>
4848
<slf4j-test.version>1.2.0</slf4j-test.version>
4949
<sqlite4java.version>1.0.392</sqlite4java.version>
@@ -798,6 +798,10 @@
798798
<contributor>
799799
<name>John Dorman</name>
800800
<url>https://github.com/boostchicken</url>
801+
</contributor>
802+
<contributor>
803+
<name>Ryon Day</name>
804+
<url>https://github.com/ryonday</url>
801805
</contributor>
802806
</contributors>
803807

src/changes/changes.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
</action>
3030
<action dev="boostschicken" type="add" date="2018-10-28">
3131
Updated Mockito to improve test coverage
32+
<action dev="ryonday" issue="218" type="fix" date="2018-11-09">
33+
Update to Spring-Data 2.1.2.RELEASE and Spring Framework 5.1.2.RELEASE
3234
</action>
3335
</release>
34-
<release version="5.0.4" date="" description="Maintenance &amp; security release">
36+
<release version="5.0.4" date="2018-11-27" description="Maintenance &amp; security release">
3537
<action dev="enriquezrene" issue="199" type="fix" date="2018-10-11">
3638
Fix README.md examples
3739
</action>

src/test/java/org/socialsignin/spring/data/dynamodb/repository/query/PartTreeDynamoDBQueryUnitTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@ private <T, ID extends Serializable> void setupCommonMocksForThisRepositoryMetho
139139
Mockito.when(mockEntityMetadata.isRangeKeyAware()).thenReturn(true);
140140
}
141141

142+
try {
143+
Field unwrappedReturnTypeField = mockDynamoDBQueryMethod.getClass() // org.socialsignin.spring.data.dynamodb.repository.query.DynamoDBQueryMethod
144+
.getSuperclass() // org.springframework.data.repository.query.QueryMethod
145+
.getDeclaredField("unwrappedReturnType");
146+
unwrappedReturnTypeField.setAccessible(true); // It's final therefore unlocking the field
147+
unwrappedReturnTypeField.set(mockDynamoDBQueryMethod, clazz);
148+
} catch (Exception e) {
149+
// There is little we can and want do if it fails - Aborting the whole test is
150+
// fine
151+
throw new RuntimeException(e);
152+
}
153+
142154
Mockito.when(mockDynamoDBQueryMethod.getEntityType()).thenReturn(clazz);
143155
Mockito.when(mockDynamoDBQueryMethod.getName()).thenReturn(repositoryMethodName);
144156
Mockito.when(mockDynamoDBQueryMethod.getParameters()).thenReturn(mockParameters);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mock-maker-inline
1+
mock-maker-inline

0 commit comments

Comments
 (0)