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

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


  @Test
  public void testWriterOnIfaceCbool() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "boolo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Boolean.class, writer.getParameterType());
    writer.write(dto, BO_T);
    assertEquals(BO_T, dto.getBoolo());
   
  }
View Full Code Here


  @Test
  public void testWriterOnClassPby() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "by",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Byte.class, writer.getParameterType());
    writer.write(dto, YY_1);
    assertEquals(YY_1, dto.getBy());
   
  }
View Full Code Here

  @Test
  public void testWriterOnIfacePby() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "by",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Byte.class, writer.getParameterType());
    writer.write(dto, YY_1);
    assertEquals(YY_1, dto.getBy());
   
  }
View Full Code Here

  @Test
  public void testWriterOnClassCby() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "byo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Byte.class, writer.getParameterType());
    writer.write(dto, YO_1);
    assertEquals(YO_1, dto.getByo());
   
  }
View Full Code Here

  @Test
  public void testWriterOnIfaceCby() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "byo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Byte.class, writer.getParameterType());
    writer.write(dto, YO_1);
    assertEquals(YO_1, dto.getByo());
   
  }
View Full Code Here

  @Test
  public void testWriterOnClassPch() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "ch",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Character.class, writer.getParameterType());
    writer.write(dto, CC_D);
    assertEquals(CC_D, dto.getCh());
   
  }
View Full Code Here

  @Test
  public void testWriterOnIfacePch() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "ch",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Character.class, writer.getParameterType());
    writer.write(dto, CC_D);
    assertEquals(CC_D, dto.getCh());
   
  }
View Full Code Here

  @Test
  public void testWriterOnClassCch() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "cho",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Character.class, writer.getParameterType());
    writer.write(dto, CO_D);
    assertEquals(CO_D, dto.getCho());
   
  }
View Full Code Here

  @Test
  public void testWriterOnIfaceCch() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "cho",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Character.class, writer.getParameterType());
    writer.write(dto, CO_D);
    assertEquals(CO_D, dto.getCho());
   
  }
View Full Code Here

  @Test
  public void testWriterOnClassPsh() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "sh",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Short.class, writer.getParameterType());
    writer.write(dto, SS_3);
    assertEquals(SS_3, dto.getSh());
   
  }
View Full Code Here

TOP

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

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.