@@ -116,7 +116,7 @@ public void testWithNoParameters() throws Throwable {
116116 String [] args = new String [] { jobPathKey , jobPath , jobNameKey , jobName };
117117 CommandLineJobRunner .main (args );
118118 assertEquals (0 , StubSystemExiter .status );
119- assertEquals (new JobParameters () , StubJobLauncher .jobParameters );
119+ assertEquals (2 , StubJobLauncher .jobParameters . getParameters (). size () );
120120 }
121121
122122 @ Test
@@ -158,7 +158,7 @@ public int read() {
158158 });
159159 CommandLineJobRunner .main (new String [] { jobPathKey , jobPath , jobNameKey , jobName });
160160 assertEquals (0 , StubSystemExiter .status );
161- assertEquals (0 , StubJobLauncher .jobParameters .getParameters ().size ());
161+ assertEquals (2 , StubJobLauncher .jobParameters .getParameters ().size ());
162162 }
163163
164164 @ Ignore
@@ -357,7 +357,7 @@ public void testNext() throws Throwable {
357357 CommandLineJobRunner .main (args );
358358 assertEquals (0 , StubSystemExiter .status );
359359 jobParameters = new JobParametersBuilder ().addString ("foo" , "spam" ).addString ("bar" , "foo" ).toJobParameters ();
360- assertEquals (jobParameters , StubJobLauncher .jobParameters );
360+ assertEquals (jobParameters . getString ( "bar" ) , StubJobLauncher .jobParameters . getString ( "bar" ) );
361361 }
362362
363363 @ Test
@@ -367,7 +367,7 @@ public void testNextFirstInSequence() throws Throwable {
367367 CommandLineJobRunner .main (args );
368368 assertEquals (0 , StubSystemExiter .status );
369369 JobParameters jobParameters = new JobParametersBuilder ().addString ("foo" , "spam" ).toJobParameters ();
370- assertEquals (jobParameters , StubJobLauncher .jobParameters );
370+ assertEquals (jobParameters . getString ( "foo" ) , StubJobLauncher .jobParameters . getString ( "foo" ) );
371371 }
372372
373373 @ Ignore
0 commit comments