Skip to content

Commit f12d313

Browse files
committed
[HOTFIX] fix tests
1 parent 1a4445d commit f12d313

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

servicebuilder-core-addons/src/test/java/no/obos/util/servicebuilder/addon/JerseyClientAddonErrorHandlingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void error_handling_in_stub() {
6565
)
6666
.incidentReferenceId(incidentReferenceId)
6767
.status(500)
68-
.header("Content-Length", "250")
68+
.header("Content-Length", "258")
6969
.header("Content-Type", "application/problem+json")
7070
.build()
7171
)

servicebuilder-core-addons/src/test/java/no/obos/util/servicebuilder/addon/MetricsAddonTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void ping() {
2222
.request()
2323
.get()
2424
);
25-
assertThat(call.readEntity(String.class)).isEqualTo("pong\n");
25+
assertThat(call.readEntity(String.class)).isEqualToIgnoringNewLines("pong\n");
2626
}
2727

2828
@Test

servicebuilder-core-test/src/test/java/no/obos/util/servicebuilder/TestServiceRunnerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void can_call_basic() {
3131

3232
)
3333
);
34-
assertThat(payload).isEqualTo("{\n"
34+
assertThat(payload).isEqualToIgnoringNewLines("{\n"
3535
+ " \"string\" : \"string\",\n"
3636
+ " \"date\" : \"" + LocalDate.now().toString() + "\"\n"
3737
+ "}");
@@ -50,7 +50,7 @@ public void can_call_target() {
5050

5151
)
5252
);
53-
assertThat(payload).isEqualTo("{\n"
53+
assertThat(payload).isEqualToIgnoringNewLines("{\n"
5454
+ " \"string\" : \"string\",\n"
5555
+ " \"date\" : \"" + LocalDate.now().toString() + "\"\n"
5656
+ "}");

servicebuilder-interfaces/src/main/java/no/obos/util/servicebuilder/exception/ExternalResourceException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import lombok.Getter;
88
import lombok.Singular;
99
import lombok.ToString;
10+
import lombok.Value;
1011
import no.obos.util.servicebuilder.model.ProblemResponse;
1112

1213
import javax.ws.rs.WebApplicationException;

0 commit comments

Comments
 (0)