File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public Instant deriveExpirationDate() {
174174 if (this .defaultExpiryDate != null ) {
175175 return this .defaultExpiryDate ;
176176 }
177- return Instant .now ().plus (this .defaultExpiryDays , ChronoUnit .DAYS ))
177+ return Instant .now ().plus (this .defaultExpiryDays , ChronoUnit .DAYS );
178178 }
179179
180180 public void setApplicationUsages (Set <ApplicationUsage > applicationUsages ) {
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ void createByInstitutionAdmin() throws Exception {
7777 assertNotNull (result .get ("id" ));
7878 Role roleFromDB = roleRepository .findById (Long .valueOf ((Integer ) result .get ("id" ))).get ();
7979 assertEquals (ORGANISATION_GUID , roleFromDB .getOrganizationGUID ());
80- assertEquals (roleRequest .getDefaultExpiryDate (), roleFromDB .getDefaultExpiryDate ());
80+ assertEquals (roleRequest .getDefaultExpiryDate ().truncatedTo (ChronoUnit .DAYS ),
81+ roleFromDB .getDefaultExpiryDate ().truncatedTo (ChronoUnit .DAYS ));
8182 }
8283
8384 @ Test
You can’t perform that action at this time.
0 commit comments