mobile/android/tests/background/junit3/src/testhelpers/CommandHelpers.java

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /* Any copyright is dedicated to the Public Domain.
michael@0 2 http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0 3
michael@0 4 package org.mozilla.gecko.background.testhelpers;
michael@0 5
michael@0 6 import org.json.simple.JSONArray;
michael@0 7 import org.mozilla.gecko.sync.CommandProcessor.Command;
michael@0 8
michael@0 9 public class CommandHelpers {
michael@0 10
michael@0 11 @SuppressWarnings("unchecked")
michael@0 12 public static Command getCommand1() {
michael@0 13 JSONArray args = new JSONArray();
michael@0 14 args.add("argsA");
michael@0 15 return new Command("displayURI", args);
michael@0 16 }
michael@0 17
michael@0 18 @SuppressWarnings("unchecked")
michael@0 19 public static Command getCommand2() {
michael@0 20 JSONArray args = new JSONArray();
michael@0 21 args.add("argsB");
michael@0 22 return new Command("displayURI", args);
michael@0 23 }
michael@0 24
michael@0 25 @SuppressWarnings("unchecked")
michael@0 26 public static Command getCommand3() {
michael@0 27 JSONArray args = new JSONArray();
michael@0 28 args.add("argsC");
michael@0 29 return new Command("displayURI", args);
michael@0 30 }
michael@0 31
michael@0 32 @SuppressWarnings("unchecked")
michael@0 33 public static Command getCommand4() {
michael@0 34 JSONArray args = new JSONArray();
michael@0 35 args.add("URI of Page");
michael@0 36 args.add("Sender ID");
michael@0 37 args.add("Title of Page");
michael@0 38 return new Command("displayURI", args);
michael@0 39 }
michael@0 40 }

mercurial