com.google.code.jetm.maven.data
Class TimeUnitTest

java.lang.Object
  extended by com.google.code.jetm.maven.data.TimeUnitTest

public class TimeUnitTest
extends Object

Unit tests for TimeUnit.

Author:
jrh3k5

Field Summary
 org.junit.rules.ExpectedException expected
          A Rule used to test for thrown exceptions.
 
Constructor Summary
TimeUnitTest()
           
 
Method Summary
 void testFromMojoAbbreviation()
          Test the retrieval of a time unit by the TimingReportMojo abbreviations for time units.
 void testFromMojoAbbreviationUnknownAbbreviation()
          Looking up an unknown abbreviation should fail.
 void testGetDisplayName()
          Test the retrieval of the display name.
 void testMillisecondsToMilliseconds()
          Test the conversion between two microsecond values.
 void testMillisecondsToSeconds()
          Test the conversion of microseconds to seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expected

public org.junit.rules.ExpectedException expected
A Rule used to test for thrown exceptions.

Constructor Detail

TimeUnitTest

public TimeUnitTest()
Method Detail

testFromMojoAbbreviation

public void testFromMojoAbbreviation()
Test the retrieval of a time unit by the TimingReportMojo abbreviations for time units.


testFromMojoAbbreviationUnknownAbbreviation

public void testFromMojoAbbreviationUnknownAbbreviation()
Looking up an unknown abbreviation should fail.


testGetDisplayName

public void testGetDisplayName()
Test the retrieval of the display name.


testMillisecondsToSeconds

public void testMillisecondsToSeconds()
Test the conversion of microseconds to seconds.


testMillisecondsToMilliseconds

public void testMillisecondsToMilliseconds()
Test the conversion between two microsecond values.



Copyright © 2011. All Rights Reserved.