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 testWriterOnClassClo() throws GeDAException {
   
    final TestSynthesizerByClass dto = new TestSynthesizerByClass();
   
    final DataWriter writer = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeWriter(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "loo",
            PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByClass.class)   
        )   
    );
   
    assertEquals(Long.class, writer.getParameterType());
    writer.write(dto, LO_4);
    assertEquals(LO_4, dto.getLoo());
   
  }
View Full Code Here


   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnIfaceClo() throws GeDAException {
   
    final TestSynthesizerByInterface 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(TestSynthesizerByInterface.class)   
View Full Code Here

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

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

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

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

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

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

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

   * @throws GeDAException should not be thrown
   */
  @Test
  public void testReaderOnIfaceCdb() throws GeDAException {
   
    final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
    dto.setDbo(DD_4);
   
    final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
        PropertyInspector.getDtoPropertyDescriptorForField(
            TestDto1Interface.class, "dbo",
            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.