Package com.inspiresoftware.lib.dto.geda.assembler.extension

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.DataReader


  public void testReaderOnIfacePby() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setBy(YY_1);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "by",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Byte.class, reader.getReturnType());
    assertEquals(YO_1, reader.read(dto));
   
  }
View Full Code Here


  public void testReaderOnClassCby() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setByo(YO_1);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "byo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Byte.class, reader.getReturnType());
    assertEquals(YO_1, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnIfaceCby() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setByo(YO_1);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "byo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Byte.class, reader.getReturnType());
    assertEquals(YO_1, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnClassPch() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setCh(CC_D);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "ch",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Character.class, reader.getReturnType());
    assertEquals(CO_D, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnIfacePch() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setCh(CC_D);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "ch",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Character.class, reader.getReturnType());
    assertEquals(CO_D, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnClassCch() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setCho(CO_D);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "cho",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Character.class, reader.getReturnType());
    assertEquals(CO_D, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnIfaceCch() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setCho(CO_D);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "cho",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Character.class, reader.getReturnType());
    assertEquals(CO_D, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnClassPsh() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setSh(SS_3);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "sh",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Short.class, reader.getReturnType());
    assertEquals(SO_3, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnIfacePsh() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setSh(SS_3);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "sh",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Short.class, reader.getReturnType());
    assertEquals(SO_3, reader.read(dto));
   
  }
View Full Code Here

  public void testReaderOnClassCsh() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setSho(SO_3);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "sho",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Short.class, reader.getReturnType());
    assertEquals(SO_3, reader.read(dto));
   
  }
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.assembler.extension.DataReader

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.