@@ -130,7 +130,7 @@ public void testItemProcessEventListener() {
130130 "--spring.cloud.task.batch.events.itemProcessEventBindingName=" + bindingName ,
131131 bindingName , 1 );
132132 String value = new String (result .get (0 ).getPayload ());
133- assertThat (value ).isEqualTo ("\" item did not equal result after processing\" " );
133+ assertThat (value ).isEqualTo ("item did not equal result after processing" );
134134
135135 }
136136
@@ -142,9 +142,9 @@ public void testChunkListener() {
142142 "--spring.cloud.task.batch.events.chunkEventBindingName=" + bindingName ,
143143 bindingName , 2 );
144144 String value = new String (result .get (0 ).getPayload ());
145- assertThat (value ).isEqualTo ("\" Before Chunk Processing\" " );
145+ assertThat (value ).isEqualTo ("Before Chunk Processing" );
146146 value = new String (result .get (1 ).getPayload ());
147- assertThat (value ).isEqualTo ("\" After Chunk Processing\" " );
147+ assertThat (value ).isEqualTo ("After Chunk Processing" );
148148 }
149149
150150 @ Test
@@ -155,9 +155,9 @@ public void testWriteListener() {
155155 "--spring.cloud.task.batch.events.itemWriteEventBindingName=" + bindingName ,
156156 bindingName , 2 );
157157 String value = new String (result .get (0 ).getPayload ());
158- assertThat (value ).isEqualTo ("\" 3 items to be written.\" " );
158+ assertThat (value ).isEqualTo ("3 items to be written." );
159159 value = new String (result .get (1 ).getPayload ());
160- assertThat (value ).isEqualTo ("\" 3 items have been written.\" " );
160+ assertThat (value ).isEqualTo ("3 items have been written." );
161161 }
162162
163163 private String [] getCommandLineParams (String sinkChannelParam ) {
@@ -210,14 +210,14 @@ public void testItemReadListener() {
210210 "--spring.cloud.task.batch.events.itemReadEventBindingName=" + bindingName ,
211211 bindingName , 1 );
212212 String exceptionMessage = new String (result .get (0 ).getPayload ());
213- assertThat (exceptionMessage ).isEqualTo ("\" Exception while item was being read\" " );
213+ assertThat (exceptionMessage ).isEqualTo ("Exception while item was being read" );
214214 }
215215
216216 @ Test
217217 public void testSkipEventListener () {
218- final String SKIPPING_READ_MESSAGE = "\" Skipped when reading.\" " ;
218+ final String SKIPPING_READ_MESSAGE = "Skipped when reading." ;
219219
220- final String SKIPPING_WRITE_CONTENT = "\" -1 \" " ;
220+ final String SKIPPING_WRITE_CONTENT = "-1 " ;
221221 final String bindingName = "skip-event-foobar" ;
222222 List <Message <byte []>> result = testListenerSkip (
223223 "--spring.cloud.task.batch.events.skipEventBindingName=" + bindingName ,
0 commit comments