Revision 6446
Added by ben leinfelder over 12 years ago
HazelcastServiceTest.java | ||
---|---|---|
26 | 26 |
package edu.ucsb.nceas.metacat.dataone.hazelcast; |
27 | 27 |
|
28 | 28 |
import java.io.ByteArrayInputStream; |
29 |
import java.io.FileNotFoundException; |
|
30 | 29 |
import java.io.InputStream; |
31 | 30 |
|
32 |
import org.dataone.configuration.Settings; |
|
31 |
import junit.framework.Test; |
|
32 |
import junit.framework.TestSuite; |
|
33 |
|
|
33 | 34 |
import org.dataone.service.types.v1.Identifier; |
34 | 35 |
import org.dataone.service.types.v1.Session; |
35 | 36 |
import org.dataone.service.types.v1.SystemMetadata; |
36 | 37 |
|
37 |
import com.hazelcast.config.Config; |
|
38 |
import com.hazelcast.config.FileSystemXmlConfig; |
|
39 | 38 |
import com.hazelcast.core.Hazelcast; |
40 | 39 |
import com.hazelcast.core.IMap; |
41 | 40 |
|
42 |
import junit.framework.Test; |
|
43 |
import junit.framework.TestSuite; |
|
44 | 41 |
import edu.ucsb.nceas.MCTestCase; |
45 | 42 |
import edu.ucsb.nceas.metacat.dataone.CNodeService; |
46 | 43 |
import edu.ucsb.nceas.metacat.dataone.CNodeServiceTest; |
... | ... | |
57 | 54 |
// initialize the configuration |
58 | 55 |
HazelcastService.getInstance(); |
59 | 56 |
|
60 |
// initialize the entry listeners |
|
61 |
CNodeService.getInstance(); |
|
62 | 57 |
} catch (Exception e) { |
63 | 58 |
e.printStackTrace(); |
64 | 59 |
fail(); |
Also available in: Unified diff
move bulk of the Hazelcast code into HazelcastService from CNodeService so that it is centrall located - easier to manage and configure