コード例 #1
0
  @Test
  public void testLogitechIndoorGreen() {
    // Missing 3 shots
    List<Shot> shots =
        findShots(
            "/shotsearcher/logitech-indoor-green.mp4",
            Optional.empty(),
            mockManager,
            config,
            sectorStatuses);

    List<Shot> requiredShots = new ArrayList<Shot>();
    requiredShots.add(new Shot(Color.GREEN, 517.1, 255.3, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 222.9, 259.0, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 509.7, 184.5, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 515.5, 50.6, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 388.3, 85.6, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 216.9, 71.4, 0, 2));

    super.checkShots(collector, shots, requiredShots, new ArrayList<Shot>(), true);
  }
コード例 #2
0
  @Test
  public void testLogitechSafariGreen() {
    // Missing 1 shot
    List<Shot> shots =
        findShots(
            "/shotsearcher/logitech-safari-green.mp4",
            Optional.empty(),
            mockManager,
            config,
            sectorStatuses);

    List<Shot> requiredShots = new ArrayList<Shot>();
    requiredShots.add(new Shot(Color.GREEN, 488.8, 237.0, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 366.8, 253.3, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 239.7, 255.7, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 259.3, 141.1, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 386.8, 185.5, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 522.6, 181.1, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 512.4, 66.0, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 232.0, 79.1, 0, 2));

    super.checkShots(collector, shots, requiredShots, new ArrayList<Shot>(), true);
  }
コード例 #3
0
  @Test
  public void testLogitechOutdoorGreen2() {
    List<Shot> shots =
        findShots(
            "/shotsearcher/logitech-outdoor-green-2.mp4",
            Optional.empty(),
            mockManager,
            config,
            sectorStatuses);

    List<Shot> requiredShots = new ArrayList<Shot>();
    requiredShots.add(new Shot(Color.GREEN, 415.6, 50.7, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 276.5, 70.0, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 116.8, 72.8, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 113.4, 214.6, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 269.2, 207.2, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 409.8, 214.7, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 418.9, 316.4, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 269.0, 309.3, 0, 2));
    requiredShots.add(new Shot(Color.GREEN, 96.8, 300.8, 0, 2));

    super.checkShots(collector, shots, requiredShots, new ArrayList<Shot>(), true);
  }
コード例 #4
0
  @Test
  public void testLogitechSafariRed() {
    List<Shot> shots =
        findShots(
            "/shotsearcher/logitech-safari-red.mp4",
            Optional.empty(),
            mockManager,
            config,
            sectorStatuses);

    List<Shot> requiredShots = new ArrayList<Shot>();
    requiredShots.add(new Shot(Color.RED, 440.5, 90.0, 0, 2));
    requiredShots.add(new Shot(Color.RED, 290.7, 91.6, 0, 2));
    requiredShots.add(new Shot(Color.RED, 140.4, 94.4, 0, 2));
    requiredShots.add(new Shot(Color.RED, 129.3, 193.0, 0, 2));
    requiredShots.add(new Shot(Color.RED, 290.2, 191.7, 0, 2));
    requiredShots.add(new Shot(Color.RED, 448.7, 200.7, 0, 2));
    requiredShots.add(new Shot(Color.RED, 437.5, 299.0, 0, 2));
    requiredShots.add(new Shot(Color.RED, 288.4, 299.2, 0, 2));
    requiredShots.add(new Shot(Color.RED, 137.4, 293.9, 0, 2));

    super.checkShots(collector, shots, requiredShots, new ArrayList<Shot>(), true);
  }
コード例 #5
0
  @Test
  public void testLogitechOutdoorRed() {
    List<Shot> shots =
        findShots(
            "/shotsearcher/logitech-outdoor-red.mp4",
            Optional.empty(),
            mockManager,
            config,
            sectorStatuses);

    List<Shot> requiredShots = new ArrayList<Shot>();
    requiredShots.add(new Shot(Color.RED, 432.6, 74.4, 0, 2));
    requiredShots.add(new Shot(Color.RED, 293.4, 79.0, 0, 2));
    requiredShots.add(new Shot(Color.RED, 131.5, 72.5, 0, 2));
    requiredShots.add(new Shot(Color.RED, 131.7, 174.8, 0, 2));
    requiredShots.add(new Shot(Color.RED, 295.6, 153.4, 0, 2));
    requiredShots.add(new Shot(Color.RED, 446.3, 172.5, 0, 2));
    requiredShots.add(new Shot(Color.RED, 418.8, 279.6, 0, 2));
    requiredShots.add(new Shot(Color.RED, 289.7, 296.1, 0, 2));
    requiredShots.add(new Shot(Color.RED, 119.1, 287.5, 0, 2));

    super.checkShots(collector, shots, requiredShots, new ArrayList<Shot>(), false);
  }