Commit c8f2daca authored by Akhmad Fakhoni Listiyan Dede's avatar Akhmad Fakhoni Listiyan Dede
Browse files

Tested save item to database

parent 77626a58
......@@ -29,7 +29,7 @@ public class Database {
private static MessageDigest digester;
static boolean log = true;
static boolean log = false;
private static MongoClient mongoClient = new MongoClient( "localhost" , 27017 );
private static MongoDatabase database = mongoClient.getDatabase("philosopher");
......@@ -74,7 +74,16 @@ public class Database {
// movePosition("553b17283c892b1a8d00961f", 0, 0);
// movePosition("553b17283c892b1a8d00961f", 1, 10);
System.out.println(saveOfferToTradeBox("553b0e223c892b147a54a976", 3, 1, 4, 5));
// System.out.println(saveOfferToTradeBox("553b0e223c892b147a54a976", 3, 1, 4, 5));
// addItemToInventory("553b64d23c892b2d5b772c74", 3);
// addItemToInventory("553b64d23c892b2d5b772c74", 2);
// addItemToInventory("553b64d23c892b2d5b772c74", 3);
// addItemToInventory("553b64d23c892b2d5b772c74", 4);
// addItemToInventory("553b64d23c892b2d5b772c74", 4);
// addItemToInventory("553b64d23c892b2d5b772c74", 4);
System.out.println(saveOfferToTradeBox("553b64d23c892b2d5b772c74", 4, 3, 5, 1));
}
/**
......
......@@ -24,7 +24,7 @@ import org.json.JSONObject;
*/
public class Message {
private static boolean log = true;
private static boolean log = false;
/* Main buat testing json. Jangan dihapus dulu ya? */
public static void main(String[] args) throws JSONException {
// try {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment