package org.lenition.singleton;

import com.google.gson.Gson;
import org.lenition.domain.Quiz;

import static org.junit.Assert.assertTrue;

public class QuizTest {

    @org.junit.Test
    public void testGetQuestions() {
        Gson gson = new Gson();
        for(int i = 1; i <= 40; i++) {
            Quiz quiz = FactbookQuiz.INSTANCE.getQuestions(i);
            String json = (new Gson()).toJson(quiz);
            System.out.println(json);
            Quiz quiz2 = gson.fromJson(json, org.lenition.domain.Quiz.class);
            assertTrue(quiz2.questions.length == i);
        }
    }
}

@@ -89,16 +89,50 @@
 .Quiz;%0A%0A
+import java.util.logging.Logger;%0A%0A
 import s
@@ -192,16 +192,99 @@
 Test %7B%0A%0A
+    private static final Logger log = Logger.getLogger(QuizTest.class.getName());%0A%0A
     @org
@@ -535,26 +535,18 @@
     
-System.out.println
+//log.info
 (jso

Test cleanup.