|
|
|
@ -6,6 +6,7 @@ import com.fr.design.write.submit.CheckServiceDialog;
|
|
|
|
|
import com.fr.workspace.connect.WorkspaceConnectionInfo; |
|
|
|
|
import com.fr.workspace.engine.channel.http.FunctionalHttpRequest; |
|
|
|
|
import org.easymock.EasyMock; |
|
|
|
|
import org.junit.Assert; |
|
|
|
|
import org.junit.Test; |
|
|
|
|
import org.junit.runner.RunWith; |
|
|
|
|
import org.powermock.api.easymock.PowerMock; |
|
|
|
@ -23,6 +24,7 @@ public class EnvChangeEntranceTest {
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void showServiceDialog() throws Exception { |
|
|
|
|
try { |
|
|
|
|
EnvChangeEntrance entrance = EnvChangeEntrance.getInstance(); |
|
|
|
|
DesignerWorkspaceInfo selectedEnv = EasyMock.mock(DesignerWorkspaceInfo.class); |
|
|
|
|
WorkspaceConnectionInfo connectionInfo = EasyMock.mock(WorkspaceConnectionInfo.class); |
|
|
|
@ -47,6 +49,10 @@ public class EnvChangeEntranceTest {
|
|
|
|
|
PowerMock.replayAll(); |
|
|
|
|
|
|
|
|
|
entrance.showServiceDialog(selectedEnv); |
|
|
|
|
Assert.assertTrue(true); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
Assert.assertTrue(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |