Skip to content

Commit 9cbdd2c

Browse files
committed
Added contributor details of vitolimandibhrata
1 parent 643ce3c commit 9cbdd2c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@
516516
<name>Michael Wyraz</name>
517517
<url>https://github.com/micw</url>
518518
</contributor>
519+
<contributor>
520+
<name>Vito Limandibhrata</name>
521+
<url>https://github.com/vitolimandibhrata</url>
522+
</contributor>
519523
</contributors>
520524

521525

src/changes/changes.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
</properties>
88
<body>
99
<release version="5.0.2" date="" description="Maintenance release">
10-
10+
<action dev="vitolimandibhrata" issue="40" type="add" date="2017-01-07">
11+
Added support for Auditing
12+
</action>
1113
</release>
1214
<release version="5.0.1" date="2018-01-06" description="Maintenance release">
1315
<action dev="derjust" issue="68" type="fix" date="2017-12-01" >

src/test/java/org/socialsignin/spring/data/dynamodb/config/AuditingViaJavaConfigRepositoriesIT.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@
3535
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
3636
import org.springframework.util.Assert;
3737

38+
import java.util.Optional;
39+
3840
import static org.hamcrest.CoreMatchers.is;
3941
import static org.hamcrest.CoreMatchers.notNullValue;
40-
import static org.junit.Assert.assertNotNull;
4142
import static org.junit.Assert.assertThat;
43+
import static org.junit.Assert.assertTrue;
4244
import static org.mockito.Mockito.doReturn;
4345
import static org.mockito.Mockito.mock;
4446

@@ -108,8 +110,8 @@ public void setup() {
108110
this.auditor = auditableUserRepository.save(new AuditableUser("auditor"));
109111
assertThat(this.auditor, is(notNullValue()));
110112

111-
AuditableUser auditorUser = auditableUserRepository.findOne(this.auditor.getId());
112-
assertNotNull(auditorUser);
113+
Optional<AuditableUser> auditorUser = auditableUserRepository.findById(this.auditor.getId());
114+
assertTrue(auditorUser.isPresent());
113115

114116
}
115117

0 commit comments

Comments
 (0)