Skip to content

Commit

Permalink
rename algoRelationType to algorithmRelationType (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
salmma authored Jun 22, 2021
1 parent dd199ab commit e5e4548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class AlgorithmRelationDto implements Identifyable {
message = "Target Algorithm id must not be null!")
private UUID targetAlgorithmId;

@JsonProperty("algoRelationType")
@JsonProperty("algorithmRelationType")
@RequiresID(groups = {ValidationGroups.Update.class, ValidationGroups.Create.class},
message = "AlgorithmRelationType must have a type with an ID!")
@NotNull(groups = {ValidationGroups.Update.class, ValidationGroups.Create.class},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void createAlgorithmRelation_returnCreated() {
).andExpect(jsonPath("$.id").isEmpty())
.andExpect(jsonPath("$.sourceAlgorithmId").value(sourceAlgorithm.getId().toString()))
.andExpect(jsonPath("$.targetAlgorithmId").value(targetAlgorithm.getId().toString()))
.andExpect(jsonPath("$.algoRelationType.id").value(type.getId().toString()))
.andExpect(jsonPath("$.algorithmRelationType.id").value(type.getId().toString()))
.andExpect(status().isCreated());
}

Expand Down Expand Up @@ -263,7 +263,7 @@ void updateAlgorithmRelation_returnOk() {
).andExpect(jsonPath("$.id").value(algorithmRelation.getId().toString()))
.andExpect(jsonPath("$.sourceAlgorithmId").value(sourceAlgorithm.getId().toString()))
.andExpect(jsonPath("$.targetAlgorithmId").value(targetAlgorithm.getId().toString()))
.andExpect(jsonPath("$.algoRelationType.id").value(type.getId().toString()))
.andExpect(jsonPath("$.algorithmRelationType.id").value(type.getId().toString()))
.andExpect(status().isOk());
}

Expand Down Expand Up @@ -365,7 +365,7 @@ void getAlgorithmRelation_returnOk() {
.andExpect(jsonPath("$.id").value(algorithmRelation.getId().toString()))
.andExpect(jsonPath("$.sourceAlgorithmId").value(sourceAlgorithm.getId().toString()))
.andExpect(jsonPath("$.targetAlgorithmId").value(targetAlgorithm.getId().toString()))
.andExpect(jsonPath("$.algoRelationType.id").value(type.getId().toString()))
.andExpect(jsonPath("$.algorithmRelationType.id").value(type.getId().toString()))
.andExpect(status().isOk());
}

Expand Down

0 comments on commit e5e4548

Please sign in to comment.