package org.mitre.synthea.modules;

import org.junit.Test;
import static org.junit.Assert.*;

public class GeneratorTest {
    @Test public void testGeneratorCreatesPeople() throws Exception {
    	int numberOfPeople = 1;
        Generator generator = new Generator(numberOfPeople);
        generator.run();
        assertEquals(numberOfPeople, generator.stats.get("alive").longValue());
        // there may be more than the requested number of people, because we re-generate on death
//        assertTrue(numberOfPeople <= generator.people.size());
    }
}

@@ -52,16 +52,58 @@
 t.Test;%0A
+import org.mitre.synthea.helpers.Config;%0A%0A
 import s
@@ -128,16 +128,16 @@
 sert.*;%0A
-
 %0Apublic 
@@ -257,16 +257,111 @@
 le = 1;%0A
+    %09Config.set(%22generate.database_type%22, %22none%22); // ensure we don't write to a file-based DB%0A
         
@@ -514,24 +514,24 @@
 ngValue());%0A
+
         // t
@@ -620,73 +620,8 @@
 ath%0A
-//        assertTrue(numberOfPeople %3C= generator.people.size());%0A
     

update unit test