This library contains test implementation of TERYT as a service - it implements teryt-service-api. It is useful as it doesn't require any configuration or database, has some predefined data and custom sample data may be easily defined using configuration and upload during service startup.

To start working with this TERYT Service start with pl.frati.teryt.service.test.TerytTestServiceConfiguration class. Also note that this configuration is fully compatible with teryt-service-configurator.

Default test data

This are data loaded by default upon XML file presented below. This file may be also used as sample file for data file that will be provided during configuration - simply copy, modify and use with configuration.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<? xml version = "1.0" encoding = "UTF-8" ?>
< teryt >
     < voivodship name = "mazowieckie" code = "14" >
         < poviat name = "płocki" code = "1419" partial = "19" >
             < commune name = "Łąck" code = "1419072" partial = "072" type = "RURAL" >
                 < city name = "Nowe Rumunki" code = "0569616" />
                 < city name = "Zofiówka" code = "0569770" />
                 < city name = "Korzeń Rządowy" code = "0569510" />
             </ commune >
             < commune name = "Wyszogród" code = "1419154" partial = "154" type = "URBAN_RURAL_URBAN_PART" >
                 < city name = "Wyszogród" code = "0969356" >
                     < part name = "Kępa Wyszogrodzka" code = "0969362" type = "COMMON" simcKind = "99" />
                     < part name = "Rybaki" code = "0969379" type = "COMMON" simcKind = "99" />
                     < part name = "Zamieście" code = "0969385" type = "COMMON" simcKind = "99" />
                 </ city >
             </ commune >
             < commune name = "Drobin" code = "1419054" type = "URBAN_RURAL_URBAN_PART" >
                 < city name = "Drobin" code = "0563223" >
                     < part name = "Drobin Pierwszy" code = "0563246" type = "COMMON" simcKind = "99" />
                     < part name = "Drobin Drugi" code = "0563230" type = "COMMON" simcKind = "99" />
                 </ city >
             </ commune >
         </ poviat >
         
         < poviat name = "ciechanowski" code = "1402" partial = "02" >
             < commune name = "Ciechanów" code = "1402011" partial = "011" type = "URBAN" >
                 < city name = "Ciechanów" code = "0930414" >
                     < part name = "Aleksandrówka" code = "0930420" type = "COMMON" simcKind = "99" />
                     < part name = "Bielin" code = "0930437" type = "COMMON" simcKind = "99" />
                     < part name = "Gostkowo" code = "0930443" type = "COMMON" simcKind = "99" />
                     < part name = "Gostków" code = "0930450" type = "COMMON" simcKind = "99" />
                 </ city >
             </ commune >
             < commune name = "Regimin" code = "1402082" partial = "082" type = "RURAL" >
                 < city name = "Grzybowo" code = "0124481" />
                 < city name = "Zeńbok" code = "0124831" />
                 < city name = "Lipa" code = "0124647" />
             </ commune >
             < commune name = "Sońsk" code = "1402092" partial = "092" type = "RURAL" >
                 < city name = "Pękawka" code = "0126356" />
                 < city name = "Szwejki" code = "0126439" />
                 < city name = "Strusinek" code = "0126422" />
                 < city name = "Łopacin" code = "0126296" />
             </ commune >
         </ poviat >
         
         < poviat name = "Warszawa" code = "1465" partial = "65" >
             < commune name = "Warszawa" code = "1465011" partial = "011" type = "URBAN" >
                 < city name = "Warszawa" code = "0918123" >
                     < part name = "Bemowo" code = "0988780" type = "DISTRICT" simcKind = "98" />
                     < part name = "Białołęka" code = "0988796" type = "DISTRICT" simcKind = "98" />
                     < part name = "Bielany" code = "0988804" type = "DISTRICT" simcKind = "98" />
                     < part name = "Mokotów" code = "0918130" type = "DISTRICT" simcKind = "98" />
                 </ city >
             </ commune >
         </ poviat >
     </ voivodship >
</ teryt >

Back to top

Version: 3.1.0. Last Published: 2016-04-29 15:48.

Reflow Maven skin by Andrius Velykis.