Package org.qi4j.regression.qi377

Examples of org.qi4j.regression.qi377.IssueTest$Employee


{

    @Test
    public void extractPropertyNameFromAttribute() throws Exception
    {
        Employee expected = new Employee( "John", "Doe" );

        Employee actual = newLoader( new FromXmlRulesModule()
        {

            @Override
            protected void loadRules()
            {
                loadXMLRules( getClass().getResource( "extractPropertyNameFromAttribute-rules.xml" ) );
            }

        } )
        .newDigester()
        .parse( getClass().getResource( "../extractPropertyNameFromAttribute.xml" ) );

        assertEquals( expected.getFirstName(), actual.getFirstName() );
        assertEquals( expected.getLastName(), actual.getLastName() );
    }
View Full Code Here


        public void receiveUser(BaseUser user);
    }
   
    public static class InheritanceServiceImpl implements InheritanceService {
        public BaseUser getEmployee() {
            Employee e = new Employee();
            e.setDivision("foo");
            return e;
        }
View Full Code Here

TOP

Related Classes of org.qi4j.regression.qi377.IssueTest$Employee

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.