/*
 * Copyright 2005 The JA-SIG Collaborative. All rights reserved. See license
 * distributed with this file and available online at
 * http://www.uportal.org/license.html
 */
package org.jasig.cas.web.flow;

import org.springframework.webflow.test.MockRequestContext;

import junit.framework.TestCase;

/**
 * @author Scott Battaglia
 * @version $Revision$ $Date$
 * @since 3.0.4
 */
public class TicketGrantingTicketExistsActionTests extends TestCase {

    private TicketGrantingTicketExistsAction action = new TicketGrantingTicketExistsAction();

    public void testTicketExists() {
        assertEquals("ticketGrantingTicketExists", this.action
            .doExecuteInternal(new MockRequestContext(), "test", "service",
                true, true, true).getId());
    }

    public void testTicketDoesntExists() {
        assertEquals("ticketGrantingTicketExists", this.action
            .doExecuteInternal(new MockRequestContext(), null, "service",
                true, true, true).getId());
    }

}

@@ -829,33 +829,35 @@
   assertEquals(%22
-t
+noT
 icketGrantingTic

test case update to fix assert problem