Revision 7791
Added by Jing Tao over 11 years ago
metacat-index/src/test/java/edu/ucsb/nceas/metacat/index/DistributedMapsFactoryIT.java | ||
---|---|---|
7 | 7 |
import org.junit.Test; |
8 | 8 |
|
9 | 9 |
import com.hazelcast.core.IMap; |
10 |
import com.hazelcast.core.ISet; |
|
10 | 11 |
|
11 | 12 |
public class DistributedMapsFactoryIT { |
12 | 13 |
/** |
... | ... | |
28 | 29 |
System.out.println("the size of the map is "+map.size()); |
29 | 30 |
assertTrue("The size of the object path map should equal or be greater than 0", map.size() >= 0); |
30 | 31 |
} |
32 |
|
|
33 |
/** |
|
34 |
* Test to get the identifier set |
|
35 |
*/ |
|
36 |
@Test |
|
37 |
public void getGetIdentifierSet() throws Exception { |
|
38 |
ISet identifiers = DistributedMapsFactory.getIdentifiersSet(); |
|
39 |
System.out.println("the size of the map is "+identifiers.size()); |
|
40 |
assertTrue("The size of the identifiers should equal or be greater than 0", identifiers.size() >= 0); |
|
41 |
} |
|
31 | 42 |
} |
Also available in: Unified diff
Add code to test getIdentifierSet method.