Examples of whatToRun


Examples of statechum.Helper.whatToRun

  @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>(),"green",null);
    }},IllegalArgumentException.class,"not used");
  }
View Full Code Here

Examples of statechum.Helper.whatToRun

  public static final File testDir = new File("resources","__TestDrawGraphs__");

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

Examples of statechum.Helper.whatToRun

  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.bagPlotToString(data, Arrays.asList(new Double[]{6.7}),null);
    }},IllegalArgumentException.class,"mismatch");
  }
View Full Code Here

Examples of statechum.Helper.whatToRun

  @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("",0,1,output);
    }},IllegalArgumentException.class,"horizontal");
  }
View Full Code Here

Examples of statechum.Helper.whatToRun

  @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("",1,0,output);
    }},IllegalArgumentException.class,"vertical");
  }
View Full Code Here

Examples of statechum.Helper.whatToRun

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

Examples of statechum.Helper.whatToRun

 
  @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

Examples of statechum.Helper.whatToRun

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

Examples of statechum.Helper.whatToRun

  /** Missing main element. */
  @Test
  public final void testLearnerEvaluation3()
  {
    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(removeTagFromString(xmlData,StatechumXML.ELEM_EVALUATIONDATA).getBytes()),false);
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ProgressDecorator.readLearnerEvaluationConfiguration(loader.expectNextElement(statechum.analysis.learning.observers.TestRecordProgressDecorator.junkTag));
    }},IllegalArgumentException.class,"expecting to load learner evaluation data");
  }
View Full Code Here

Examples of statechum.Helper.whatToRun

    learnerConfig.removeChild(graphToRemove);
   
    dumper.topElement.appendChild(learnerConfig);dumper.close();xmlData = output.toString();
   
    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ProgressDecorator.readLearnerEvaluationConfiguration(loader.expectNextElement(StatechumXML.ELEM_EVALUATIONDATA.name()));
    }}, IllegalArgumentException.class,"missing graph");
 
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.