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 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


   * @throws GeDAException should not be thrown
   */
  @Test
  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)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @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

   * @throws GeDAException should not be thrown
   */
  @Test
  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)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @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

   * @throws GeDAException should not be thrown
   */
  @Test
  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)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @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

   * @throws GeDAException should not be thrown
   */
  @Test
  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)   
View Full Code Here

   * @throws GeDAException should not be thrown
   */
  @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

   * @throws GeDAException should not be thrown
   */
  @Test
  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)   
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.