ShowApplicationTest.java revision 869a36e2649ae064c98063cf1e55198488d78d12
1216N/A/**
1216N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1216N/A *
1216N/A * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
1216N/A *
1216N/A * The contents of this file are subject to the terms
1216N/A * of the Common Development and Distribution License
6982N/A * (the License). You may not use this file except in
6982N/A * compliance with the License.
1216N/A *
1216N/A * You can obtain a copy of the License at
1216N/A * https://opensso.dev.java.net/public/CDDLv1.0.html or
1216N/A * opensso/legal/CDDLv1.0.txt
6982N/A * See the License for the specific language governing
6982N/A * permission and limitations under the License.
6982N/A *
6982N/A * When distributing Covered Code, include this CDDL
1216N/A * Header Notice in each file and include the License file
1216N/A * at opensso/legal/CDDLv1.0.txt.
1216N/A * If applicable, add the following below the CDDL Header,
1216N/A * with the fields enclosed by brackets [] replaced by
3232N/A * your own identifying information:
1216N/A * "Portions Copyrighted [year] [name of copyright owner]"
1216N/A *
1216N/A * $Id: ShowApplicationTest.java,v 1.1 2009/08/21 22:27:56 veiming Exp $
1216N/A */
1216N/A
1216N/Apackage com.sun.identity.cli.entitlement;
1216N/A
import com.sun.identity.cli.CLIConstants;
import com.sun.identity.cli.CLIException;
import com.sun.identity.cli.CLIRequest;
import com.sun.identity.cli.IArgument;
import com.sun.identity.entitlement.ApplicationTypeManager;
import org.testng.annotations.Test;
public class ShowApplicationTest extends CLITestImpl {
@Test
public void createApp() throws CLIException {
String[] args = new String[5];
args[0] = "show-appl";
args[1] = CLIConstants.PREFIX_ARGUMENT_LONG +
IArgument.REALM_NAME;
args[2] = "/";
args[3] = CLIConstants.PREFIX_ARGUMENT_LONG +
CreateApplication.PARAM_APPL_NAME;
args[4] = ApplicationTypeManager.URL_APPLICATION_TYPE_NAME;
CLIRequest req = new CLIRequest(null, args, adminToken);
cmdManager.addToRequestQueue(req);
cmdManager.serviceRequestQueue();
}
}