Skip to content

Commit

Permalink
Included league string to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Exslims committed Mar 23, 2017
1 parent 74c5525 commit 0d93e70
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ public class TestCasesFrame extends TitledComponentFrame {
private List<String> currency;
private List<String> nickNames;
private List<String> offer;
private String poeTradeTemplate = "2017/02/11 18:40:32 9029890 951 [INFO Client 8980] @From %s: Hi, I would like to buy your %s listed for %d %s in Breach (stash tab \"%d\"; position: left %d, top %d) %s";
private String currencyTemplate = "2017/02/11 18:56:15 9973390 951 [INFO Client 8980] @From %s: Hi, I'd like to buy your %d %s for my %d %s in Breach. %s";
private List<String> leagues;
private String poeTradeTemplate = "2017/02/11 18:40:32 9029890 951 [INFO Client 8980] @From %s: Hi, I would like to buy your %s listed for %d %s in %s (stash tab \"%d\"; position: left %d, top %d) %s";
private String currencyTemplate = "2017/02/11 18:56:15 9973390 951 [INFO Client 8980] @From %s: Hi, I'd like to buy your %d %s for my %d %s %s. %s";

public TestCasesFrame() {
super("MercuryTrade");
items = new ArrayList<>();
currency = new ArrayList<>();
nickNames = new ArrayList<>();
offer = new ArrayList<>();
leagues = new ArrayList<>();

items.add("Wondertrap Velvet Slippers");
items.add("Rain of Arrows");
Expand Down Expand Up @@ -124,6 +126,11 @@ public TestCasesFrame() {
offer.add("offer offer offer offer offer offer offer offer");
offer.add("offer offer");
offer.add("offer");

leagues.add("Standard");
leagues.add("Hardcore Legacy");
leagues.add("Legacy");
leagues.add("Hardcore");
}

@Override
Expand Down Expand Up @@ -167,6 +174,7 @@ public void mousePressed(MouseEvent e) {
items.get(random.nextInt(items.size())),
random.nextInt(200),
currency.get(random.nextInt(currency.size())),
leagues.get(random.nextInt(leagues.size())),
random.nextInt(30),
random.nextInt(12) + 1,
random.nextInt(12) + 1,
Expand All @@ -191,6 +199,7 @@ public void mousePressed(MouseEvent e) {
currency.get(random.nextInt(currency.size())),
random.nextInt(200),
currency.get(random.nextInt(currency.size())),
leagues.get(random.nextInt(leagues.size())),
offer.get(random.nextInt(offer.size()))
));
EventRouter.CORE.fireEvent(new NewWhispersEvent(message));
Expand Down

0 comments on commit 0d93e70

Please sign in to comment.