4141import java .util .function .UnaryOperator ;
4242import net .jqwik .api .Arbitraries ;
4343import net .jqwik .api .arbitraries .ArrayArbitrary ;
44- import net .jqwik .api .arbitraries .IntegerArbitrary ;
4544import net .jqwik .api .arbitraries .StringArbitrary ;
4645import org .apache .qpid .protonj2 .types .Symbol ;
4746import org .junit .jupiter .api .*;
@@ -53,15 +52,13 @@ public class SourceFiltersTest {
5352 String name ;
5453 ArrayArbitrary <Byte , byte []> binaryArbitrary ;
5554 StringArbitrary stringArbitrary ;
56- IntegerArbitrary integerArbitrary ;
5755
5856 @ BeforeEach
5957 void init (TestInfo info ) {
6058 this .name = TestUtils .name (info );
6159 connection .management ().queue (this .name ).type (STREAM ).declare ();
6260 binaryArbitrary = Arbitraries .bytes ().array (byte [].class ).ofMinSize (10 ).ofMaxSize (20 );
6361 stringArbitrary = Arbitraries .strings ().ofMinLength (10 ).ofMaxLength (20 );
64- integerArbitrary = Arbitraries .integers ();
6562 }
6663
6764 @ AfterEach
@@ -415,7 +412,7 @@ void filterExpressionsPropertiesAndApplicationProperties() {
415412 int messageCount = 10 ;
416413 String subject = stringArbitrary .sample ();
417414 String appKey = stringArbitrary .sample ();
418- int appValue = integerArbitrary . sample ();
415+ int appValue = new Random (). nextInt ();
419416 byte [] body1 = binaryArbitrary .sample ();
420417 byte [] body2 = binaryArbitrary .sample ();
421418 byte [] body3 = binaryArbitrary .sample ();
0 commit comments