Package org.apache.woden.ant

Examples of org.apache.woden.ant.ObjectIdTable


    public void testId() {
       
        String s1 = "s1";
        String s2 = "s2";
       
        ObjectIdTable oit = new ObjectIdTable();
       
        int id1 = oit.id(s1);
        assertTrue("Same object, same id", id1 == oit.id(s1));
       
        int id2 = oit.id(s2);
        assertTrue("Different object, different id", id1 != id2);
       
        assertTrue("Same object, same id, again", id2 == oit.id(s2));
    }
View Full Code Here


    public void testId() {
       
        String s1 = "s1";
        String s2 = "s2";
       
        ObjectIdTable oit = new ObjectIdTable();
       
        int id1 = oit.id(s1);
        assertTrue("Same object, same id", id1 == oit.id(s1));
       
        int id2 = oit.id(s2);
        assertTrue("Different object, different id", id1 != id2);
       
        assertTrue("Same object, same id, again", id2 == oit.id(s2));
    }
View Full Code Here

TOP

Related Classes of org.apache.woden.ant.ObjectIdTable

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.