@@ -446,15 +446,15 @@ void setAutodetectModeToOutOfRangeNegativeValue() {
446
446
assertThatIllegalArgumentException ()
447
447
.isThrownBy (() -> exporter .setAutodetectMode (-1 ))
448
448
.withMessage ("Only values of autodetect constants allowed" );
449
- assertThat (exporter .getAutodetectMode () ).isNull ();
449
+ assertThat (exporter .autodetectMode ).isNull ();
450
450
}
451
451
452
452
@ Test
453
453
void setAutodetectModeToOutOfRangePositiveValue () {
454
454
assertThatIllegalArgumentException ()
455
455
.isThrownBy (() -> exporter .setAutodetectMode (5 ))
456
456
.withMessage ("Only values of autodetect constants allowed" );
457
- assertThat (exporter .getAutodetectMode () ).isNull ();
457
+ assertThat (exporter .autodetectMode ).isNull ();
458
458
}
459
459
460
460
/**
@@ -471,39 +471,39 @@ void setAutodetectModeToAllSupportedValues() {
471
471
@ Test
472
472
void setAutodetectModeToSupportedValue () {
473
473
exporter .setAutodetectMode (MBeanExporter .AUTODETECT_ASSEMBLER );
474
- assertThat (exporter .getAutodetectMode () ).isEqualTo (MBeanExporter .AUTODETECT_ASSEMBLER );
474
+ assertThat (exporter .autodetectMode ).isEqualTo (MBeanExporter .AUTODETECT_ASSEMBLER );
475
475
}
476
476
477
477
@ Test
478
478
void setAutodetectModeNameToNull () {
479
479
assertThatIllegalArgumentException ()
480
480
.isThrownBy (() -> exporter .setAutodetectModeName (null ))
481
481
.withMessage ("'constantName' must not be null or blank" );
482
- assertThat (exporter .getAutodetectMode () ).isNull ();
482
+ assertThat (exporter .autodetectMode ).isNull ();
483
483
}
484
484
485
485
@ Test
486
486
void setAutodetectModeNameToAnEmptyString () {
487
487
assertThatIllegalArgumentException ()
488
488
.isThrownBy (() -> exporter .setAutodetectModeName ("" ))
489
489
.withMessage ("'constantName' must not be null or blank" );
490
- assertThat (exporter .getAutodetectMode () ).isNull ();
490
+ assertThat (exporter .autodetectMode ).isNull ();
491
491
}
492
492
493
493
@ Test
494
494
void setAutodetectModeNameToWhitespace () {
495
495
assertThatIllegalArgumentException ()
496
496
.isThrownBy (() -> exporter .setAutodetectModeName (" \t " ))
497
497
.withMessage ("'constantName' must not be null or blank" );
498
- assertThat (exporter .getAutodetectMode () ).isNull ();
498
+ assertThat (exporter .autodetectMode ).isNull ();
499
499
}
500
500
501
501
@ Test
502
502
void setAutodetectModeNameToBogusValue () {
503
503
assertThatIllegalArgumentException ()
504
504
.isThrownBy (() -> exporter .setAutodetectModeName ("Bogus" ))
505
505
.withMessage ("Only autodetect constants allowed" );
506
- assertThat (exporter .getAutodetectMode () ).isNull ();
506
+ assertThat (exporter .autodetectMode ).isNull ();
507
507
}
508
508
509
509
/**
@@ -520,7 +520,7 @@ void setAutodetectModeNameToAllSupportedValues() {
520
520
@ Test
521
521
void setAutodetectModeNameToSupportedValue () {
522
522
exporter .setAutodetectModeName ("AUTODETECT_ASSEMBLER" );
523
- assertThat (exporter .getAutodetectMode () ).isEqualTo (MBeanExporter .AUTODETECT_ASSEMBLER );
523
+ assertThat (exporter .autodetectMode ).isEqualTo (MBeanExporter .AUTODETECT_ASSEMBLER );
524
524
}
525
525
526
526
@ Test
0 commit comments