Package com.volantis.shared.inhibitor

Examples of com.volantis.shared.inhibitor.ImmutableInhibitor


     * <p>This test ensures that the original and created objects have the same hashcode.
     * </p>
     */
    public void testCreateImmutableFromMutableReturnsSameHashcode() {
        MutableInhibitor mutableMDO = getMutableInhibitor();
        ImmutableInhibitor immutableMDO = mutableMDO.createImmutable();

        assertEquals("The original mutable object and the created immutable object " +
                "should shave the same hashcode",
                mutableMDO.hashCode(), immutableMDO.hashCode());
    }
View Full Code Here


     * {@link #testEqualsAndHashcodeImplementedCorrectly} which ensures that the equals
     * method returns valid results.</p>
     */
    public void testCreateImmutableFromMutableReturnsEqualObject() {
        MutableInhibitor mutableMDO = getMutableInhibitor();
        ImmutableInhibitor immutableMDO = mutableMDO.createImmutable();

        assertEquals("The original mutable object and the created immuatable object " +
                "should be equal", mutableMDO, immutableMDO);
    }
View Full Code Here

     *
     * <p>This test ensures that the original and the created objects are the same object.
     * </p>
     */
    public final void testCreateImmutableFromImmutableReturnsSameObject() {
        ImmutableInhibitor originalImmutableMDO = getImmutableInhibitor();
        ImmutableInhibitor createdImmutableMDO = originalImmutableMDO.
                createImmutable();

        assertSame("A created immutable object should be the same as the original " +
                "immuatable object", originalImmutableMDO, createdImmutableMDO);
    }
View Full Code Here

     *
     * <p>This test ensures that the original and created objects have the same
     * hashcode.</p>
     */
    public void testCreateMutableFromImmutableReturnsSameHashcode() {
        ImmutableInhibitor immutableMDO = getImmutableInhibitor();
        MutableInhibitor mutableMDO = immutableMDO.
                createMutable();

        assertEquals("The original immutable object and the created muatable object " +
                "should have the same hashcodes",
                immutableMDO.hashCode(), mutableMDO.hashCode());
    }
View Full Code Here

     * is achieved by using the equals() method. There is a separate test
     * {@link #testEqualsAndHashcodeImplementedCorrectly} which ensures that the equals
     * method returns valid results.</p>
     */
    public void testCreateMutableFromImmutableReturnsEqualObject() {
        ImmutableInhibitor immutableMDO = getImmutableInhibitor();
        MutableInhibitor mutableMDO = immutableMDO.
                createMutable();

        assertEquals("The original immutable object and the created muatable object " +
                "should be equal", immutableMDO, mutableMDO);
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.inhibitor.ImmutableInhibitor

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.