Package com.inspiresoftware.lib.dto.geda.assembler.examples.converter

Examples of com.inspiresoftware.lib.dto.geda.assembler.examples.converter.TestEntity3Class


   * @throws GeDAException exception
   */
  @Test
  public void testWithConversion() throws GeDAException {
    final TestDto3Class dto = new TestDto3Class();
    final TestEntity3Class entity = new TestEntity3Class();
    entity.setDecision(true);
    final ValueConverter conv3toDto = new TestConverter3();
    final Map<String, Object> converters = new HashMap<String, Object>();
    converters.put("boolToEnum", conv3toDto);
   
    final Assembler assembler =
View Full Code Here


   * @throws GeDAException should not be thrown
   */
  @Test
  public void testSynthesizeReaderOnClassOnPrimitive() throws GeDAException {
   
    final TestEntity3Class dto = new TestEntity3Class();
    dto.setDecision(true);
   
    final DataReader readerMyString = new JavassistMethodSynthesizer(this.getClass().getClassLoader()).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestEntity3Class.class, "decision",
            PropertyInspector.getPropertyDescriptorsForClass(TestEntity3Class.class)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testSynthesizeReaderOnClassOnPrimitive() throws GeDAException {
   
    final TestEntity3Class dto = new TestEntity3Class();
    dto.setDecision(true);
   
    final DataReader readerMyString = new BCELMethodSynthesizer(this.getClass().getClassLoader()).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestEntity3Class.class, "decision",
            PropertyInspector.getPropertyDescriptorsForClass(TestEntity3Class.class)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testSynthesizeReaderOnClassOnPrimitive() throws GeDAException {
   
    final TestEntity3Class dto = new TestEntity3Class();
    dto.setDecision(true);
   
    final DataReader readerMyString = new SunJavaToolsMethodSynthesizer(this.getClass().getClassLoader(), WORKING_DIRECTORY).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestEntity3Class.class, "decision",
            PropertyInspector.getPropertyDescriptorsForClass(TestEntity3Class.class)   
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.assembler.examples.converter.TestEntity3Class

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.