--- /dev/null
+package fi.vtt.simantics.procore.internal;\r
+\r
+import org.simantics.db.ServerI;\r
+import org.simantics.db.exception.DatabaseException;\r
+\r
+class VirtualServer implements ServerI {\r
+ private boolean active = false;\r
+\r
+ @Override\r
+ public void start() throws DatabaseException {\r
+ active = true;\r
+ }\r
+\r
+ @Override\r
+ public void stop() throws DatabaseException {\r
+ active = false;\r
+ }\r
+\r
+ @Override\r
+ public boolean isActive() {\r
+ return active;\r
+ }\r
+\r
+ @Override\r
+ public synchronized String getAddress() throws DatabaseException {\r
+ return "";\r
+ }\r
+\r
+// @Override\r
+// public synchronized ServerAddress getServerAddress() throws DatabaseException {\r
+// return new ServerAddress("");\r
+// }\r
+\r
+ @Override\r
+ public String execute(String command) throws DatabaseException {\r
+ return null;\r
+ }\r
+\r
+ @Override\r
+ public String executeAndDisconnect(String command) throws DatabaseException {\r
+ return null;\r
+ }\r
+}\r