Example usage for org.apache.commons.jxpath.ri.model.beans PropertyPointer getClass

List of usage examples for org.apache.commons.jxpath.ri.model.beans PropertyPointer getClass

Introduction

In this page you can find the example usage for org.apache.commons.jxpath.ri.model.beans PropertyPointer getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:jp.terasoluna.fw.beans.jxpath.BeanPointerExTest.java

/**
 * testGetPropertyPointer01() <br>
 * <br>//from w  w  w .  j a va2  s . c om
 * () <br>
 * A <br>
 * <br>
 * () this.beanInfo:not null<br>
 * <br>
 * () PropertyPointer:new BeanPropertyPointerEx{<br>
 * parent=this<br>
 * beanInfo=?????beanInfo<br>
 * }<br>
 * <br>
 * ???? <br>
 * @throws Exception ?????
 */
@Test
public void testGetPropertyPointer01() throws Exception {
    // ??
    QName qName = new QName("name");
    Object bean = new Object();
    JXPathBeanInfo beanInfo = new JXPathBasicBeanInfo(bean.getClass());
    Locale locale = new Locale("ja");
    BeanPointerEx beanPointer = new BeanPointerEx(qName, bean, beanInfo, locale);

    // 
    PropertyPointer result = beanPointer.getPropertyPointer();

    // 
    assertSame(BeanPropertyPointerEx.class, result.getClass());
    assertSame(beanPointer, result.getParent());
    assertSame(beanInfo, ReflectionTestUtils.getField(result, "beanInfo"));
}