Package nz.ac.waikato.modeljunit

Examples of nz.ac.waikato.modeljunit.LookaheadTester


  {
    FsmModel model = new SimpleSet();
    List<Tester> testers = new ArrayList<Tester>();
    testers.add(new RandomTester(model));
    testers.add(new GreedyTester(model));
    testers.add(new LookaheadTester(model));

    for (Tester tester : testers) {
      double average = allTransitions(tester);
      System.out.println(tester.getName()+": "+average+" average.");
    }
View Full Code Here


    public OptionPanelLookahead(String name, String explain, String imgPath) {
        super(name, explain, imgPath);

        if (m_defaultDepth == 0) {
            // find out the default values
            LookaheadTester tmp = new LookaheadTester(new FSM());
            m_defaultDepth = tmp.getDepth();
            m_defaultMaxLength = tmp.getMaxLength();
        }

        this.setLayout(new GridLayout(2, 2));
        add(new JLabel("Lookahead Depth:"));
        m_lookaheadDepth = new JTextField(Integer.toString(m_defaultDepth));
View Full Code Here

        tester.addCoverageMetric(metric);
        return tester;
    }

    public Tester constructLookaheadTester(Project project, CoverageMetric metric) {
        LookaheadTester tester = new LookaheadTester(loadModelClass(project));
        tester.addCoverageMetric(metric);
        //    tester.setDepth(100);
        tester.setMaxLength(WALK_LENGTH);
        return tester;
    }
View Full Code Here

TOP

Related Classes of nz.ac.waikato.modeljunit.LookaheadTester

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.