Skip to content

Commit

Permalink
TSI-3039 Add missing properties to TargetGroup (TSI-3010)
Browse files Browse the repository at this point in the history
Alexey Zarakovskiy committed Feb 9, 2018
1 parent d8f6733 commit 4dafbec
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -8,6 +8,10 @@
@Data
public class TargetGroup {

private String id;

private String title;

private String description;

private List<Condition> conditions;
Original file line number Diff line number Diff line change
@@ -71,6 +71,8 @@ public void shouldDeserializeConditions() throws IOException {
assertTrue(targetGroupCondition.isNegate());
TargetGroup targetGroup = targetGroupCondition.getTargetGroup();
assertEquals("TargetGroup", targetGroup.getDescription());
assertEquals("Id", targetGroup.getId());
assertEquals("Title", targetGroup.getTitle());

trackingKeyCondition = (TrackingKeyCondition) targetGroup.getConditions().get(0);
assertEquals("Test Keyword 1", trackingKeyCondition.getTrackingKeyTitle());
Original file line number Diff line number Diff line change
@@ -27,6 +27,8 @@
{
"$type": "TargetGroupCondition",
"TargetGroup": {
"Id": "Id",
"Title": "Title",
"Description": "TargetGroup",
"Conditions": [
{

0 comments on commit 4dafbec

Please sign in to comment.