Package org.apache.webbeans.test.xml

Examples of org.apache.webbeans.test.xml.ComponentForField


        /* Clear the manager component list */
        clear();

        this.xmlConfigurator.configure(stream, "fieldTest.xml");

        ComponentForField cff = (ComponentForField) getManager().getInstanceByName("componentForField");

        Assert.assertNotNull(cff);
        Assert.assertEquals(35, cff.getIntField());
        Assert.assertEquals(35.3f, cff.getFloatField());
        Assert.assertEquals(35.5d, cff.getDoubleField());
        Assert.assertEquals('a', cff.getCharField());
        Assert.assertEquals(37, cff.getLongField());
        Assert.assertEquals(1, cff.getByteField());
        Assert.assertEquals(5, cff.getShortField());
        Assert.assertEquals(true, cff.isBooleanField());
        Assert.assertEquals("ENUM1", cff.getEnum1().name());
        Assert.assertEquals("dskfj", cff.getStrField());
        Assert.assertNotNull(cff.getDateField());
        Assert.assertNotNull(cff.getCalendarField());
        Assert.assertEquals(ComponentForField.class, cff.getClazzField());
        Assert.assertNotNull(cff.getListStrField());
        Assert.assertNotNull(cff.getListEnumField());
    }
View Full Code Here


        /* Clear the manager component list */
        clear();

        this.xmlConfigurator.configureOwbSpecific(stream, "fieldTest.xml");

        ComponentForField cff = (ComponentForField) getManager().getInstanceByName("componentForField");

        Assert.assertNotNull(cff);
        Assert.assertEquals(35, cff.getIntField());
        Assert.assertEquals(35.3f, cff.getFloatField());
        Assert.assertEquals(35.5d, cff.getDoubleField());
        Assert.assertEquals('a', cff.getCharField());
        Assert.assertEquals(37, cff.getLongField());
        Assert.assertEquals(1, cff.getByteField());
        Assert.assertEquals(5, cff.getShortField());
        Assert.assertEquals(true, cff.isBooleanField());
        Assert.assertEquals("ENUM1", cff.getEnum1().name());
        Assert.assertEquals("dskfj", cff.getStrField());
        Assert.assertNotNull(cff.getDateField());
        Assert.assertNotNull(cff.getCalendarField());
        Assert.assertEquals(ComponentForField.class, cff.getClazzField());
        Assert.assertNotNull(cff.getListStrField());
        Assert.assertNotNull(cff.getListEnumField());
    }
View Full Code Here

        /* Clear the manager component list */
        clear();

        this.xmlConfigurator.configureOwbSpecific(stream, "fieldTest.xml");

        ComponentForField cff = (ComponentForField) getManager().getInstanceByName("componentForField");

        Assert.assertNotNull(cff);
        Assert.assertEquals(35, cff.getIntField());
        Assert.assertEquals(35.3f, cff.getFloatField());
        Assert.assertEquals(35.5d, cff.getDoubleField());
        Assert.assertEquals('a', cff.getCharField());
        Assert.assertEquals(37, cff.getLongField());
        Assert.assertEquals(1, cff.getByteField());
        Assert.assertEquals(5, cff.getShortField());
        Assert.assertEquals(true, cff.isBooleanField());
        Assert.assertEquals("ENUM1", cff.getEnum1().name());
        Assert.assertEquals("dskfj", cff.getStrField());
        Assert.assertNotNull(cff.getDateField());
        Assert.assertNotNull(cff.getCalendarField());
        Assert.assertEquals(ComponentForField.class, cff.getClazzField());
        Assert.assertNotNull(cff.getListStrField());
        Assert.assertNotNull(cff.getListEnumField());
    }
View Full Code Here

        /* Clear the manager component list */
        clear();

        this.xmlConfigurator.configureOwbSpecific(stream, "fieldTest.xml");

        ComponentForField cff = (ComponentForField) getManager().getInstanceByName("componentForField");

        Assert.assertNotNull(cff);
        Assert.assertEquals(35, cff.getIntField());
        Assert.assertEquals(35.3f, cff.getFloatField());
        Assert.assertEquals(35.5d, cff.getDoubleField());
        Assert.assertEquals('a', cff.getCharField());
        Assert.assertEquals(37, cff.getLongField());
        Assert.assertEquals(1, cff.getByteField());
        Assert.assertEquals(5, cff.getShortField());
        Assert.assertEquals(true, cff.isBooleanField());
        Assert.assertEquals("ENUM1", cff.getEnum1().name());
        Assert.assertEquals("dskfj", cff.getStrField());
        Assert.assertNotNull(cff.getDateField());
        Assert.assertNotNull(cff.getCalendarField());
        Assert.assertEquals(ComponentForField.class, cff.getClazzField());
        Assert.assertNotNull(cff.getListStrField());
        Assert.assertNotNull(cff.getListEnumField());
    }
View Full Code Here

            /* Clear the manager component list */
            clear();

            this.xmlConfigurator.configure(stream, "fieldTest.xml");

            ComponentForField cff = (ComponentForField) container.getInstanceByName("componentForField");

            Assert.assertNotNull(cff);
            Assert.assertEquals(35, cff.getIntField());
            Assert.assertEquals(35.3f, cff.getFloatField());
            Assert.assertEquals(35.5d, cff.getDoubleField());
            Assert.assertEquals('a', cff.getCharField());
            Assert.assertEquals(37, cff.getLongField());
            Assert.assertEquals(1, cff.getByteField());
            Assert.assertEquals(5, cff.getShortField());
            Assert.assertEquals(true, cff.isBooleanField());
            Assert.assertEquals("ENUM1", cff.getEnum1().name());
            Assert.assertEquals("dskfj", cff.getStrField());
            Assert.assertNotNull(cff.getDateField());
            Assert.assertNotNull(cff.getCalendarField());
            Assert.assertEquals(ComponentForField.class, cff.getClazzField());
            Assert.assertNotNull(cff.getListStrField());
            Assert.assertNotNull(cff.getListEnumField());

        }
        catch (Throwable e1)
        {
            e = e1;
View Full Code Here

TOP

Related Classes of org.apache.webbeans.test.xml.ComponentForField

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.