package com.intuit.tank.perfManager.workLoads; /* * #%L * VmManager * %% * Copyright (C) 2011 - 2015 Intuit Inc. * %% * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * #L% */ import java.util.concurrent.FutureTask; import org.junit.*; import static org.junit.Assert.*; import com.intuit.tank.perfManager.workLoads.JobManager; import com.intuit.tank.vm.agent.messages.AgentData; import com.intuit.tank.vm.agent.messages.AgentTestStartData; import com.intuit.tank.vm.api.enumerated.VMRegion; import com.intuit.tank.vm.api.enumerated.WatsAgentCommand; /** * The class <code>JobManagerTest</code> contains tests for the class <code>{@link JobManager}</code>. * * @generatedBy CodePro at 9/10/14 10:40 AM */ public class JobManagerTest { /** * Run the JobManager() constructor test. * * @generatedBy CodePro at 9/10/14 10:40 AM */ @Test public void testJobManager_1() throws Exception { JobManager result = new JobManager(); assertNotNull(result); } /** * Run the AgentTestStartData registerAgentForJob(AgentData) method test. * * @throws Exception * * @generatedBy CodePro at 9/10/14 10:40 AM */ @Test public void testRegisterAgentForJob_1() throws Exception { JobManager fixture = new JobManager(); AgentData agent = new AgentData("", "", "", 1, VMRegion.ASIA_1, ""); AgentTestStartData result = fixture.registerAgentForJob(agent); assertEquals(null, result); } /** * Run the AgentTestStartData registerAgentForJob(AgentData) method test. * * @throws Exception * * @generatedBy CodePro at 9/10/14 10:40 AM */ @Test public void testRegisterAgentForJob_2() throws Exception { JobManager fixture = new JobManager(); AgentData agent = new AgentData("", "", "", 1, VMRegion.ASIA_1, ""); AgentTestStartData result = fixture.registerAgentForJob(agent); assertEquals(null, result); } /** * Run the AgentTestStartData registerAgentForJob(AgentData) method test. * * @throws Exception * * @generatedBy CodePro at 9/10/14 10:40 AM */ @Test public void testRegisterAgentForJob_3() throws Exception { JobManager fixture = new JobManager(); AgentData agent = new AgentData("", "", "", 1, VMRegion.ASIA_1, ""); AgentTestStartData result = fixture.registerAgentForJob(agent); assertEquals(null, result); } /** * Run the FutureTask<AgentData> sendCommand(String,WatsAgentCommand) method test. * * @throws Exception * * @generatedBy CodePro at 9/10/14 10:40 AM */ @Test public void testSendCommand_1() throws Exception { JobManager fixture = new JobManager(); String instanceId = ""; WatsAgentCommand cmd = WatsAgentCommand.kill; FutureTask<AgentData> result = fixture.sendCommand(instanceId, cmd); assertEquals(null, result); } /** * Run the FutureTask<AgentData> sendCommand(String,WatsAgentCommand) method test. * * @throws Exception * * @generatedBy CodePro at 9/10/14 10:40 AM */ @Test public void testSendCommand_2() throws Exception { JobManager fixture = new JobManager(); String instanceId = ""; WatsAgentCommand cmd = WatsAgentCommand.kill; FutureTask<AgentData> result = fixture.sendCommand(instanceId, cmd); assertEquals(null, result); } }