Package com.totsp.gwittir.client.beans

Source Code of com.totsp.gwittir.client.beans.BeanUtilsTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.totsp.gwittir.client.beans;

import junit.framework.TestCase;
import test.destination.ABean;
import test.destination.BBean;

/**
*
* @author robert.cooper
*/
public class BeanUtilsTest extends TestCase {
   
    public BeanUtilsTest(String testName) {
        super(testName);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
    }

    @Override
    protected void tearDown() throws Exception {
        super.tearDown();
    }

    /**
     * Test of readDottedProperty method, of class BeanUtils.
     */
    public void testReadDottedProperty() {
        ABean a = new ABean();
        BBean b = new BBean();
        a.setCharProperty('C');
        b.setParent(a);
        Character c = (Character) BeanUtils.readDottedProperty("parent.charProperty", b);
        assertEquals( Character.valueOf('C'), c);
    }

}
TOP

Related Classes of com.totsp.gwittir.client.beans.BeanUtilsTest

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.