@@ -30,7 +30,8 @@ public void shouldLogRequest() throws IOException {
30
30
final HttpLogFormatter unit = new CurlHttpLogFormatter ();
31
31
final String curl = unit .format (new SimplePrecorrelation <>(correlationId , request ));
32
32
33
- assertThat (curl , is ("curl -v -X GET 'http://localhost/test?limit=1' -H 'Accept: application/json' -H 'Content-Type: text/plain' --data-binary 'Hello, world!'" ));
33
+ assertThat (curl , is ("c9408eaa-677d-11e5-9457-10ddb1ee7671 " +
34
+ "curl -v -X GET 'http://localhost/test?limit=1' -H 'Accept: application/json' -H 'Content-Type: text/plain' --data-binary 'Hello, world!'" ));
34
35
}
35
36
36
37
@ Test
@@ -43,7 +44,8 @@ public void shouldLogRequestWithoutBody() throws IOException {
43
44
final HttpLogFormatter unit = new CurlHttpLogFormatter ();
44
45
final String curl = unit .format (new SimplePrecorrelation <>(correlationId , request ));
45
46
46
- assertThat (curl , is ("curl -v -X GET 'http://localhost/test' -H 'Accept: application/json'" ));
47
+ assertThat (curl , is ("0eae9f6c-6824-11e5-8b0a-10ddb1ee7671 " +
48
+ "curl -v -X GET 'http://localhost/test' -H 'Accept: application/json'" ));
47
49
}
48
50
49
51
@ Test
@@ -62,7 +64,8 @@ public void shouldEscape() throws IOException {
62
64
final HttpLogFormatter unit = new CurlHttpLogFormatter ();
63
65
final String curl = unit .format (new SimplePrecorrelation <>(correlationId , request ));
64
66
65
- assertThat (curl , is ("curl -v -X GET 'http://localhost/test?char=\\ '' -H 'Foo\\ 'Bar: Baz' --data-binary '{\" message\" :\" Hello, \\ 'world\\ '!\" }'" ));
67
+ assertThat (curl , is ("c9408eaa-677d-11e5-9457-10ddb1ee7671 " +
68
+ "curl -v -X GET 'http://localhost/test?char=\\ '' -H 'Foo\\ 'Bar: Baz' --data-binary '{\" message\" :\" Hello, \\ 'world\\ '!\" }'" ));
66
69
}
67
70
68
71
@ Test
0 commit comments