Package org.jsurveylib

Examples of org.jsurveylib.ClientSurvey


        hasArray(t, new String[] {"P", "1", "Question Types"});
    }

    @Test
    public void buttons() {
        ClientSurvey cs = new GettingStarted().getSurvey();
        PageTranslator pt = new PageTranslator((Survey) cs);
        String[][] t = pt.translate();
        hasArray(t, new String[] {"B", "P", "F"})//disabled previous
        hasArray(t, new String[] {"B", "N", "T"})//enabled next
        hasArray(t, new String[] {"B", "F", "F"})//disabled finished
View Full Code Here


        hasArray(t, new String[] {"B", "F", "F"})//disabled finished
    }

    @Test
    public void labels() {
        ClientSurvey cs = new GettingStarted().getSurvey();
        PageTranslator pt = new PageTranslator((Survey) cs);
        String[][] t = pt.translate();
        hasArray(t, new String[] {"L", "If you see this, you are seeing your first <a href=\"http://sourceforge.net/projects/rydia/\">Rydia</a> survey.\n" +
                "        If you <br/>click on the word <b>\"Rydia\"</b>, it will take you <br/>to the Rydia homepage."});
        hasArray(t, new String[] {"L", "Move to the next page by clicking the <b>\"Next\"</b> button or clicking <a href=\"page://1\">this</a> link."});
View Full Code Here

        hasArray(t, new String[] {"L", "Move to the next page by clicking the <b>\"Next\"</b> button or clicking <a href=\"page://1\">this</a> link."});
    }

    @Test
    public void questions() {
        ClientSurvey cs = new GettingStarted().getSurvey();
        ((Survey) cs).goToNextPage();   //this is the page with the questions
        PageTranslator pt = new PageTranslator((Survey) cs);
        String[][] t = pt.translate();       
        hasArray(t, new String[]{"Q", "CB", "checkbox", "A Checkbox:", "F", "unchecked", "T", "T", "T", ""});
        hasArray(t, new String[]{"Q", "RB", "verticalRadioButtons", "Vertical Radio Buttons:", "F", "", "T", "T", "T", "",
View Full Code Here

TOP

Related Classes of org.jsurveylib.ClientSurvey

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.