Package net.hydromatic.optiq.test

Examples of net.hydromatic.optiq.test.JdbcTest$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 net.hydromatic.optiq.test.JdbcTest$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.