@Test(expected = FrameConversionException.class) public void convert_should_throw_frame_conversion_exception_when_sequence_contains_invalid_character() throws Exception { FrameConverterTestUtil.validateFrameConversionExceptionMsg( notValidBlankFrameSequence, BlankFrameConverter.class); }
@Test(expected = FrameConversionException.class) public void convert_should_throw_frame_conversion_exception_when_sequence_contains_more_then_tow_characters() throws Exception { FrameConverterTestUtil.validateFrameConversionExceptionMsg( notValidBlankFrameSequenceWithMoreThenTowCharacters, BlankFrameConverter.class); }
@Test public void convert_should_return_blank_frame() { Frame frame = blankFrameConverter.convert(validBlankFrameSequence); FrameConverterTestUtil.validateConversion(frame, BlankFrame.class); }