@@ -0,0 +1,1429 @@
+package jenkins.plugins.jsonHelper;%0A%0Aimport hudson.model.Hudson;%0Aimport jenkins.model.Jenkins;%0Aimport net.sf.json.JSONObject;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport static org.hamcrest.CoreMatchers.not;%0Aimport static org.hamcrest.CoreMatchers.nullValue;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.mockito.Matchers.eq;%0Aimport static org.mockito.Mockito.*;%0A%0A/**%0A * @author Joost van der Griendt%0A */%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(%7BFromJsonStep.DescriptorImpl.class, Jenkins.class%7D)%0Apublic class FromJsonStepTest %7B%0A%0A    /** Class under test. */%0A    private FromJsonStep fixture;%0A%0A    private JSONObject json;%0A    private Hudson jenkins;%0A%0A%0A    @Test%0A    public void doesntCrashWhenInputIsEmpty()%7B%0A        fixture = new FromJsonStep(null);%0A    %7D%0A%0A    @Test%0A    public void returnObjectFromSimpleJson()%7B%0A        String jsonString = %22%7B %5C%22foo%5C%22 : %5C%22bar%5C%22 %7D%22;%0A        fixture = new FromJsonStep(jsonString);%0A        Object object = fixture.fromJson();%0A        assertNotNull(object);%0A        assertTrue(object instanceof groovy.json.internal.LazyMap);%0A    %7D%0A%7D%0A

Add a first unit test