Examples of AppleBean


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

        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

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

        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

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

    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

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

        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
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.