Changeset 5114


Ignore:
Timestamp:
05/02/14 07:51:29 (10 years ago)
Author:
Twan Goosen
Message:

fixed unit test after change of default data roots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-commons/src/test/java/eu/clarin/cmdi/vlo/config/DefaultVloConfigFactoryTest.java

    r5093 r5114  
    3939    public void testGetDataRoots() {
    4040
    41         ArrayList<DataRoot> dataRoots;
    42         dataRoots = new ArrayList<DataRoot>();
    43 
    44         dataRoots.add(new DataRoot("MPI IMDI Archive",
    45                 new File("/lat/apache/htdocs/oai-harvester/mpi-self-harvest/harvested/results/cmdi/"),
    46                 "http://catalog.clarin.eu/",
    47                 "/lat/apache/htdocs/", false));
    48         dataRoots.add(new DataRoot("CMDI Providers",
    49                 new File("/lat/apache/htdocs/oai-harvester/cmdi-providers/harvested/results/cmdi/"),
    50                 "http://catalog.clarin.eu/",
    51                 "/lat/apache/htdocs/", false));
    52         dataRoots.add(new DataRoot("OLAC Metadata Providers",
    53                 new File("/lat/apache/htdocs/oai-harvester/olac-and-dc-providers/harvested/results/cmdi/"),
    54                 "http://catalog.clarin.eu/",
    55                 "/lat/apache/htdocs/", false));
    56 
    57         System.out.println("getDataRoots");
     41        List<DataRoot> dataRoots = Arrays.asList(
     42                new DataRoot("CLARIN Centres",
     43                        new File("/lat/apache/htdocs/oai-harvester/clarin/results/cmdi/"),
     44                        "http://catalog.clarin.eu/",
     45                        "/lat/apache/htdocs/", false),
     46                new DataRoot("Other",
     47                        new File("/lat/apache/htdocs/oai-harvester/others/results/cmdi"),
     48                        "http://catalog.clarin.eu/",
     49                        "/lat/apache/htdocs/", false));
    5850
    5951        List<DataRoot> rootsReturned = config.getDataRoots();
     
    6759    public void testSetDataRoots() {
    6860
    69         ArrayList<DataRoot> dataRoots = new ArrayList<DataRoot>();
    70 
    71         dataRoots.add(new DataRoot("MPI IMDI Archive",
    72                 new File("/lat/apache/htdocs/oai-harvester/mpi-self-harvest/harvested/results/cmdi/"),
    73                 "http://catalog.clarin.eu/",
    74                 "/lat/apache/htdocs/", false));
    75         dataRoots.add(new DataRoot("CMDI Providers",
    76                 new File("/lat/apache/htdocs/oai-harvester/cmdi-providers/harvested/results/cmdi/"),
    77                 "http://catalog.clarin.eu/",
    78                 "/lat/apache/htdocs/", false));
    79         dataRoots.add(new DataRoot("OLAC Metadata Providers",
    80                 new File("/lat/apache/htdocs/oai-harvester/olac-and-dc-providers/harvested/results/cmdi/"),
    81                 "http://catalog.clarin.eu/",
    82                 "/lat/apache/htdocs/", false));
     61        List<DataRoot> dataRoots = Arrays.asList(
     62                new DataRoot("MPI IMDI Archive",
     63                        new File("/lat/apache/htdocs/oai-harvester/mpi-self-harvest/harvested/results/cmdi/"),
     64                        "http://catalog.clarin.eu/",
     65                        "/lat/apache/htdocs/", false),
     66                new DataRoot("CMDI Providers",
     67                        new File("/lat/apache/htdocs/oai-harvester/cmdi-providers/harvested/results/cmdi/"),
     68                        "http://catalog.clarin.eu/",
     69                        "/lat/apache/htdocs/", false),
     70                new DataRoot("OLAC Metadata Providers",
     71                        new File("/lat/apache/htdocs/oai-harvester/olac-and-dc-providers/harvested/results/cmdi/"),
     72                        "http://catalog.clarin.eu/",
     73                        "/lat/apache/htdocs/", false));
    8374
    8475        System.out.println("setDataRoots");
Note: See TracChangeset for help on using the changeset viewer.