package org.interonet.ldm;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.interonet.ldm.Core.LDMAgent;
import org.interonet.ldm.Core.LDMCore;

public class MainTest
    extends TestCase
{
    public MainTest(String testName)
    {
        super( testName );
    }

    public static Test suite()
    {
        return new TestSuite( MainTest.class );
    }

    public void testApp() {
        LDMCore ldmCore = new LDMCore();
        ldmCore.start();
        LDMAgent ldmAgent = new LDMAgent(ldmCore);
        String s ="test";
        ldmAgent.powerOnVM(2);
        s = ldmAgent.powerOffVM(2);
        assertTrue(s.equals("success"));
    }
}

@@ -120,87 +120,8 @@
 ite;
-%0Aimport org.interonet.ldm.Core.LDMAgent;%0Aimport org.interonet.ldm.Core.LDMCore;
 %0A%0Apu
@@ -364,258 +364,8 @@
 ) %7B%0A
-        LDMCore ldmCore = new LDMCore();%0A        ldmCore.start();%0A        LDMAgent ldmAgent = new LDMAgent(ldmCore);%0A        String s =%22test%22;%0A        ldmAgent.powerOnVM(2);%0A        s = ldmAgent.powerOffVM(2);%0A        assertTrue(s.equals(%22success%22));
 %0A   

change test