|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.code.jetm.maven.data.AggregateSummaryTest
public class AggregateSummaryTest
Unit tests for AggregateSummary
.
Field Summary | |
---|---|
org.junit.rules.ExpectedException |
expected
A Rule used to test for thrown exceptions. |
Constructor Summary | |
---|---|
AggregateSummaryTest()
|
Method Summary | |
---|---|
void |
testAdd()
Test the summary of two aggregates in a single AggregateSummary
object. |
void |
testCompareTo()
Test the comparison of two AggregateSummary objects. |
void |
testConstructNullName()
Given a null name, construction should fail. |
void |
testEquals()
Two summaries by the same name should be equal. |
void |
testEqualsNotAggregateSummary()
An aggregate summary should not be equal to an object that is not an aggregate summary. |
void |
testEqualsNull()
An aggregate summary should not be equal to null . |
void |
testEqualsSelf()
An aggregate summary should be equal to itself. |
void |
testHashCode()
A summary's hash code should be simply the hash code of its name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.junit.rules.ExpectedException expected
Rule
used to test for thrown exceptions.
Constructor Detail |
---|
public AggregateSummaryTest()
Method Detail |
---|
public void testConstructNullName()
null
name, construction should fail.
public void testEquals()
public void testEqualsNotAggregateSummary()
public void testEqualsNull()
null
.
public void testEqualsSelf()
public void testAdd()
AggregateSummary
object.
public void testCompareTo()
AggregateSummary
objects. Two
summaries by the same name should match; those with different names
should not match.
public void testHashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |