Revision 0bd9c712
Added by Andreas Müller almost 3 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java | ||
---|---|---|
106 | 106 |
}) |
107 | 107 |
public void testSubTree(){ |
108 | 108 |
|
109 |
CdmLightExportConfigurator config = new CdmLightExportConfigurator(null);
|
|
109 |
CdmLightExportConfigurator config = CdmLightExportConfigurator.NewInstance();
|
|
110 | 110 |
// config.setCreateCondensedDistributionString(false); |
111 | 111 |
config.setTaxonNodeFilter(TaxonNodeFilter.NewSubtreeInstance(UUID.fromString("f8c9933a-fe3a-42ce-8a92-000e27bfdfac"))); |
112 | 112 |
|
... | ... | |
175 | 175 |
}) |
176 | 176 |
public void testFullTreeWithUnpublished(){ |
177 | 177 |
|
178 |
CdmLightExportConfigurator config = new CdmLightExportConfigurator(null);
|
|
178 |
CdmLightExportConfigurator config = CdmLightExportConfigurator.NewInstance();
|
|
179 | 179 |
config.setTarget(TARGET.EXPORT_DATA); |
180 | 180 |
config.getTaxonNodeFilter().setIncludeUnpublished(true); |
181 | 181 |
|
... | ... | |
265 | 265 |
}) |
266 | 266 |
public void testFullData(){ |
267 | 267 |
|
268 |
CdmLightExportConfigurator config = new CdmLightExportConfigurator(null);
|
|
268 |
CdmLightExportConfigurator config = CdmLightExportConfigurator.NewInstance();
|
|
269 | 269 |
config.setTarget(TARGET.EXPORT_DATA); |
270 | 270 |
|
271 | 271 |
ExportResult result = defaultExport.invoke(config); |
... | ... | |
321 | 321 |
commitAndStartNewTransaction(); |
322 | 322 |
|
323 | 323 |
|
324 |
CdmLightExportConfigurator config = new CdmLightExportConfigurator(null);
|
|
324 |
CdmLightExportConfigurator config = CdmLightExportConfigurator.NewInstance();
|
|
325 | 325 |
config.setTarget(TARGET.EXPORT_DATA); |
326 | 326 |
|
327 | 327 |
ExportResult result = defaultExport.invoke(config); |
Also available in: Unified diff
add factory method to CdmLightExportConfigurator