File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
test/java/org/socialsignin/spring/data/dynamodb/config Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" >
Original file line number Diff line number Diff line change 3535import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
3636import org .springframework .util .Assert ;
3737
38+ import java .util .Optional ;
39+
3840import static org .hamcrest .CoreMatchers .is ;
3941import static org .hamcrest .CoreMatchers .notNullValue ;
40- import static org .junit .Assert .assertNotNull ;
4142import static org .junit .Assert .assertThat ;
43+ import static org .junit .Assert .assertTrue ;
4244import static org .mockito .Mockito .doReturn ;
4345import 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
You can’t perform that action at this time.
0 commit comments