Package org.happyfaces.domain

Examples of org.happyfaces.domain.TestEntity


        test.setStringField("stringField");
        test.setIntegerField(1);
        test.setLongField(2L);
        test.setBigDecimalField(BigDecimal.TEN);
        test.setDoubleField(2.2);
        TestEntity testEntity = new TestEntity();
        testEntity.setId(2L);
        test.setEntityField(testEntity);
       
        TestClass copy = ObjectUtils.copy(test, TestClass.class);
       
        Assert.assertEquals(test.getStringField(), copy.getStringField());
View Full Code Here


        test.setStringField("stringField");
        test.setIntegerField(1);
        test.setLongField(2L);
        test.setBigDecimalField(BigDecimal.TEN);
        test.setDoubleField(2.2);
        TestEntity testEntity = new TestEntity();
        testEntity.setId(2L);
        test.setEntityField(testEntity);
       
        TestClass2 copy = new TestClass2();
       
        ObjectUtils.copy(test, copy, true);
View Full Code Here

        test1.setStringField("stringField");
        test1.setIntegerField(1);
        test1.setLongField(2L);
        test1.setBigDecimalField(BigDecimal.TEN);
        test1.setDoubleField(2.2);
        TestEntity testEntity = new TestEntity();
        testEntity.setId(2L);
        test1.setEntityField(testEntity);
       
        TestClass test2 = new TestClass();
        test2.setStringField("stringField");
        test2.setIntegerField(1);
        test2.setLongField(2L);
        test2.setBigDecimalField(BigDecimal.TEN);
        test2.setDoubleField(2.2);
        TestEntity testEntity2 = new TestEntity();
        testEntity2.setId(1L);
        test2.setEntityField(testEntity2);
       
        List<TestClass> list = new ArrayList<ObjectUtilsTest.TestClass>();
        list.add(test1);
        list.add(test2);
View Full Code Here

    }

    @Test
    public void testGetAsString() {
        EntityConverter converter = new EntityConverter();
        TestEntity testEntity = new TestEntity();
        testEntity.setId(110L);
        Assert.assertEquals("110_org.happyfaces.domain.TestEntity", converter.getAsString(null, null, testEntity));
    }
View Full Code Here

    private static class DummyVariableService implements IVariableTypeService {

        @Override
        public BaseEntity findById(Class<? extends IEntity> entityClass, Long id) {
            TestEntity entity = new TestEntity();
            entity.setId(109L);
            return entity;
        }
View Full Code Here

        }

        @Override
        public TestEntity findById(Long id) {
            if (id == 22L) {
                TestEntity entity = new TestEntity();
                entity.setId(22L);
                return entity;
            }
            return null;
        }
View Full Code Here

TOP

Related Classes of org.happyfaces.domain.TestEntity

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.