/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pokus2.backend;

import java.io.IOException;
import pokus2.backend.entities.Question;

import pokus2.backend.entities.Survey;

/**
 *
 * @author peteru
 */
public class SurveyEngineTest {
    public static void main(String[] args) {
        SurveyEngine se = null;
        try {
            se = new SurveyEngine("test.xml");
        } catch (IOException e) {
            System.err.println(e.getMessage());
            System.exit(-1);
        }
        
        Survey s = se.getSurvey(1);
        System.out.println("kekis");
        //se.saveSurvey(0, title, description, questions);
        
    }
}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package survey.backend;

import java.io.IOException;
import survey.backend.entities.Question;

import survey.backend.entities.Survey;

/**
 *
 * @author peteru
 */
public class SurveyEngineTest {
    public static void main(String[] args) {
        SurveyEngine se = null;
        try {
            se = new SurveyEngine("test.xml");
        } catch (IOException e) {
            System.err.println(e.getMessage());
            System.exit(-1);
        }
        
        Survey s = se.getSurvey(1);
        System.out.println("kekis");
        //se.saveSurvey(0, title, description, questions);
        
    }
}

package correction