Examples of TestSynthesizerByInterface


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

   * @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
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.