package jetbrains.buildserver.sonarplugin.sqrunner.manager;

import jetbrains.buildserver.sonarplugin.sqrunner.manager.factories.SQSInfoFactory;
import jetbrains.buildserver.sonarplugin.sqrunner.manager.projectsettings.SQSProjectSettings;
import org.assertj.core.api.BDDAssertions;
import org.testng.annotations.Test;

/**
 * Created by linfar on 03.10.16.
 */
@Test
public class SQSProjectSettingsTest {
    public void test() {
        final SQSInfoHolder holder = new SQSProjectSettings();
        BDDAssertions.then(holder.getInfo("serverId")).isNull();

        holder.setInfo("serverId", SQSInfoFactory.createServerInfo("serverId"));
        BDDAssertions.then(holder.getInfo("serverId")).isNotNull();
        BDDAssertions.then(holder.getInfo("serverId2")).isNull();

        holder.setInfo("serverId2", SQSInfoFactory.createServerInfo("serverId2"));
        BDDAssertions.then(holder.getInfo("serverId")).isNotNull();
        BDDAssertions.then(holder.getInfo("serverId2")).isNotNull();

        holder.remove("serverId");
        BDDAssertions.then(holder.getInfo("serverId")).isNull();
        BDDAssertions.then(holder.getInfo("serverId2")).isNull();
    }
}
@@ -1024,16 +1024,52 @@
 erId%22);%0A
+        holder.remove(%22serverId2%22);%0A
         

Fix test