Feature dmf integration tests (#459)
* Add rabbit mq integration test * Change DMF Api for ActionUpdateStatus JSON * Add test for invalid target messages. * Insert tests for AmqpAuthenticationMessageHandler Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com> * - Added vhost creation to tests - Added missing test - Created beans for dmf client and vhost - refactoring Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com> * Completed missing tests Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com> * Create vhost after every test class Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Add readme.md Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Add check if rabbit mq management is available Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * refactoring test Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com> * Create integration test for amqpAuthentication Add test description Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Fix sonar issue Add rabbitmq username and password Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Merge master Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Fix some code smells Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Make some member immutable Change executor Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
@@ -24,21 +24,24 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
@JsonInclude(Include.NON_NULL)
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionUpdateStatus {
|
||||
@JsonProperty(required = true)
|
||||
private Long actionId;
|
||||
|
||||
private final Long actionId;
|
||||
private final ActionStatus actionStatus;
|
||||
|
||||
@JsonProperty
|
||||
private Long softwareModuleId;
|
||||
@JsonProperty(required = true)
|
||||
private ActionStatus actionStatus;
|
||||
|
||||
@JsonProperty
|
||||
private List<String> message;
|
||||
|
||||
public Long getActionId() {
|
||||
return actionId;
|
||||
public ActionUpdateStatus(@JsonProperty(value = "actionId", required = true) Long actionId,
|
||||
@JsonProperty(value = "actionStatus", required = true) ActionStatus actionStatus) {
|
||||
this.actionId = actionId;
|
||||
this.actionStatus = actionStatus;
|
||||
}
|
||||
|
||||
public void setActionId(final Long actionId) {
|
||||
this.actionId = actionId;
|
||||
public Long getActionId() {
|
||||
return actionId;
|
||||
}
|
||||
|
||||
public Long getSoftwareModuleId() {
|
||||
@@ -53,10 +56,6 @@ public class ActionUpdateStatus {
|
||||
return actionStatus;
|
||||
}
|
||||
|
||||
public void setActionStatus(final ActionStatus actionStatus) {
|
||||
this.actionStatus = actionStatus;
|
||||
}
|
||||
|
||||
public List<String> getMessage() {
|
||||
if (message == null) {
|
||||
return Collections.emptyList();
|
||||
@@ -78,12 +77,12 @@ public class ActionUpdateStatus {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.message == null) {
|
||||
this.message = new ArrayList<>(messages);
|
||||
if (message == null) {
|
||||
message = new ArrayList<>(messages);
|
||||
return true;
|
||||
}
|
||||
|
||||
return this.message.addAll(messages);
|
||||
return message.addAll(messages);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user