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 org.junit.*;
import static org.junit.Assert.*;
import com.intuit.tank.perfManager.workLoads.JobInstanceAgentModel;
import com.intuit.tank.vm.vmManager.JobRequest;
/**
* The class <code>JobInstanceAgentModelTest</code> contains tests for the class
* <code>{@link JobInstanceAgentModel}</code>.
*
* @generatedBy CodePro at 9/10/14 10:40 AM
*/
public class JobInstanceAgentModelTest {
/**
* Run the JobInstanceAgentModel(JobRequest) constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/10/14 10:40 AM
*/
@Test
public void testJobInstanceAgentModel_1()
throws Exception {
JobRequest job = null;
JobInstanceAgentModel result = new JobInstanceAgentModel(job);
assertNotNull(result);
assertEquals(null, result.getJob());
assertEquals(0, result.getStartTime());
}
/**
* Run the JobRequest getJob() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/10/14 10:40 AM
*/
@Test
public void testGetJob_1()
throws Exception {
JobInstanceAgentModel fixture = new JobInstanceAgentModel((JobRequest) null);
JobRequest result = fixture.getJob();
assertEquals(null, result);
}
/**
* Run the int getStartTime() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/10/14 10:40 AM
*/
@Test
public void testGetStartTime_1()
throws Exception {
JobInstanceAgentModel fixture = new JobInstanceAgentModel((JobRequest) null);
int result = fixture.getStartTime();
assertEquals(0, result);
}
}