Project

General

Profile

1
package edu.ucsb.nceas.metacat.index;
2

    
3
import static org.junit.Assert.assertTrue;
4

    
5
import org.dataone.service.types.v1.Identifier;
6
import org.dataone.service.types.v1.SystemMetadata;
7
import org.junit.Test;
8

    
9
import com.hazelcast.core.IMap;
10

    
11
public class DistributedMapsFactoryIT {
12
    /**
13
     * Test to get the system metadata map
14
     */
15
    @Test
16
    public void testGetSystemMetadataMap() throws Exception {
17
        IMap<Identifier, SystemMetadata> map = DistributedMapsFactory.getSystemMetadataMap();
18
        System.out.println("the size of the map is "+map.size());
19
        assertTrue("The size of the system metadata map should equal or be greater than 0", map.size() >= 0);
20
    }
21
    
22
    /**
23
     * Test to get the system metadata map
24
     */
25
    @Test
26
    public void testGetObjectPathMap() throws Exception {
27
        IMap<Identifier, String> map = DistributedMapsFactory.getObjectPathMap();
28
        System.out.println("the size of the map is "+map.size());
29
        assertTrue("The size of the object path map should equal or be greater than 0", map.size() >= 0);
30
    }
31
}
(2-2/4)