package hudson.plugins.git.util;

import hudson.plugins.git.AbstractGitTestCase;

import hudson.plugins.git.util.BuildData;

/**
 * @author Mark Waite
 */
public class BuildDataTest extends AbstractGitTestCase {
    /**
     * Verifies that the display name is "Git Build Data".
     */
    public void testDisplayNameWithoutSCM() throws Exception {
        final BuildData data = new BuildData();
        assertEquals(data.getDisplayName(), "Git Build Data");
    }

    /**
     * Verifies that the display name is "Git Build Data:scmName".
     */
    public void testDisplayNameWithSCM() throws Exception {
        final String scmName = "testSCM";
        final BuildData data = new BuildData(scmName);
        assertEquals("Git Build Data:" + scmName, data.getDisplayName());
    }
}

@@ -38,253 +38,128 @@
 ort 
-hudson.plugins.git.AbstractGitTestCase;%0A%0Aimport hudson.plugins.git.util.BuildData;%0A%0A/**%0A * @author Mark Waite%0A */%0Apublic class BuildDataTest extends AbstractGitTestCase %7B%0A    /**%0A     * Verifies that the display name is %22Git Build Data%22.%0A     */
+static org.junit.Assert.*;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Mark Waite%0A */%0Apublic class BuildDataTest %7B%0A%0A    @Test
 %0A   
@@ -344,86 +344,13 @@
     
-/**%0A     * Verifies that the display name is %22Git Build Data:scmName%22.%0A     */
+@Test
 %0A   

Improve BuildDataTest speed and switch from JUnit 3 to JUnit 4