28 lines
625 B
Java
28 lines
625 B
Java
package org.gcube.contentmanager.storageserver.store;
|
|
|
|
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(){
|
|
StorageStatusRecord ssr=new StorageStatusRecord("test.consumer", 100, 1);
|
|
mongo.updateUserVolume(ssr, "UPLOAD");
|
|
}
|
|
|
|
@Test
|
|
public void put(){
|
|
new StorageStatusOperationManager(mongo.getStorageStatusCollection()).putSSRecord( "test.consumer2", 100, 1 );
|
|
}
|
|
|
|
}
|