blob: e286eaed3cb0146fc3e6eb488c650e2e9988d4cd [file] [log] [blame]
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* A Simple LaunchingConnector used by
* nsk/jdi/PlugConnectors/LaunchConnector/plugLaunchConnect002 test
*/
package nsk.jdi.PlugConnectors.LaunchConnector.plugLaunchConnect002.connectors;
import nsk.share.jdi.*;
import com.sun.jdi.*;
import com.sun.jdi.connect.*;
import java.util.*;
public class PlugLaunchConnector002 extends PlugConnectors implements LaunchingConnector {
static String plugLaunchConnectorName = "PlugLaunchConnector002_Name";
static String plugLaunchConnectorDescription = "PlugLaunchConnector002_Description";
static Transport plugLaunchConnectorTransport = new PlugConnectorsTransport("PlugLaunchConnector002_Transport");
static Map<java.lang.String,com.sun.jdi.connect.Connector.Argument> plugLaunchConnectorDefaultArguments = new HashMap<String, Connector.Argument>();
static Map<java.lang.String,com.sun.jdi.connect.Connector.Argument> prepareConnectorDefaultArguments() {
String plugLaunchConnectorStringArgumentKey = "PlugLaunchConnector002_StringArgument_Key";
Connector.StringArgument testStringArgument = new TestStringArgument(
"PlugLaunchConnector002_StringArgument_Name",
"PlugLaunchConnector002_StringArgument_Label",
"PlugLaunchConnector002_StringArgument_Description",
"PlugLaunchConnector002_StringArgument_Value",
true // mustSpecify
);
plugLaunchConnectorDefaultArguments.put(plugLaunchConnectorStringArgumentKey, testStringArgument);
String plugLaunchConnectorIntegerArgumentKey = "PlugLaunchConnector002_IntegerArgument_Key";
Connector.IntegerArgument testIntegerArgument = new TestIntegerArgument(
"PlugLaunchConnector002_IntegerArgument_Name",
"PlugLaunchConnector002_IntegerArgument_Label",
"PlugLaunchConnector002_IntegerArgument_Description",
555555, // IntegerArgument_Value",
111111, // IntegerArgument_Min",
999999, // IntegerArgument_Max",
true // mustSpecify
);
plugLaunchConnectorDefaultArguments.put(plugLaunchConnectorIntegerArgumentKey, testIntegerArgument);
String plugLaunchConnectorBooleanArgumentKey = "PlugLaunchConnector002_BooleanArgument_Key";
Connector.BooleanArgument testBooleanArgument = new TestBooleanArgument(
"PlugLaunchConnector002_BooleanArgument_Name",
"PlugLaunchConnector002_BooleanArgument_Label",
"PlugLaunchConnector002_BooleanArgument_Description",
true, // BooleanArgument_Value",
true // mustSpecify
);
plugLaunchConnectorDefaultArguments.put(plugLaunchConnectorBooleanArgumentKey, testBooleanArgument);
String plugLaunchConnectorSelectedArgumentKey = "PlugLaunchConnector002_SelectedArgument_Key";
List<String> selectedArgumentChoices = new ArrayList<String>();
selectedArgumentChoices.add("PlugLaunchConnector002_SelectedArgument_Value_0");
selectedArgumentChoices.add("PlugLaunchConnector002_SelectedArgument_Value");
selectedArgumentChoices.add("PlugLaunchConnector002_SelectedArgument_Value_1");
Connector.SelectedArgument testSelectedArgument = new TestSelectedArgument(
"PlugLaunchConnector002_SelectedArgument_Name",
"PlugLaunchConnector002_SelectedArgument_Label",
"PlugLaunchConnector002_SelectedArgument_Description",
"PlugLaunchConnector002_SelectedArgument_Value",
selectedArgumentChoices, // List of choices,
true // mustSpecify
);
plugLaunchConnectorDefaultArguments.put(plugLaunchConnectorSelectedArgumentKey, testSelectedArgument);
return plugLaunchConnectorDefaultArguments;
} // end of prepareConnectorDefaultArguments() method
public PlugLaunchConnector002() {
super(plugLaunchConnectorName,
plugLaunchConnectorDescription,
plugLaunchConnectorTransport,
prepareConnectorDefaultArguments());
}
} // end of PlugLaunchConnector002 class