package com.intuit.tank.vm.settings;
/*
* #%L
* Intuit Tank Api
* %%
* 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.text.DateFormat;
import java.util.Date;
import org.junit.*;
import com.intuit.tank.vm.settings.TimeUtil;
import static org.junit.Assert.*;
/**
* The class <code>TimeUtilCpTest</code> contains tests for the class <code>{@link TimeUtil}</code>.
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
public class TimeUtilCpTest {
/**
* Run the TimeUtil() constructor test.
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testTimeUtil_1()
throws Exception {
TimeUtil result = new TimeUtil();
assertNotNull(result);
}
/**
* Run the Date normalizeToPeriod(int,Date) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testNormalizeToPeriod_1()
throws Exception {
int period = 1;
Date date = new Date();
Date result = TimeUtil.normalizeToPeriod(period, date);
assertNotNull(result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_1()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_2()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_3()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_4()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_5()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_6()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_7()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_8()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_9()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_10()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_11()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_12()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the long parseTimeString(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testParseTimeString_13()
throws Exception {
String time = "";
long result = TimeUtil.parseTimeString(time);
assertEquals(0L, result);
}
/**
* Run the String toTimeString(long) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testToTimeString_1()
throws Exception {
long millis = 1L;
String result = TimeUtil.toTimeString(millis);
assertEquals("1ms", result);
}
/**
* Run the String toTimeString(long) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testToTimeString_2()
throws Exception {
long millis = 1L;
String result = TimeUtil.toTimeString(millis);
assertEquals("1ms", result);
}
/**
* Run the String toTimeString(long) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/3/14 3:41 PM
*/
@Test
public void testToTimeString_3()
throws Exception {
long millis = 1L;
String result = TimeUtil.toTimeString(millis);
assertEquals("1ms", result);
}
}