Project

General

Profile

« Previous | Next » 

Revision 7899fae3

Added by Andreas Müller over 6 years ago

cleanup

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/salvador/TestSalvadorAreaMapping.java
30 30
 *
31 31
 */
32 32
public class TestSalvadorAreaMapping {
33
    @SuppressWarnings("unused")
33 34
    private static final Logger logger = Logger.getLogger(TestSalvadorAreaMapping.class);
34 35

  
35 36
    //database validation status (create, update, validate ...)
......
43 44
    protected void doTest(ICdmDataSource cdmDestination){
44 45

  
45 46
        CdmIoApplicationController app = CdmIoApplicationController.NewInstance(cdmDestination, hbm2dll);
46

  
47 47
        try {
48 48
            doTest2(app);
49 49
        } catch (Exception e) {
50
            // TODO Auto-generated catch block
51 50
            e.printStackTrace();
52 51
        }
53

  
54 52
    }
55 53

  
56 54

  
57

  
58

  
59 55
    /**
60 56
     * @param app
61 57
     * @throws Exception
......
65 61
//      Taxon taxon = (Taxon)app.getTaxonService().find(taxonUuid);
66 62
      Object geoServiceObj = app.getBean("editGeoService");
67 63
      EditGeoService geoService;
68
    try {
69
        geoService = getTargetObject(geoServiceObj);
64
        try {
65
            geoService = getTargetObject(geoServiceObj);
70 66

  
71 67

  
72
      Set<InfoPart> partSet = new HashSet<>();
73
      partSet.add(InfoPart.mapUriParams);
68
          Set<InfoPart> partSet = new HashSet<>();
69
          partSet.add(InfoPart.mapUriParams);
74 70

  
75
      EnumSet<InfoPart> parts = EnumSet.copyOf(partSet);
76
      geoService.composeDistributionInfoFor(parts, taxonUuid, false, false, null, null, null, null, null, null, null);
77
    } catch (Exception e) {
78
        // TODO Auto-generated catch block
79
        e.printStackTrace();
80
    }
71
          EnumSet<InfoPart> parts = EnumSet.copyOf(partSet);
72
          geoService.composeDistributionInfoFor(parts, taxonUuid, false, false, null, null, null, null, null, null, null);
73
        } catch (Exception e) {
74
            e.printStackTrace();
75
        }
81 76
    }
82 77

  
83 78
    protected <T> T getTargetObject(Object proxy) throws Exception {

Also available in: Unified diff