41
41
import java .util .function .UnaryOperator ;
42
42
import net .jqwik .api .Arbitraries ;
43
43
import net .jqwik .api .arbitraries .ArrayArbitrary ;
44
- import net .jqwik .api .arbitraries .IntegerArbitrary ;
45
44
import net .jqwik .api .arbitraries .StringArbitrary ;
46
45
import org .apache .qpid .protonj2 .types .Symbol ;
47
46
import org .junit .jupiter .api .*;
@@ -53,15 +52,13 @@ public class SourceFiltersTest {
53
52
String name ;
54
53
ArrayArbitrary <Byte , byte []> binaryArbitrary ;
55
54
StringArbitrary stringArbitrary ;
56
- IntegerArbitrary integerArbitrary ;
57
55
58
56
@ BeforeEach
59
57
void init (TestInfo info ) {
60
58
this .name = TestUtils .name (info );
61
59
connection .management ().queue (this .name ).type (STREAM ).declare ();
62
60
binaryArbitrary = Arbitraries .bytes ().array (byte [].class ).ofMinSize (10 ).ofMaxSize (20 );
63
61
stringArbitrary = Arbitraries .strings ().ofMinLength (10 ).ofMaxLength (20 );
64
- integerArbitrary = Arbitraries .integers ();
65
62
}
66
63
67
64
@ AfterEach
@@ -415,7 +412,7 @@ void filterExpressionsPropertiesAndApplicationProperties() {
415
412
int messageCount = 10 ;
416
413
String subject = stringArbitrary .sample ();
417
414
String appKey = stringArbitrary .sample ();
418
- int appValue = integerArbitrary . sample ();
415
+ int appValue = new Random (). nextInt ();
419
416
byte [] body1 = binaryArbitrary .sample ();
420
417
byte [] body2 = binaryArbitrary .sample ();
421
418
byte [] body3 = binaryArbitrary .sample ();
0 commit comments