Examples of HashedMap


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

        taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
        taskSession = taskService.createSession();
        MockUserInfo userInfo = new MockUserInfo();
        taskService.setUserinfo(userInfo);
        Map vars = new HashedMap();

        Reader reader = null;

        try {
            reader = new InputStreamReader(BaseTest.class.getResourceAsStream("LoadUsers.mvel"));
View Full Code Here

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

        client.disconnect();
        server.stop();
    }
   
    public void testNewTaskWithNoPotentialOwners() {
        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() ) { }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

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

        assertEquals( task1.getTaskData().getStatus(), Status.Created );    
        assertNull( task1.getTaskData().getActualOwner() );       
    }

    public void testNewTaskWithSinglePotentialOwner() {
        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' ] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

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

        assertEquals( Status.Reserved, task1.getTaskData().getStatus() );    
        assertEquals( users.get( "bobba" ), task1.getTaskData().getActualOwner() );
    }
   
    public void testNewTaskWithContent() {
        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()) { } ), ";
        str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba' ] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
           
View Full Code Here

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

        Content content = getContentResponseHandler.getContent();
        assertEquals("content", new String(content.getContent()));
    }
   
    public void testClaimWithMultiplePotentialOwners() 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

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

        assertEqualsStatus.Reserved, task2.getTaskData().getStatus() );
        assertEquals( users.get( "darth" ), task2.getTaskData().getActualOwner() );
    }

    public void testStartFromReadyStateWithPotentialOwner() 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

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

        assertEqualsStatus.InProgress, task2.getTaskData().getStatus() );
        assertEquals( users.get( "darth" ), task2.getTaskData().getActualOwner() );       
    }
   
    public void testStartFromReadyStateWithIncorrectPotentialOwner() {
        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

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

        assertEqualsStatus.Ready, task2.getTaskData().getStatus() );
        assertNull( task2.getTaskData().getActualOwner() );       
    }   
   
    public void testStartFromReserved() 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' ] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

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

        assertEquals( Status.InProgress, task2.getTaskData().getStatus() );    
        assertEquals( users.get( "bobba" ), task1.getTaskData().getActualOwner() );       
    }
   
    public void testStartFromReservedWithIncorrectUser() {
        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' ] ], }),";                       
        str += "names = [ new I18NText( 'en-UK', 'This is my task name')] })";
View Full Code Here

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

        assertEquals( Status.Reserved, task2.getTaskData().getStatus() );    
        assertEquals( users.get( "bobba" ), task1.getTaskData().getActualOwner() );       
    }
   
    public void testStop() {
        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
Copyright © 2018 www.massapi.com. 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.