Skip to content

Commit

Permalink
Tests refactoring:
Browse files Browse the repository at this point in the history
1. ant tests are removed.
2. properties to set server port in test mode were added.
3. few minor configuration mistakes were fixed.
  • Loading branch information
laa committed Aug 14, 2015
1 parent 1901822 commit 2738efc
Show file tree
Hide file tree
Showing 51 changed files with 79 additions and 524 deletions.
254 changes: 0 additions & 254 deletions build.xml

This file was deleted.

26 changes: 0 additions & 26 deletions client/build.xml

This file was deleted.

Expand Up @@ -100,10 +100,33 @@ public class OStorageRemote extends OStorageAbstract implements OStorageProxy {
public static final String PARAM_MAX_POOL = "maxpool";
public static final String PARAM_DB_TYPE = "dbtype";
private static final String DEFAULT_HOST = "localhost";
private static final int DEFAULT_PORT = 2424;
private static final int DEFAULT_PORT;
private static final int DEFAULT_SSL_PORT = 2434;
private static final String ADDRESS_SEPARATOR = ";";
private static final String DRIVER_NAME = "OrientDB Java";

static {
int serverPort = -1;

String serverTestMode = System.getProperty("orient.server.testMode", "false");
if (serverTestMode.equals("true")) {
String serverTestPort = System.getProperty("orient.server.port");
if (serverTestPort != null) {
try {
serverPort = Integer.parseInt(serverTestPort);

} catch (NumberFormatException e) {
serverPort = -1;
}
}
}

if (serverPort == -1)
serverPort = 2424;

DEFAULT_PORT = serverPort;
}

protected final List<String> serverURLs = new ArrayList<String>();
protected final Map<String, OCluster> clusterMap = new ConcurrentHashMap<String, OCluster>();
private final ExecutorService asynchExecutor;
Expand Down
57 changes: 0 additions & 57 deletions core/build.xml

This file was deleted.

Binary file removed core/lib/concurrentlinkedhashmap-lru-1.4.jar
Binary file not shown.
Binary file removed core/lib/jna-4.0.0.jar
Binary file not shown.
Binary file removed core/lib/jna-platform-4.0.0.jar
Binary file not shown.
Binary file removed core/lib/mockito-all-1.9.5.jar
Binary file not shown.
Binary file removed core/lib/snappy-java-1.1.0.1.jar
Binary file not shown.
Binary file removed core/lib/testng-6.8.8.jar
Binary file not shown.
Expand Up @@ -242,7 +242,7 @@ public void testFlushAllContentEventually() throws Exception {
Assert.assertEquals(dataTwo, dataOne);
}

Thread.sleep(10000);
Thread.sleep(20000);

for (int i = 0; i < pageData.length; i++) {
byte[] dataContent = pageData[i];
Expand Down

0 comments on commit 2738efc

Please sign in to comment.