Пример #1
0
  private void loadTestSettings() {
    Administratie adm = controller.getAdministratie();

    Persoon piet =
        adm.addPersoon(
            Geslacht.MAN,
            new String[] {"Piet"},
            "Swinkels",
            "",
            new GregorianCalendar(1924, Calendar.APRIL, 23),
            "Den Haag",
            null);
    Persoon teuntje =
        adm.addPersoon(
            Geslacht.VROUW,
            new String[] {"Teuntje"},
            "Vries",
            "de",
            new GregorianCalendar(1927, Calendar.MAY, 5),
            "Doesburg",
            null);
    Gezin teuntjeEnPiet = adm.addOngehuwdGezin(teuntje, piet);
    Persoon gijs =
        adm.addPersoon(
            Geslacht.MAN,
            new String[] {"Gijs", "Jozef"},
            "Swinkels",
            "",
            new GregorianCalendar(1944, Calendar.APRIL, 21),
            "Geldrop",
            teuntjeEnPiet);
    Persoon ferdinand =
        adm.addPersoon(
            Geslacht.MAN,
            new String[] {"Ferdinand", "Karel", "Helene"},
            "Vuiter",
            "de",
            new GregorianCalendar(1901, Calendar.JULY, 14),
            "Amsterdam",
            null);
    Persoon annalouise =
        adm.addPersoon(
            Geslacht.VROUW,
            new String[] {"Annalouise", "Isabel", "Teuntje"},
            "Vuiter",
            "de",
            new GregorianCalendar(1902, Calendar.OCTOBER, 1),
            "Amsterdam",
            null);
    Gezin ferdinandEnAnnalouise =
        adm.addHuwelijk(ferdinand, annalouise, new GregorianCalendar(1921, Calendar.MAY, 5));
    Persoon louise =
        adm.addPersoon(
            Geslacht.VROUW,
            new String[] {"Louise", "Isabel", "Helene"},
            "Vuiter",
            "de",
            new GregorianCalendar(1927, Calendar.JANUARY, 15),
            "Amsterdam",
            ferdinandEnAnnalouise);
    Gezin louiseAlleen = adm.addOngehuwdGezin(louise, null);
    Persoon mary =
        adm.addPersoon(
            Geslacht.VROUW,
            new String[] {"mary"},
            "Vuiter",
            "de",
            new GregorianCalendar(1943, Calendar.MAY, 25),
            "Rotterdam",
            louiseAlleen);
    Gezin gijsEnMary = adm.addOngehuwdGezin(gijs, mary);
    Persoon jaron =
        adm.addPersoon(
            Geslacht.MAN,
            new String[] {"Jaron"},
            "Swinkels",
            "",
            new GregorianCalendar(1962, Calendar.JULY, 22),
            "Velp",
            gijsEnMary);

    saveFile();
  }