Package com.opera.core.systems.model

Examples of com.opera.core.systems.model.ColorResult


    ScreenWatcherResult result = executeScreenWatcher(builder, timeout);

    ImmutableList.Builder<ColorResult> matches = ImmutableList.builder();
    for (ColorMatch match : result.getColorMatchListList()) {
      matches.add(new ColorResult(match.getId(), match.getCount()));
    }

    return new ScreenCaptureReply(result.getMd5(), matches.build());
  }
View Full Code Here


  public ColorResult result;

  @Test
  public void construction() {
    result = new ColorResult(1, 2);
    assertNotNull(result);
    assertEquals(1, result.getId());
    assertEquals(2, result.getCount());
  }
View Full Code Here

    assertEquals(2, result.getCount());
  }

  @Test
  public void equalityNotSame() {
    result = new ColorResult(1, 2);
    ColorResult secondResult = new ColorResult(3, 4);
    assertNotSame(result, secondResult);
  }
View Full Code Here

    assertNotSame(result, secondResult);
  }

  @Test
  public void equalitySame() {
    result = new ColorResult(1, 2);
    ColorResult secondResult = new ColorResult(1, 2);
    assertEquals(result, secondResult);
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.model.ColorResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.