Skip to content

Commit 0316ed0

Browse files
authored
Merge pull request #480 from lacinoire/add-test
Add test for Action.toString
2 parents 0eeb252 + a475a90 commit 0316ed0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/org/zendesk/client/v2/model/ActionTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,11 @@ public void testActionWithValues() throws Exception {
4242
assertEquals("huu", action.getValue()[0]);
4343
assertEquals("haa", action.getValue()[1]);
4444
}
45+
46+
@Test
47+
public void testToString() {
48+
String json = "{ \"field\": 21337631753, \"value\": \"huuhaa\" }";
49+
Action action = parseJson(json.getBytes());
50+
assertEquals("Action{field=\'21337631753\', value=[huuhaa]}", action.toString());
51+
}
4552
}

0 commit comments

Comments
 (0)