@@ -150,7 +150,7 @@ public void test_configuration_must_be_updated_with_surefire_config()
150150
151151 // check argLine
152152 String argLine = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_VM_ARGUMENTS , "" );
153- assertTrue ( argLine . contains ( "--argLineItem=surefireArgLineValue" ));
153+ assertEquals ( "--argLineItem=surefireArgLineValue --undefinedArgLineItem=" , argLine . trim ( ));
154154
155155 // check environmentVariables
156156 Map <String , String > envVars = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_ENVIRONMENT_VARIABLES ,
@@ -209,7 +209,7 @@ public void test_configuration_must_be_updated_with_failsafe_config()
209209
210210 // check argLine
211211 String argLine = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_VM_ARGUMENTS , "" );
212- assertTrue ( argLine . contains ( "--argLineItem=failsafeArgLineValue" ));
212+ assertEquals ( "--argLineItem=failsafeArgLineValue --undefinedArgLineItem=" , argLine . trim ( ));
213213
214214 // check environmentVariables
215215 Map <String , String > envVars = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_ENVIRONMENT_VARIABLES ,
@@ -261,7 +261,7 @@ public void test_configuration_must_be_updated_with_surefire_config_when_created
261261
262262 // check argLine
263263 String argLine = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_VM_ARGUMENTS , "" );
264- assertTrue ( argLine . contains ( "--argLineItem=surefireArgLineValue" ));
264+ assertEquals ( "--argLineItem=surefireArgLineValue --undefinedArgLineItem=" , argLine . trim ( ));
265265
266266 // check environmentVariables
267267 Map <String , String > envVars = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_ENVIRONMENT_VARIABLES ,
@@ -310,7 +310,7 @@ public void test_configuration_must_be_updated_with_failSafe_config_when_created
310310
311311 // check argLine
312312 String argLine = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_VM_ARGUMENTS , "" );
313- assertTrue ( argLine . contains ( "--argLineItem=failsafeArgLineValue" ));
313+ assertEquals ( "--argLineItem=failsafeArgLineValue --undefinedArgLineItem=" , argLine . trim ( ));
314314
315315 // check environmentVariables
316316 Map <String , String > envVars = config .getAttribute (UnitTestSupport .LAUNCH_CONFIG_ENVIRONMENT_VARIABLES ,
0 commit comments