Project

General

Profile

« Previous | Next » 

Revision 468cd076

Added by Andreas Müller over 2 years ago

cleanup

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceSearchTest.java
87 87

  
88 88
    private static Logger logger = Logger.getLogger(TaxonServiceSearchTest.class);
89 89

  
90
    private static final int BENCHMARK_ROUNDS = 300;
91

  
90 92
    private static final UUID ABIES_BALSAMEA_UUID = UUID.fromString("f65d47bd-4f49-4ab1-bc4a-bc4551eaa1a8");
91 93
    private static final UUID ABIES_ALBA_UUID = UUID.fromString("7dbd5810-a3e5-44b6-b563-25152b8867f4");
92 94
    private static final UUID CLASSIFICATION_UUID = UUID.fromString("2a5ceebb-4830-4524-b330-78461bf8cb6b");
......
100 102
    private static final UUID DESC_ABIES_ALBA_UUID = UUID.fromString("ec8bba03-d993-4c85-8472-18b14942464b");
101 103
    private static final UUID DESC_ABIES_KAWAKAMII_SEC_KOMAROV_UUID = UUID.fromString("e9d8c2fd-6409-46d5-9c2e-14a2bbb1b2b1");
102 104

  
103

  
104 105
    private static final int NUM_OF_NEW_RADOM_ENTITIES = 1000;
105 106

  
106 107
    private boolean includeUnpublished = true;
107 108

  
108

  
109

  
110 109
    @SpringBeanByType
111 110
    private ITaxonService taxonService;
112 111
    @SpringBeanByType
......
127 126
    @SpringBeanByType
128 127
    private ICdmMassIndexer indexer;
129 128

  
130

  
131
    private static final int BENCHMARK_ROUNDS = 300;
132

  
133 129
    private Set<Class<? extends CdmBase>> typesToIndex = null;
134 130

  
135 131
    private NamedArea germany;
136
    private NamedArea france ;
137
    private NamedArea russia ;
138
    private NamedArea canada ;
132
    private NamedArea france;
133
    private NamedArea russia;
134
    private NamedArea canada;
139 135

  
140 136
    @Before
141 137
    public void setUp() throws Exception {
......
158 154
        assertNotNull("nameService should exist", nameService);
159 155
    }
160 156

  
161

  
162 157
    @SuppressWarnings("rawtypes")
163 158
    @Test
164 159
    @DataSet
......
184 179
        Assert.assertEquals("Expecting 8 entities", 8, pager.getCount().intValue());
185 180
    }
186 181

  
187

  
188 182
    @SuppressWarnings("rawtypes")
189 183
    @Test
190 184
    @DataSet
......
213 207
        pager = taxonService.findByDescriptionElementFullText(CommonTaxonName.class, "Wei"+UTF8.SHARP_S+"tanne", null, subtree, null,
214 208
                Arrays.asList(new Language[] { Language.RUSSIAN() }), false, null, null, null, null);
215 209
        Assert.assertEquals("Expecting no entity when searching in Russian", 0, pager.getCount().intValue());
216

  
217 210
    }
218 211

  
219 212
    @SuppressWarnings("rawtypes")

Also available in: Unified diff