| | |
| | | } |
| | | |
| | | /** |
| | | * Tests that exception thrown when no enum class specified by builder |
| | | * Tests that exception thrown when no enum class specified by builder. |
| | | */ |
| | | @Test |
| | | public void testBuildInstance() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Tests that exception thrown when no enum class specified by builder |
| | | * Tests that exception thrown when no enum class specified by builder. |
| | | */ |
| | | @Test(expectedExceptions = { IllegalStateException.class }) |
| | | public void testBuildInstanceWithoutEnumClassSpecified() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates data decodeValue test |
| | | * Creates data decodeValue test. |
| | | * |
| | | * @return data |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Tests decodeValue() |
| | | * Tests decodeValue(). |
| | | * |
| | | * @param value |
| | | * to decode |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates illegal data for decode value test |
| | | * Creates illegal data for decode value test. |
| | | * |
| | | * @return data |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Tests decodeValue() |
| | | * Tests decodeValue(). |
| | | * |
| | | * @param value |
| | | * to decode |
| | |
| | | def.decodeValue(value); |
| | | } |
| | | |
| | | /** |
| | | * Tests normalization |
| | | */ |
| | | /** Tests normalization. */ |
| | | @Test |
| | | public void testNormalizeValue() { |
| | | EnumPropertyDefinition<TestEnum> def = builder.getInstance(); |
| | | assertEquals(def.normalizeValue(TestEnum.ONE), "one"); |
| | | } |
| | | |
| | | /** |
| | | * Tests validation |
| | | */ |
| | | /** Tests validation. */ |
| | | @Test |
| | | public void testValidateValue() { |
| | | EnumPropertyDefinition<TestEnum> def = builder.getInstance(); |