File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
hiero-spring/src/test/java/com/openelements/hiero/spring/test Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ void testNullParams() {
2626 Assertions .assertThrows (NullPointerException .class , () -> fileClient .readFile ((FileId ) null ));
2727 Assertions .assertThrows (NullPointerException .class , () -> fileClient .deleteFile ((String ) null ));
2828 Assertions .assertThrows (NullPointerException .class , () -> fileClient .deleteFile ((FileId ) null ));
29+ Assertions .assertThrows (NullPointerException .class , () -> fileClient .getExpirationTime (null ));
2930 }
3031
3132 @ Test
@@ -200,6 +201,14 @@ void testGetExpirationTime() throws Exception {
200201 Assertions .assertTrue (expirationTime .isBefore (definedExpirationTime .plusSeconds (1 )));
201202 }
202203
204+ @ Test
205+ void testGetExpirationTimeForFailures () {
206+ //given
207+ final FileId invalidFileId = FileId .fromString ("1.2.3" );
208+ //then
209+ Assertions .assertThrows (HieroException .class , () -> fileClient .getExpirationTime (invalidFileId ));
210+ }
211+
203212 @ Test
204213 @ Disabled ("Always fails with AUTORENEW_DURATION_NOT_IN_RANGE. Needs to be investigated further." )
205214 void testUpdateExpirationTime () throws Exception {
You can’t perform that action at this time.
0 commit comments