Package org.dayatang.domain.entity

Examples of org.dayatang.domain.entity.Company


        assertFalse(guangdong.notExisted());
    }

    @Test
    public void testHashCode() {
        assertEquals(guangdong.hashCode(), new Company("Guangdong", 1).hashCode());
    }
View Full Code Here


        //类型不同、业务主键相同的对象不等价
        assertFalse(guangdong.equals(financial));
       
        //非业务主键不影响等价性
        guangdong.disable();
        assertTrue(guangdong.equals(new Company("Guangdong", 1)));
       
        //如果a.equals(b),那么b.equals(a)
        assertTrue(new Company("Guangdong", 1).equals(guangdong));
    }
View Full Code Here

TOP

Related Classes of org.dayatang.domain.entity.Company

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.