Package com.semagia.atomico.dm

Examples of com.semagia.atomico.dm.IAuthor


            // noop.
        }
    }

    public void testEquals() {
        final IAuthor author = new Author();
        assertEquals(author, author);
    }
View Full Code Here


        assertEquals(author, author);
    }

    public void testEquals2() {
        final String name = "name";
        final IAuthor author = new Author(name);
        assertEquals(author, author);
    }
View Full Code Here

        assertEquals(author, author);
    }

    public void testEquals3() {
        final String name = "name";
        final IAuthor author1 = new Author(name);
        final IAuthor author2 = new Author(name);
        assertEquals(author1, author2);
        assertEquals(author1.hashCode(), author2.hashCode());
    }
View Full Code Here

        assertEquals(author1, author2);
        assertEquals(author1.hashCode(), author2.hashCode());
    }

    public void testEquals4() {
        final IAuthor author1 = new Author("name1");
        final IAuthor author2 = new Author("name2");
        assertFalse(author1.equals(author2));
    }
View Full Code Here

TOP

Related Classes of com.semagia.atomico.dm.IAuthor

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.