1
0
Fork 0

increated test coverage for TransitionTest.java

master
Joseph McCarthy 2015-12-27 15:48:26 +00:00
parent 5b21862eaa
commit 779ef0a12a
1 changed files with 8 additions and 0 deletions

View File

@ -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" +