Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-11-28 04:42:56 -0500
committerMarkus Tiede2014-11-28 04:42:56 -0500
commitff6f8e629d3c7a22e0aaa8766354e447640f2c5a (patch)
tree8d2c2520db8a274ee59fd46f366b20230be782b1 /org.eclipse.jubula.toolkit.ios.api
parentaba93ec8d78d5ef6c2742a0f1d2a597f5bb264df (diff)
downloadorg.eclipse.jubula.core-ff6f8e629d3c7a22e0aaa8766354e447640f2c5a.tar.gz
org.eclipse.jubula.core-ff6f8e629d3c7a22e0aaa8766354e447640f2c5a.tar.xz
org.eclipse.jubula.core-ff6f8e629d3c7a22e0aaa8766354e447640f2c5a.zip
Sprint task - add basic <toolkit>AUTConfigurations for swing, javafx, HTML, iOS, win, winapps - part 4: iOS
Diffstat (limited to 'org.eclipse.jubula.toolkit.ios.api')
-rw-r--r--org.eclipse.jubula.toolkit.ios.api/META-INF/MANIFEST.MF5
-rw-r--r--org.eclipse.jubula.toolkit.ios.api/src/org/eclipse/jubula/toolkit/ios/config/IOSAUTConfiguration.java77
2 files changed, 80 insertions, 2 deletions
diff --git a/org.eclipse.jubula.toolkit.ios.api/META-INF/MANIFEST.MF b/org.eclipse.jubula.toolkit.ios.api/META-INF/MANIFEST.MF
index 5f24437b1..6ddbfda50 100644
--- a/org.eclipse.jubula.toolkit.ios.api/META-INF/MANIFEST.MF
+++ b/org.eclipse.jubula.toolkit.ios.api/META-INF/MANIFEST.MF
@@ -10,9 +10,10 @@ Bundle-ClassPath: .
Require-Bundle: org.apache.commons.lang;bundle-version="[2.4.0,3.0.0)",
org.eclipse.jdt.annotation;bundle-version="[1.1.0,2.0.0)",
org.eclipse.jubula.toolkit.api;bundle-version="[3.0.0,3.1.0)",
- org.eclipse.jubula.toolkit.api.gen;resolution:=optional;bundle-version="[3.0.0,3.1.0)",
+ org.eclipse.jubula.client.api;bundle-version="[3.0.0,3.1.0)",
org.eclipse.jubula.toolkit.base.api;bundle-version="[3.0.0,3.1.0)",
- org.eclipse.jubula.toolkit.concrete.api;bundle-version="[3.0.0,3.1.0)",
org.eclipse.jubula.toolkit.mobile.api;bundle-version="[3.0.0,3.1.0)",
org.eclipse.jubula.tools;bundle-version="[3.0.0,3.1.0)",
+ org.eclipse.jubula.toolkit.api.gen;resolution:=optional;bundle-version="[3.0.0,3.1.0)",
+ org.eclipse.jubula.toolkit.concrete.api;bundle-version="[3.0.0,3.1.0)",
org.eclipse.jubula.communication;bundle-version="[3.0.0,3.1.0)"
diff --git a/org.eclipse.jubula.toolkit.ios.api/src/org/eclipse/jubula/toolkit/ios/config/IOSAUTConfiguration.java b/org.eclipse.jubula.toolkit.ios.api/src/org/eclipse/jubula/toolkit/ios/config/IOSAUTConfiguration.java
new file mode 100644
index 000000000..6a9e9e998
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.api/src/org/eclipse/jubula/toolkit/ios/config/IOSAUTConfiguration.java
@@ -0,0 +1,77 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BREDEX GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.toolkit.ios.config;
+
+import org.apache.commons.lang.Validate;
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
+import org.eclipse.jubula.toolkit.base.config.AbstractOSAUTConfiguration;
+import org.eclipse.jubula.tools.internal.constants.AutConfigConstants;
+import org.eclipse.jubula.tools.internal.constants.CommandConstants;
+import org.eclipse.jubula.tools.internal.constants.ToolkitConstants;
+
+/**
+ * @author BREDEX GmbH
+ * @noextend This class is not intended to be extended by clients.
+ */
+public class IOSAUTConfiguration extends AbstractOSAUTConfiguration {
+ /** the remote host name */
+ @NonNull private String m_remoteHostName;
+ /** the remote port number */
+ private int m_remotePort;
+
+ /**
+ * Constructor
+ *
+ * @param name
+ * the name
+ * @param autID
+ * the AUT ID
+ * @param workingDir
+ * the working directory
+ * @param remoteHostName
+ * the remote device host name to connect to
+ * @param remoteHostPort
+ * the remote device port number to connect to
+ */
+ public IOSAUTConfiguration(
+ @Nullable String name,
+ @NonNull String autID,
+ @NonNull String workingDir,
+ @NonNull String remoteHostName,
+ int remoteHostPort) {
+ super(name, autID, workingDir);
+
+ Validate.notNull(remoteHostName, "The remote host name must not be null"); //$NON-NLS-1$
+ m_remoteHostName = remoteHostName;
+
+ m_remotePort = remoteHostPort;
+
+ // Toolkit specific information
+ add(AutConfigConstants.AUT_HOST, remoteHostName);
+ add(AutConfigConstants.AUT_HOST_PORT, String.valueOf(remoteHostPort));
+ add(ToolkitConstants.ATTR_TOOLKITID, CommandConstants.IOS_TOOLKIT);
+ }
+
+ /**
+ * @return the remoteHostName
+ */
+ public String getRemoteHostName() {
+ return m_remoteHostName;
+ }
+
+ /**
+ * @return the remotePort
+ */
+ public int getRemotePort() {
+ return m_remotePort;
+ }
+} \ No newline at end of file

Back to the top