From 779ef0a12a0abca1958c893a882241afaa1d862f Mon Sep 17 00:00:00 2001 From: Joseph McCarthy Date: Sun, 27 Dec 2015 15:48:26 +0000 Subject: [PATCH] increated test coverage for TransitionTest.java --- src/test/java/net/rcarz/jiraclient/TransitionTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/net/rcarz/jiraclient/TransitionTest.java b/src/test/java/net/rcarz/jiraclient/TransitionTest.java index 040e207..4f28b1e 100644 --- a/src/test/java/net/rcarz/jiraclient/TransitionTest.java +++ b/src/test/java/net/rcarz/jiraclient/TransitionTest.java @@ -45,6 +45,14 @@ public class TransitionTest { assertEquals("Done", transition.toString()); } + @Test + public void testGetFields() throws Exception { + Transition transition = new Transition(new RestClient(null, new URI("/123/asd")), getTestJson()); + final Map fields = transition.getFields(); + Assert.assertEquals(2,fields.size()); + + } + public static JSONObject getTestJson() { JSONObject jsonObject = (JSONObject) JSONSerializer.toJSON( "{\n" +