1919
2020import static com .rabbitmq .client .amqp .Management .ExchangeType .FANOUT ;
2121import static com .rabbitmq .client .amqp .impl .TestConditions .BrokerVersion .RABBITMQ_4_1_0 ;
22+ import static com .rabbitmq .client .amqp .impl .TestConditions .BrokerVersion .RABBITMQ_4_2_0 ;
2223import static com .rabbitmq .client .amqp .impl .TestUtils .*;
2324import static java .nio .charset .StandardCharsets .*;
2425import static java .util .concurrent .TimeUnit .SECONDS ;
@@ -426,6 +427,7 @@ void dynamicReceiver() throws Exception {
426427 }
427428
428429 @ Test
430+ @ BrokerVersionAtLeast (RABBITMQ_4_2_0 )
429431 void refuseLinkSenderToMissingExchangeShouldReturnNotFound () throws Exception {
430432 try (Client client = client ()) {
431433 org .apache .qpid .protonj2 .client .Connection c = connection (client );
@@ -440,6 +442,7 @@ void refuseLinkSenderToMissingExchangeShouldReturnNotFound() throws Exception {
440442 }
441443
442444 @ Test
445+ @ BrokerVersionAtLeast (RABBITMQ_4_2_0 )
443446 void refuseLinkSenderToInvalidAddressShouldReturnInvalidField () throws Exception {
444447 try (Client client = client ()) {
445448 org .apache .qpid .protonj2 .client .Connection c = connection (client );
@@ -453,6 +456,7 @@ void refuseLinkSenderToInvalidAddressShouldReturnInvalidField() throws Exception
453456 }
454457
455458 @ Test
459+ @ BrokerVersionAtLeast (RABBITMQ_4_2_0 )
456460 void refuseLinkReceiverToMissingQueueShouldReturnNotFound () throws Exception {
457461 try (Client client = client ()) {
458462 org .apache .qpid .protonj2 .client .Connection c = connection (client );
@@ -470,6 +474,7 @@ void refuseLinkReceiverToMissingQueueShouldReturnNotFound() throws Exception {
470474 }
471475
472476 @ Test
477+ @ BrokerVersionAtLeast (RABBITMQ_4_2_0 )
473478 void refuseLinkReceiverToInvalidAddressShouldReturnInvalidField () throws Exception {
474479 try (Client client = client ()) {
475480 org .apache .qpid .protonj2 .client .Connection c = connection (client );
0 commit comments