public class MessageTypeTest extends Object
MessageType works as expected.| Constructor and Description |
|---|
MessageTypeTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
shouldFailForUnknownMessageClasses()
When the
Class passed to MessageType does implement Message but is unknown to
MessageType, an exception should be thrown. |
void |
shouldReturnAnEmptyOptionalWhenThePassedNumberIsNotAssignedToAnyMessag()
When the
MessageType is queried for the MessageType with a number that is not assigned to any
MessageType an empty Optional should be retuned. |
void |
shouldReturnCorrectEnumConstantForMessagClass()
|
void |
shouldReturnCorrectEnumConstantForMessageNumber()
When the
MessageType is queried for the MessageType with a given number, the correct
MessageType should be returned. |
public void shouldReturnCorrectEnumConstantForMessagClass()
public void shouldFailForUnknownMessageClasses()
Class passed to MessageType does implement Message but is unknown to
MessageType, an exception should be thrown.public void shouldReturnCorrectEnumConstantForMessageNumber()
MessageType is queried for the MessageType with a given number, the correct
MessageType should be returned.public void shouldReturnAnEmptyOptionalWhenThePassedNumberIsNotAssignedToAnyMessag()
MessageType is queried for the MessageType with a number that is not assigned to any
MessageType an empty Optional should be retuned.Copyright © 2016. All rights reserved.