package com.orientechnologies.orient.test.database.security;

import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.orient.core.db.ODatabaseSession;
import com.orientechnologies.orient.core.db.ODatabaseType;
import com.orientechnologies.orient.core.db.OrientDB;
import com.orientechnologies.orient.core.db.OrientDBConfig;
import com.orientechnologies.orient.object.db.OObjectDatabaseTx;
import com.orientechnologies.orient.server.OServer;
import com.orientechnologies.orient.test.server.OServerTest;
import org.junit.Test;

import java.io.File;

public class SystemUsersTest {

//  @Test
  public void test() {
    final String buildDirectory = System.getProperty("buildDirectory", ".");
    System.setProperty(
            "ORIENTDB_HOME", buildDirectory + File.separator + SystemUsersTest.class.getSimpleName());

    OLogManager.instance().info(this, "ORIENTDB_HOME: " + System.getProperty("ORIENTDB_HOME"));

    OrientDB orient = new OrientDB("plocal:target/" + SystemUsersTest.class.getSimpleName(), OrientDBConfig.defaultConfig());

    try {
      orient.create("test", ODatabaseType.MEMORY);
      orient.execute("create system user systemxx identified by systemxx role admin").close();
      ODatabaseSession db = orient.open("test", "systemxx", "systemxx");

      db.close();
    } finally {
      orient.close();
    }
  }
}

@@ -347,210 +347,8 @@
 ig;%0A
-import com.orientechnologies.orient.object.db.OObjectDatabaseTx;%0Aimport com.orientechnologies.orient.server.OServer;%0Aimport com.orientechnologies.orient.test.server.OServerTest;%0Aimport org.junit.Test;%0A%0A
 impo
@@ -397,16 +397,18 @@
 Test %7B%0A%0A
+  
 //  @Tes
@@ -541,20 +541,16 @@
         
-    
 %22ORIENTD
@@ -751,16 +751,24 @@
 orient =
+%0A       
  new Ori
@@ -773,16 +773,29 @@
 rientDB(
+%0A            
 %22plocal:
@@ -843,16 +843,28 @@
 eName(),
+%0A           
  OrientD

Fix code format