Package org.ocpsoft.rewrite.instance

Examples of org.ocpsoft.rewrite.instance.DefaultConverterProvider


public class DefaultConverterProviderTest
{
   @Test
   public void testCreateRewriteConverter()
   {
      Converter<?> converter = new DefaultConverterProvider().getByConverterType(TestConverter.class);
      assertNotNull(converter);
      assertTrue(converter instanceof TestConverter);
   }
View Full Code Here


   }

   @Test
   public void testUnsupportedType()
   {
      Converter<?> converter = new DefaultConverterProvider().getByConverterType(BigDecimal.class);
      assertNull(converter);
   }
View Full Code Here

   }

   @Test
   public void testSomeIdentifier()
   {
      Converter<?> converter = new DefaultConverterProvider().getByConverterId("something");
      assertNull(converter);
   }
View Full Code Here

   }

   @Test
   public void testByTargetType()
   {
      Converter<?> converter = new DefaultConverterProvider().getByTargetType(Integer.class);
      assertNull(converter);
   }
View Full Code Here

TOP

Related Classes of org.ocpsoft.rewrite.instance.DefaultConverterProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.