Package org.apache.harmony.beans.tests.support.mock

Examples of org.apache.harmony.beans.tests.support.mock.MockFoo2


     * method, defined by its beaninfo.
     */
    public void testInstantiate_NotRegularGetter() throws Exception {
        MockPersistenceDelegate pd = new MockPersistenceDelegate(
                new String[] { "prop" });
        MockFoo2 b = new MockFoo2(2);
        Expression e = pd.instantiate(b, new Encoder());

        assertSame(b, e.getValue());
        assertSame(MockFoo2.class, e.getTarget());
        assertEquals("new", e.getMethodName());
View Full Code Here


     * info class.
     */
    public void testInitialize_NormalBeanInfo() throws Exception {
        CollectingEncoder enc = new CollectingEncoder();
        MockPersistenceDelegate pd = new MockPersistenceDelegate();
        MockFoo2 b = new MockFoo2(2);
        MockFoo2 b2 = new MockFoo2(3);
        Iterator<Statement> iter;

        pd.writeObject(b, enc);
        pd.writeObject(b2, enc);
        enc.clearCache();
View Full Code Here

     * method, defined by its beaninfo.
     */
    public void testInstantiate_NotRegularGetter() throws Exception {
        MockPersistenceDelegate pd = new MockPersistenceDelegate(
                new String[] { "prop" });
        MockFoo2 b = new MockFoo2(2);
        Expression e = pd.instantiate(b, new Encoder());

        assertSame(b, e.getValue());
        assertSame(MockFoo2.class, e.getTarget());
        assertEquals("new", e.getMethodName());
View Full Code Here

     * info class.
     */
    public void testInitialize_NormalBeanInfo() throws Exception {
        CollectingEncoder enc = new CollectingEncoder();
        MockPersistenceDelegate pd = new MockPersistenceDelegate();
        MockFoo2 b = new MockFoo2(2);
        MockFoo2 b2 = new MockFoo2(3);
        Iterator<Statement> iter;

        pd.writeObject(b, enc);
        pd.writeObject(b2, enc);
        enc.clearCache();
View Full Code Here

     * method, defined by its beaninfo.
     */
    public void testInstantiate_NotRegularGetter() throws Exception {
        MockPersistenceDelegate pd = new MockPersistenceDelegate(
                new String[] { "prop" });
        MockFoo2 b = new MockFoo2(2);
        Expression e = pd.instantiate(b, new Encoder());

        assertSame(b, e.getValue());
        assertSame(MockFoo2.class, e.getTarget());
        assertEquals("new", e.getMethodName());
View Full Code Here

     * info class.
     */
    public void testInitialize_NormalBeanInfo() throws Exception {
        CollectingEncoder enc = new CollectingEncoder();
        MockPersistenceDelegate pd = new MockPersistenceDelegate();
        MockFoo2 b = new MockFoo2(2);
        MockFoo2 b2 = new MockFoo2(3);
        Iterator<Statement> iter;

        pd.writeObject(b, enc);
        pd.writeObject(b2, enc);
        enc.clearCache();
View Full Code Here

TOP

Related Classes of org.apache.harmony.beans.tests.support.mock.MockFoo2

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.