Package org.metagrid.gatekeeper.test.apple.bean

Examples of org.metagrid.gatekeeper.test.apple.bean.AppleBeanImpl


     */
    public void testCreateApple()
    throws Exception
        {
        assertNotNull(
            new AppleBeanImpl()
            );
        }
View Full Code Here


                new FruitBeanImpl.StringIdentBuilder<AppleBean>(
                    new URI(
                        "urn://apples/"
                        )
                    ),
                new AppleBeanImpl()
                )
            );
        }
View Full Code Here

        Date future = new Date(
            System.currentTimeMillis() + (1000 * 60 * 60)
            );
        //
        // Create our AppleBean.
        AppleBean apple = new AppleBeanImpl();
        //
        // Create our AppleNode.
        AppleNode node = new AppleNodeImpl(
            new FruitBeanImpl.StringIdentBuilder<AppleBean>(
                new URI(
                    "urn://apples/"
                    )
                ),
            apple
            );
        //
        // Set the AppleNode modified property.
        node.properties().set(
            AppleNode.MODIFIED_PROPERTY_URI,
            format.format(
                future
                )
            );
        //
        // Check the AppleBean modified date.
        assertEquals(
            future,
            apple.modified()
            );
        }
View Full Code Here

        final Date future = new Date(
            System.currentTimeMillis() + (1000 * 60 * 60)
            );
        //
        // Create our AppleBean.
        AppleBean apple = new AppleBeanImpl();
        //
        // Create our AppleNode.
        final AppleNode node = new AppleNodeImpl(
            new FruitBeanImpl.StringIdentBuilder<AppleBean>(
                new URI(
View Full Code Here

    public void testSetWeight()
    throws Exception
        {
        //
        // Create our AppleBean.
        AppleBean apple = new AppleBeanImpl();
        //
        // Create our AppleNode.
        AppleNode node = new AppleNodeImpl(
            new FruitBeanImpl.StringIdentBuilder<AppleBean>(
                new URI(
                    "urn://apples/"
                    )
                ),
            apple
            );
        //
        // Set the AppleNode weight property.
        node.properties().set(
            AppleNode.WEIGHT_PROPERTY_URI,
            "27"
            );
        //
        // Check the AppleBean weight.
        assertEquals(
            new Integer(27),
            apple.weight()
            );
        }
View Full Code Here

        Date newer = new Date(
            System.currentTimeMillis() + (1000 * 60 * 60)
            );
        //
        // Create our AppleBean.
        AppleBean apple = new AppleBeanImpl();
        //
        // Create our AppleNode.
        AppleNode node = new AppleNodeImpl(
            new FruitBeanImpl.StringIdentBuilder<AppleBean>(
                new URI(
View Full Code Here

TOP

Related Classes of org.metagrid.gatekeeper.test.apple.bean.AppleBeanImpl

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.