use of com.canoo.platform.remoting.spi.converter.Converter in project dolphin-platform by canoo.
the class PeriodeConverterFactoryTest method testWrongDolphinValues.
@Test(expectedExceptions = ClassCastException.class)
public void testWrongDolphinValues(@Mocked BeanRepository beanRepository) throws ValueConverterException {
// Given
Converters converters = new Converters(beanRepository);
// When
Converter converter = converters.getConverter(Period.class);
// Then
converter.convertFromDolphin(7);
}
use of com.canoo.platform.remoting.spi.converter.Converter in project dolphin-platform by canoo.
the class ZonedDateTimeConverterFactoryTest method testConverterCreation.
@Test
public void testConverterCreation(@Mocked BeanRepository beanRepository) {
// Given
Converters converters = new Converters(beanRepository);
// When
Converter converter = converters.getConverter(ZonedDateTime.class);
// Then
assertNotNull(converter);
}
use of com.canoo.platform.remoting.spi.converter.Converter in project dolphin-platform by canoo.
the class ZonedDateTimeConverterFactoryTest method testWrongDolphinValues.
@Test(expectedExceptions = ClassCastException.class)
public void testWrongDolphinValues(@Mocked BeanRepository beanRepository) throws ValueConverterException {
// Given
Converters converters = new Converters(beanRepository);
// When
Converter converter = converters.getConverter(ZonedDateTime.class);
// Then
converter.convertFromDolphin(7);
}
Aggregations