30 lines
523 B
Java
30 lines
523 B
Java
package org.gcube.contentmanager.storageserver.store;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
import org.junit.BeforeClass;
|
|
import org.junit.Test;
|
|
|
|
public class MongoDBTest {
|
|
|
|
private static String[] server={"146.48.123.71","146.48.123.72"};
|
|
private static MongoDB mongo;
|
|
|
|
@BeforeClass
|
|
public static void init(){
|
|
mongo=new MongoDB(server, null, null);
|
|
}
|
|
|
|
|
|
// @Test
|
|
public void update(){
|
|
mongo.update("test.consumer", 100, 1, "UPLOAD");
|
|
}
|
|
|
|
@Test
|
|
public void put(){
|
|
mongo.put("test.consumer2", 100, 1 );
|
|
}
|
|
|
|
}
|