public class PortEntryTester
extends java.lang.Object
PortEntry
, which is a special "continuous"
Entry
based on integers rather than doubles.Constructor and Description |
---|
PortEntryTester() |
Modifier and Type | Method and Description |
---|---|
void |
checkConstruction()
This checks the constructor for
KeyEntry to ensure that the
default values are properly set. |
void |
checkContentProvider()
Checks that the content provider can be set properly and cannot be set to
an invalid content provider (anything other than a non-null
PortEntryContentProvider ). |
void |
checkCopy()
Tests the clone operation to ensure that it properly returns a copied
PortEntry rather than a plain Entry . |
void |
checkEquals()
Checks the equals and hash code methods for an object, an equivalent
object, an unequal object, and invalid arguments.
|
void |
checkValue()
Checks that the
PortEntry.setValue(String) properly assigns valid
values (integers managed by the PortEntryContentProvider ) and
rejects invalid values (non-integers or integers outside the range). |
public void checkConstruction()
KeyEntry
to ensure that the
default values are properly set.public void checkValue()
PortEntry.setValue(String)
properly assigns valid
values (integers managed by the PortEntryContentProvider
) and
rejects invalid values (non-integers or integers outside the range).public void checkContentProvider()
PortEntryContentProvider
).public void checkEquals()
public void checkCopy()
PortEntry
rather than a plain Entry
.