@@ -71,7 +71,7 @@ void setUp() throws Exception {
7171 when (serverHandler .getThing ()).thenReturn (bridge );
7272
7373 // All categories enabled by default so existing tests are unaffected
74- when (serverHandler .getBindingConfig ()).thenReturn (allCategoriesEnabled ());
74+ when (serverHandler .getBridgeConfig ()).thenReturn (allCategoriesEnabled ());
7575
7676 // Return empty collection by default so existing tests are unaffected
7777 when (thingRegistry .getAll ()).thenReturn (Collections .emptyList ());
@@ -394,7 +394,7 @@ void testDiscoverClientsDeduplicatesPrefixDeviceIds() {
394394
395395 @ Test
396396 void testWebClientSkippedWhenDiscoverWebClientsIsFalse () {
397- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (false , true , true , true , true , true , true ));
397+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (false , true , true , true , true , true , true ));
398398 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("web-1" , "Jellyfin Web" )));
399399
400400 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -406,7 +406,7 @@ void testWebClientSkippedWhenDiscoverWebClientsIsFalse() {
406406
407407 @ Test
408408 void testWebClientDiscoveredWhenDiscoverWebClientsIsTrue () {
409- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , true , true , true , true ));
409+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , true , true , true , true ));
410410 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("web-1" , "Jellyfin Web" )));
411411
412412 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -418,7 +418,7 @@ void testWebClientDiscoveredWhenDiscoverWebClientsIsTrue() {
418418
419419 @ Test
420420 void testAndroidClientSkippedWhenDiscoverAndroidClientsIsFalse () {
421- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , false , true , true , true , true , true ));
421+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , false , true , true , true , true , true ));
422422 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("android-1" , "Jellyfin for Android" )));
423423
424424 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -431,7 +431,7 @@ void testAndroidClientSkippedWhenDiscoverAndroidClientsIsFalse() {
431431 @ Test
432432 void testAndroidTvClientSkippedWhenDiscoverAndroidTvClientsIsFalse () {
433433 // Android TV disabled, plain Android enabled — TV client must be skipped
434- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , false , true , true , true , true ));
434+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , false , true , true , true , true ));
435435 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("atv-1" , "Jellyfin for Android TV" )));
436436
437437 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -444,7 +444,7 @@ void testAndroidTvClientSkippedWhenDiscoverAndroidTvClientsIsFalse() {
444444 @ Test
445445 void testAndroidTvClientNotMatchedByAndroidFilter () {
446446 // Android TV enabled, plain Android disabled — TV client must still be discovered
447- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , false , true , true , true , true , true ));
447+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , false , true , true , true , true , true ));
448448 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("atv-1" , "Jellyfin for Android TV" )));
449449
450450 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -456,7 +456,7 @@ void testAndroidTvClientNotMatchedByAndroidFilter() {
456456
457457 @ Test
458458 void testIosClientSkippedWhenDiscoverIosClientsIsFalse () {
459- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , false , true , true , true ));
459+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , false , true , true , true ));
460460 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("ios-1" , "Jellyfin iOS" )));
461461
462462 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -468,7 +468,7 @@ void testIosClientSkippedWhenDiscoverIosClientsIsFalse() {
468468
469469 @ Test
470470 void testSwiftfinMatchedAsIosCategory () {
471- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , false , true , true , true ));
471+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , false , true , true , true ));
472472 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("swiftfin-1" , "Swiftfin" )));
473473
474474 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -480,7 +480,7 @@ void testSwiftfinMatchedAsIosCategory() {
480480
481481 @ Test
482482 void testInfuseMatchedAsIosCategory () {
483- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , false , true , true , true ));
483+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , false , true , true , true ));
484484 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("infuse-1" , "Infuse" )));
485485
486486 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -492,7 +492,7 @@ void testInfuseMatchedAsIosCategory() {
492492
493493 @ Test
494494 void testKodiClientSkippedWhenDiscoverKodiClientsIsFalse () {
495- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , true , false , true , true ));
495+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , true , false , true , true ));
496496 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("kodi-1" , "JellyCon" )));
497497
498498 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -504,7 +504,7 @@ void testKodiClientSkippedWhenDiscoverKodiClientsIsFalse() {
504504
505505 @ Test
506506 void testRokuClientSkippedWhenDiscoverRokuClientsIsFalse () {
507- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , true , true , false , true ));
507+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , true , true , false , true ));
508508 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("roku-1" , "Jellyfin for Roku" )));
509509
510510 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -516,7 +516,7 @@ void testRokuClientSkippedWhenDiscoverRokuClientsIsFalse() {
516516
517517 @ Test
518518 void testUnknownClientSkippedWhenDiscoverOtherClientsIsFalse () {
519- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , true , true , true , false ));
519+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , true , true , true , false ));
520520 when (serverHandler .getClients ()).thenReturn (Map .of ("s1" , sessionWith ("other-1" , "Some Unknown App" )));
521521
522522 DiscoveryListener listener = mock (DiscoveryListener .class );
@@ -528,7 +528,7 @@ void testUnknownClientSkippedWhenDiscoverOtherClientsIsFalse() {
528528
529529 @ Test
530530 void testNullClientNameFallsIntoOtherCategory () {
531- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (true , true , true , true , true , true , false ));
531+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (true , true , true , true , true , true , false ));
532532 SessionInfoDto session = new SessionInfoDto ();
533533 session .setDeviceId ("null-client-1" );
534534 session .setDeviceName ("Unknown Device" );
@@ -544,7 +544,7 @@ void testNullClientNameFallsIntoOtherCategory() {
544544
545545 @ Test
546546 void testAllFiltersDisabledResultsInNoDiscovery () {
547- when (serverHandler .getBindingConfig ()).thenReturn (buildConfig (false , false , false , false , false , false , false ));
547+ when (serverHandler .getBridgeConfig ()).thenReturn (buildConfig (false , false , false , false , false , false , false ));
548548
549549 Map <String , SessionInfoDto > clients = new HashMap <>();
550550 clients .put ("s1" , sessionWith ("web-1" , "Jellyfin Web" ));
0 commit comments