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

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


   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnClassCfl() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setFlo(FO_3);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "flo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testWriterOnClassCfl() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "flo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Float.class, writer.getParameterType());
    writer.write(dto, FO_3);
    assertEquals(FO_3, dto.getFlo());
   
  }
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnIfaceCfl() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setFlo(FO_3);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "flo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testWriterOnIfaceCfl() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "flo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Float.class, writer.getParameterType());
    writer.write(dto, FO_3);
    assertEquals(FO_3, dto.getFlo());
   
  }
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnClassPlo() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setLo(LL_4);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "lo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testWriterOnClassPlo() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "lo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Long.class, writer.getParameterType());
    writer.write(dto, LO_4);
    assertEquals(LL_4, dto.getLo());
   
  }
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnIfacePlo() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setLo(LL_4);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "lo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testWriterOnIfacePlo() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "lo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)   
        )   
    );
   
    assertEquals(Long.class, writer.getParameterType());
    writer.write(dto, LO_4);
    assertEquals(LL_4, dto.getLo());
   
  }
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnClassClo() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
    dto.setLoo(LO_4);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "loo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.assembler.examples.synth.TestSynthesizerByClass

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.