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