Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.HashedMap


        assertEqualsStatus.Reserved, task1.getTaskData().getStatus() );
        assertEquals( users.get( "darth" ), task1.getTaskData().getActualOwner() );     
    }    
         
    public void testSkipFromReady() {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { skipable = true} ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ] }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
           
View Full Code Here


        assertEqualsStatus.Obsolete, task1.getTaskData().getStatus() );
        assertNulltask1.getTaskData().getActualOwner() );                 
    }   
   
    public void testSkipFromReserved() {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { skipable = true} ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ] }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
           
View Full Code Here

        assertEqualsStatus.Obsolete, task1.getTaskData().getStatus() );
        assertEquals( users.get( "darth" ), task1.getTaskData().getActualOwner() );                 
    }    
   
    public void testDelegateFromReady() throws Exception {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertEquals( users.get( "tony" ), task2.getTaskData().getActualOwner() );
        assertEqualsStatus.Ready, task2.getTaskData().getStatus() );            
    }    
   
    public void testDelegateFromReserved() throws Exception {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertEquals( users.get( "tony" ), task2.getTaskData().getActualOwner() );
        assertEqualsStatus.Ready, task2.getTaskData().getStatus() );            
    }    
   
    public void testDelegateFromReservedWithIncorrectUser() throws Exception {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertEquals( users.get( "darth" ), task2.getTaskData().getActualOwner() );
        assertEqualsStatus.Reserved, task2.getTaskData().getStatus() );            
   
   
    public void testForwardFromReady() throws Exception {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertNull( task2.getTaskData().getActualOwner() );
        assertEqualsStatus.Ready, task2.getTaskData().getStatus() );            
   
   
    public void testForwardFromReserved() throws Exception {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertNull( task2.getTaskData().getActualOwner() );
        assertEqualsStatus.Ready, task2.getTaskData().getStatus() );            
    }    
   
    public void testForwardFromReservedWithIncorrectUser() throws Exception {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertEquals( users.get( "darth" ), task2.getTaskData().getActualOwner() );
        assertEqualsStatus.Reserved, task2.getTaskData().getStatus() );            
    }     
   
    public void testComplete() {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

        assertEqualsStatus.Completed, task2.getTaskData().getStatus() );
        assertEquals( users.get( "darth" ), task2.getTaskData().getActualOwner() );                 
    }
       
    public void testCompleteWithIncorrectUser() {
        Map  vars = new HashedMap();    
        vars.put( "users", users );
        vars.put( "groups", groups );       
        vars.put( "now", new Date() );
       
        // One potential owner, should go straight to state Reserved
        String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ], users['darth'] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.map.HashedMap

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.