Examples of TestSynthesizerByClass


Examples of com.inspiresoftware.lib.dto.geda.assembler.examples.synth.TestSynthesizerByClass

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testWriterOnIfacePfl() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "fl",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Float.class, writer.getParameterType());
    writer.write(dto, FO_3);
    assertEquals(FO_3, dto.getFl(), 0);
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.