Package statechum.Helper

Examples of statechum.Helper.whatToRun


public class TestDrawGraphs {

  @Test
  public void testVectorToRFail()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      DrawGraphs.vectorToR(new LinkedList<String>(),false);
    }},IllegalArgumentException.class,"empty");
  }
View Full Code Here


  }

  @Test
  public void testBoxPlotToStringFail1()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      DrawGraphs.boxPlotToString(new LinkedList<List<Double>>(), new LinkedList<String>(),new LinkedList<String>(),null);
    }},IllegalArgumentException.class,"empty");
  }
View Full Code Here

  public void testBoxPlotToStringFail2()
  {
    final List<List<Double>> data = new LinkedList<List<Double>>();
    data.add(Arrays.asList(new Double[]{4.,5.,5.}));
    data.add(Arrays.asList(new Double[]{4.,5.,5.}));
    checkForCorrectException(new whatToRun() { public @Override void run() {
      DrawGraphs.boxPlotToString(data, new LinkedList<String>(),new LinkedList<String>(),null);
    }},IllegalArgumentException.class,"mismatch");
  }
View Full Code Here

  @Test
  public void testBoxPlotToStringFail3()
  {
    final List<List<Double>> data = new LinkedList<List<Double>>();
    data.add(Arrays.asList(new Double[]{4.,5.,5.}));
    checkForCorrectException(new whatToRun() { public @Override void run() {
      DrawGraphs.boxPlotToString(data, new LinkedList<String>(),new LinkedList<String>(),null);
    }},IllegalArgumentException.class,"not used");
  }
View Full Code Here

  public static final File testDir = new File(GlobalConfiguration.getConfiguration().getProperty(G_PROPERTIES.TEMP),"__TestDrawGraphs__");

  @Test
  public void testBagPlotToStringFail1()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      DrawGraphs.datasetToString("bagplot",new LinkedList<List<Double>>(), new LinkedList<Double>(),null);
    }},IllegalArgumentException.class,"empty");
  }
View Full Code Here

  public void testBagPlotToStringFail2()
  {
    final List<List<Double>> data = new LinkedList<List<Double>>();
    data.add(Arrays.asList(new Double[]{4.,5.,5.}));
    data.add(Arrays.asList(new Double[]{4.,5.,5.}));
    checkForCorrectException(new whatToRun() { public @Override void run() {
      DrawGraphs.datasetToString("bagplot",data, Arrays.asList(new Double[]{6.7}),null);
    }},IllegalArgumentException.class,"mismatch");
  }
View Full Code Here

  @Test
  public void testPlotFail1()
  {
    final DrawGraphs gr = new DrawGraphs();
    final File output = new File(testDir,"out.pdf");
    checkForCorrectException(new whatToRun() { public @Override void run() {
      gr.drawPlot(Collections.singletonList(""),0,1,output);
    }},IllegalArgumentException.class,"horizontal");
  }
View Full Code Here

  @Test
  public void testPlotFail2()
  {
    final DrawGraphs gr = new DrawGraphs();
    final File output = new File(testDir,"out.pdf");
    checkForCorrectException(new whatToRun() { public @Override void run() {
      gr.drawPlot(Collections.singletonList(""),1,0,output);
    }},IllegalArgumentException.class,"vertical");
  }
View Full Code Here

 
  @Test
  public void testGenerateGraphFail1a()
  {
    final RGraph<Integer> g=new RBoxPlot<Integer>("axisX", "axisY", new File("someName"));
    checkForCorrectException(new whatToRun() { public @Override void run() {
      g.getDrawingCommand();
    }},IllegalArgumentException.class,"empty");
  }
View Full Code Here

 
  @Test
  public void testGenerateGraphFail1b()
  {
    final RGraph<Double> g=new RBagPlot("axisX", "axisY", new File("someName"));
    checkForCorrectException(new whatToRun() { public @Override void run() {
      g.getDrawingCommand();
    }},IllegalArgumentException.class,"empty");
  }
View Full Code Here

TOP

Related Classes of statechum.Helper.whatToRun

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.