Browse files

Adding check for MongoDB for TTL

  • Loading branch information...
1 parent 5eea2f8 commit 2baa98dd2ebb52d15a2fc9de89dccc1b1716c7c1 @easility easility committed Aug 26, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/java/com/alvazan/test/TestExpire.java
View
6 src/test/java/com/alvazan/test/TestExpire.java
@@ -37,7 +37,7 @@ public void clearDatabase() {
@Test
public void testPersistWithExpire() throws InterruptedException {
- if (FactorySingleton.getServerType() == DbTypeEnum.HBASE )
+ if (FactorySingleton.getServerType() == DbTypeEnum.HBASE || FactorySingleton.getServerType() == DbTypeEnum.MONGODB)
return;
ExpiringEntity entity = new ExpiringEntity();
entity.setId(50);
@@ -54,7 +54,7 @@ public void testPersistWithExpire() throws InterruptedException {
@Test
public void testTTLReadBack() {
- if (FactorySingleton.getServerType() == DbTypeEnum.HBASE )
+ if (FactorySingleton.getServerType() == DbTypeEnum.HBASE || FactorySingleton.getServerType() == DbTypeEnum.MONGODB)
return;
ExpiringEntity entity = new ExpiringEntity();
entity.setId(50);
@@ -71,7 +71,7 @@ public void testTTLReadBack() {
@Test
public void testExpireEntity() throws InterruptedException {
- if (FactorySingleton.getServerType() == DbTypeEnum.HBASE )
+ if (FactorySingleton.getServerType() == DbTypeEnum.HBASE || FactorySingleton.getServerType() == DbTypeEnum.MONGODB)
return;
ExpiringEntity entity = new ExpiringEntity();
entity.setId(50);

0 comments on commit 2baa98d

Please sign in to comment.