@@ -773,16 +773,22 @@ void deleteSessionOnUiIsEnabledByDefault() {
773773
774774 @ Test
775775 void deleteSessionOnUiCanBeEnabledExplicitly () {
776- Config config = new MapConfig (
777- singletonMap ("node" , ImmutableMap .of ("detect-drivers" , "false" , "delete-session-on-ui" , "true" )));
776+ Config config =
777+ new MapConfig (
778+ singletonMap (
779+ "node" ,
780+ ImmutableMap .of ("detect-drivers" , "false" , "delete-session-on-ui" , "true" )));
778781 NodeOptions nodeOptions = new NodeOptions (config );
779782 assertThat (nodeOptions .isSessionDeletedOnUi ()).isTrue ();
780783 }
781784
782785 @ Test
783786 void deleteSessionOnUiCanBeDisabled () {
784- Config config = new MapConfig (
785- singletonMap ("node" , ImmutableMap .of ("detect-drivers" , "false" , "delete-session-on-ui" , "false" )));
787+ Config config =
788+ new MapConfig (
789+ singletonMap (
790+ "node" ,
791+ ImmutableMap .of ("detect-drivers" , "false" , "delete-session-on-ui" , "false" )));
786792 NodeOptions nodeOptions = new NodeOptions (config );
787793 assertThat (nodeOptions .isSessionDeletedOnUi ()).isFalse ();
788794 }
@@ -793,8 +799,10 @@ void deleteSessionOnUiCapabilityIsAddedWhenEnabled() {
793799 new ChromeDriverInfo ().isPresent () || new GeckoDriverInfo ().isPresent (),
794800 "A driver needs to be available" );
795801
796- Config config = new MapConfig (
797- singletonMap ("node" , ImmutableMap .of ("detect-drivers" , "true" , "delete-session-on-ui" , "true" )));
802+ Config config =
803+ new MapConfig (
804+ singletonMap (
805+ "node" , ImmutableMap .of ("detect-drivers" , "true" , "delete-session-on-ui" , "true" )));
798806
799807 List <Capabilities > reported = new ArrayList <>();
800808 new NodeOptions (config )
@@ -807,9 +815,11 @@ void deleteSessionOnUiCapabilityIsAddedWhenEnabled() {
807815 assertThat (reported )
808816 .filteredOn (capabilities -> capabilities .getCapability ("se:deleteSessionOnUi" ) != null )
809817 .hasSize (reported .size ());
810-
818+
811819 assertThat (reported )
812- .allMatch (capabilities -> Boolean .TRUE .equals (capabilities .getCapability ("se:deleteSessionOnUi" )));
820+ .allMatch (
821+ capabilities ->
822+ Boolean .TRUE .equals (capabilities .getCapability ("se:deleteSessionOnUi" )));
813823 }
814824
815825 @ Test
@@ -818,8 +828,11 @@ void deleteSessionOnUiCapabilityIsNotAddedWhenDisabled() {
818828 new ChromeDriverInfo ().isPresent () || new GeckoDriverInfo ().isPresent (),
819829 "A driver needs to be available" );
820830
821- Config config = new MapConfig (
822- singletonMap ("node" , ImmutableMap .of ("detect-drivers" , "true" , "delete-session-on-ui" , "false" )));
831+ Config config =
832+ new MapConfig (
833+ singletonMap (
834+ "node" ,
835+ ImmutableMap .of ("detect-drivers" , "true" , "delete-session-on-ui" , "false" )));
823836
824837 List <Capabilities > reported = new ArrayList <>();
825838 new NodeOptions (config )
@@ -853,9 +866,11 @@ void deleteSessionOnUiCapabilityIsAddedByDefault() {
853866 assertThat (reported )
854867 .filteredOn (capabilities -> capabilities .getCapability ("se:deleteSessionOnUi" ) != null )
855868 .hasSize (reported .size ());
856-
869+
857870 assertThat (reported )
858- .allMatch (capabilities -> Boolean .TRUE .equals (capabilities .getCapability ("se:deleteSessionOnUi" )));
871+ .allMatch (
872+ capabilities ->
873+ Boolean .TRUE .equals (capabilities .getCapability ("se:deleteSessionOnUi" )));
859874 }
860875
861876 private Condition <? super List <? extends Capabilities >> supporting (String name ) {
0 commit comments