@@ -1291,10 +1291,6 @@ private void validateGetMessage(JetStreamManagement jsm, TestingStreamContainer
12911291 assertMessageInfo (tsc , 1 , 2 , jsm .getNextMessage (tsc .stream , -1 , tsc .subject (1 )), beforeCreated );
12921292 assertMessageInfo (tsc , 0 , 1 , jsm .getNextMessage (tsc .stream , 0 , tsc .subject (0 )), beforeCreated );
12931293 assertMessageInfo (tsc , 1 , 2 , jsm .getNextMessage (tsc .stream , 0 , tsc .subject (1 )), beforeCreated );
1294- assertMessageInfo (tsc , 0 , 1 , jsm .getFirstMessage (tsc .stream , tsc .subject (0 )), beforeCreated );
1295- assertMessageInfo (tsc , 1 , 2 , jsm .getFirstMessage (tsc .stream , tsc .subject (1 )), beforeCreated );
1296- assertMessageInfo (tsc , 0 , 1 , jsm .getFirstMessage (tsc .stream , beforeCreated ), beforeCreated );
1297- assertMessageInfo (tsc , 1 , 2 , jsm .getFirstMessage (tsc .stream , beforeCreated , tsc .subject (1 )), beforeCreated );
12981294
12991295 assertMessageInfo (tsc , 0 , 1 , jsm .getNextMessage (tsc .stream , 1 , tsc .subject (0 )), beforeCreated );
13001296 assertMessageInfo (tsc , 1 , 2 , jsm .getNextMessage (tsc .stream , 1 , tsc .subject (1 )), beforeCreated );
@@ -1307,10 +1303,8 @@ private void validateGetMessage(JetStreamManagement jsm, TestingStreamContainer
13071303
13081304 assertStatus (10003 , assertThrows (JetStreamApiException .class , () -> jsm .getMessage (tsc .stream , -1 )));
13091305 assertStatus (10003 , assertThrows (JetStreamApiException .class , () -> jsm .getMessage (tsc .stream , 0 )));
1310- assertStatus (10003 , assertThrows (JetStreamApiException .class , () -> jsm .getFirstMessage (tsc .stream , DEFAULT_TIME )));
13111306 assertStatus (10037 , assertThrows (JetStreamApiException .class , () -> jsm .getMessage (tsc .stream , 9 )));
13121307 assertStatus (10037 , assertThrows (JetStreamApiException .class , () -> jsm .getLastMessage (tsc .stream , "not-a-subject" )));
1313- assertStatus (10037 , assertThrows (JetStreamApiException .class , () -> jsm .getFirstMessage (tsc .stream , "not-a-subject" )));
13141308 assertStatus (10037 , assertThrows (JetStreamApiException .class , () -> jsm .getNextMessage (tsc .stream , 9 , tsc .subject (0 ))));
13151309 assertStatus (10037 , assertThrows (JetStreamApiException .class , () -> jsm .getNextMessage (tsc .stream , 1 , "not-a-subject" )));
13161310 }
0 commit comments