/*******************************************************************************
 * Copyright 2015, Medidata Solutions, Inc., All Rights Reserved. The program
 * and the accompanying materials are made under the terms of MIT license.
 * Author: Nan Li, nli@mdsol.com
 ******************************************************************************/
package com.mdsol.skyfire.util;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class JavaSupporterIT {

    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testRemoveSemiColon() {
        String string = "vm.getCredit() == 0;;;;";
        assertEquals("vm.getCredit() == 0", JavaSupporter.removeSemiColon(string));
    }

    @Test
    public void testReturnPakcages() {
        assertEquals("edu/gmu/", JavaSupporter.returnPackages("package    edu.gmu;"));
    }

    @Test
    public void testCleanUpPackageName() {
        assertEquals("edu.gmu", JavaSupporter.cleanUpPackageName("package    edu.gmu;;"));
    }
}

@@ -441,220 +441,45 @@
 nit.
-After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class JavaSupporterIT %7B%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A    %7D
+Test;%0A%0Apublic class JavaSupporterIT %7B
 %0A%0A  

Fix critical issues reported by SonarQube in JavaSupporterIT