Skip to content

Commit 82285cf

Browse files
committed
Merge branch 'spring-data-2.1.X' of https://github.com/ryonday/spring-data-dynamodb into Issue_218
2 parents 6647bc8 + e1a857b commit 82285cf

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@
2323
<author email="[email protected]">derjust</author>
2424
</properties>
2525
<body>
26-
<<<<<<< HEAD
27-
<release version="5.0.4" date="2018-11-27" description="Maintenance &amp; security release">
28-
=======
2926
<release version="5.1.0" date="" description="Spring Boot 2.1 and Spring Data Lovelace-SR1 support">
3027
<action dev="boostschicken" type="add" date="2018-10-28">
3128
Updated all code to work with Spring Boot 2.1 and Lovelace-SR1
3229
</action>
3330
<action dev="boostschicken" type="add" date="2018-10-28">
3431
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
3534
</action>
3635
</release>
37-
<release version="5.0.4" date="" description="Maintenance &amp; security release">
38-
>>>>>>> 77d9206cb28add3923d8f414ea4762ee4bc95ac2
36+
<release version="5.0.4" date="2018-11-27" description="Maintenance &amp; security release">
3937
<action dev="enriquezrene" issue="199" type="fix" date="2018-10-11">
4038
Fix README.md examples
4139
</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)