use of com.canoo.dp.impl.remoting.converters.DateConverterFactory in project dolphin-platform by canoo.
the class DateConverterFactoryTest method testConverterCreation.
@Test
public void testConverterCreation() {
DateConverterFactory factory = new DateConverterFactory();
Converter converter = factory.getConverterForType(Date.class);
Assert.assertNotNull(converter);
}
use of com.canoo.dp.impl.remoting.converters.DateConverterFactory in project dolphin-platform by canoo.
the class DateConverterFactoryTest method testConvertion.
@Test
public void testConvertion() throws ValueConverterException {
DateConverterFactory factory = new DateConverterFactory();
Converter converter = factory.getConverterForType(Date.class);
Date date = new Date();
Object converted = converter.convertToDolphin(date);
Assert.assertNotNull(converted);
Assert.assertEquals(converter.convertFromDolphin(converted), date);
}
use of com.canoo.dp.impl.remoting.converters.DateConverterFactory in project dolphin-platform by canoo.
the class DateConverterFactoryTest method testTypeSupport.
@Test
public void testTypeSupport() {
DateConverterFactory factory = new DateConverterFactory();
Assert.assertTrue(factory.supportsType(Date.class));
}
use of com.canoo.dp.impl.remoting.converters.DateConverterFactory in project dolphin-platform by canoo.
the class DateConverterFactoryTest method testTypeIdentifier.
@Test
public void testTypeIdentifier() {
DateConverterFactory factory = new DateConverterFactory();
Assert.assertEquals(factory.getTypeIdentifier(), DateConverterFactory.FIELD_TYPE_DATE);
}
Aggregations