Package plotter

Examples of plotter.LineChecker.check()


    CountingGraphics g = paint(new Rectangle(24, 176, 10, 10));

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.allow(39, 160, 59, 140);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRemoveFirst2() throws InterruptedException, InvocationTargetException {
View Full Code Here


    CountingGraphics g = paint(new Rectangle(44, 156, 10, 10));

    LineChecker c = new LineChecker();
    c.allow(19, 180, 39, 160);
    c.require(39, 160, 59, 140);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRemoveFirst3() throws InterruptedException, InvocationTargetException {
View Full Code Here

    CountingGraphics g = paint(new Rectangle(24, 176, 10, 10));

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.allow(39, 160, 59, 140);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRemoveFirst4() throws InterruptedException, InvocationTargetException {
View Full Code Here

    CountingGraphics g = paint(new Rectangle(44, 156, 10, 10));

    LineChecker c = new LineChecker();
    c.allow(19, 180, 39, 160);
    c.require(39, 160, 59, 140);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRemoveLast() throws InterruptedException, InvocationTargetException {
View Full Code Here

    CountingGraphics g = paint(new Rectangle(24, 176, 10, 10));

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.allow(39, 160, 59, 140);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRemoveLast2() throws InterruptedException, InvocationTargetException {
View Full Code Here

    LineChecker c = new LineChecker();
    c.allow(19, 180, 39, 160);
    c.require(39, 160, 59, 140);
    c.allow(59, 140, 79, 120);
    c.allow(79, 120, 99, 100);
    c.check(g.getLines());
    int lineCount = g.getLines().size();
    assertTrue(lineCount <= linesPerBox);
    assertEquals(lineCount + 1, g.getPointCount());
  }
View Full Code Here

    CountingGraphics g = paint(new Rectangle(24, 176, 10, 10));

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.allow(39, 160, 59, 140);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRemoveLast4() throws InterruptedException, InvocationTargetException {
View Full Code Here

    LineChecker c = new LineChecker();
    c.allow(19, 180, 39, 160);
    c.require(39, 160, 59, 140);
    c.allow(59, 140, 79, 120);
    c.allow(79, 120, 99, 100);
    c.check(g.getLines());
    int lineCount = g.getLines().size();
    assertTrue(lineCount <= linesPerBox);
    assertEquals(lineCount + 1, g.getPointCount());
  }
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(99, 0, 99, 200);
    c.check(g.getLines());
  }


  public void testPaintSimpleY() throws InterruptedException, InvocationTargetException {
    setupY();
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(0, 100, 200, 100);
    c.check(g.getLines());
  }


  public void testPaintClip() throws InterruptedException, InvocationTargetException {
    setupX();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.