Skip to content

Commit

Permalink
Fix failures after merge
Browse files Browse the repository at this point in the history
Part of issue #697

Signed-off-by: David Schwilk <david.schwilk@bosch.io>
  • Loading branch information
DerSchwilk committed Nov 4, 2020
1 parent f0d5882 commit fe2d7eb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void buildAnswerWithFeatureDesiredPropertiesNotAccessibleErrorResponseOnl
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.NOT_FOUND)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertiesNotAccessibleException.class);
}
Expand All @@ -106,7 +106,7 @@ public void buildAnswerWithFeatureDesiredPropertiesNotModifiableErrorResponseOnl
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.FORBIDDEN)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertiesNotModifiableException.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void buildAnswerWithFeatureDesiredPropertyNotAccessibleErrorResponseOnly(
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.NOT_FOUND)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertyNotAccessibleException.class);
}
Expand All @@ -108,7 +108,7 @@ public void buildAnswerWithFeatureDesiredPropertyNotModifiableErrorResponseOnly(
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.FORBIDDEN)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertyNotModifiableException.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void buildAnswerWithFeatureDesiredPropertiesNotAccessibleErrorResponseOnl
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.NOT_FOUND)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertiesNotAccessibleException.class);
}
Expand All @@ -120,7 +120,7 @@ public void buildAnswerWithFeatureDesiredPropertiesNotModifiableErrorResponseOnl
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.FORBIDDEN)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertiesNotModifiableException.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void buildAnswerWithFeatureDesiredPropertyNotAccessibleErrorResponseOnly(
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.NOT_FOUND)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertyNotAccessibleException.class);
}
Expand All @@ -122,7 +122,7 @@ public void buildAnswerWithFeatureDesiredPropertyNotModifiableErrorResponseOnly(
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.FORBIDDEN)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertyNotModifiableException.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void buildAnswerWithRetrieveFeatureDesiredPropertiesResponseOnly() {
.hasNoEvent()
.hasThingQueryCommandResponse()
.hasType(RetrieveFeatureDesiredPropertiesResponse.TYPE)
.hasDittoHeaders(DittoHeaders.empty())
.hasDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.hasResourcePath(JsonPointer.of("features/" + TestConstants.Feature.FLUX_CAPACITOR_ID + "/desiredProperties"));
}

Expand All @@ -103,7 +103,7 @@ public void buildAnswerWithFeatureDesiredPropertiesNotAccessibleErrorResponseOnl
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.NOT_FOUND)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertiesNotAccessibleException.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void buildAnswerWithRetrieveFeatureDesiredPropertyResponseOnly() {
.hasNoEvent()
.hasThingQueryCommandResponse()
.hasType(RetrieveFeatureDesiredPropertyResponse.TYPE)
.hasDittoHeaders(DittoHeaders.empty())
.hasDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.hasResourcePath(JsonPointer.of(
"features/" + TestConstants.Feature.FLUX_CAPACITOR_ID + "/desiredProperties/target_year_1"));
}
Expand All @@ -106,7 +106,7 @@ public void buildAnswerWithFeatureDesiredPropertyNotAccessibleErrorResponseOnly(
.hasNoEvent()
.hasThingErrorResponse()
.withType(ThingErrorResponse.TYPE)
.withDittoHeaders(DittoHeaders.empty())
.withDittoHeaders(DittoHeaders.newBuilder().responseRequired(false).build())
.withStatus(HttpStatusCode.NOT_FOUND)
.withDittoRuntimeExceptionOfType(FeatureDesiredPropertyNotAccessibleException.class);
}
Expand Down

0 comments on commit fe2d7eb

Please sign in to comment.