Skip to content

Commit 48eef62

Browse files
committed
add tests for new factory methods
1 parent 11f98b6 commit 48eef62

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/test/java/com/marklogic/client/test/DatabaseClientTest.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
import org.junit.Test;
2424

2525
import com.marklogic.client.admin.QueryOptionsManager;
26+
import com.marklogic.client.alerting.RuleManager;
2627
import com.marklogic.client.document.BinaryDocumentManager;
2728
import com.marklogic.client.document.GenericDocumentManager;
2829
import com.marklogic.client.document.JSONDocumentManager;
2930
import com.marklogic.client.document.TextDocumentManager;
3031
import com.marklogic.client.document.XMLDocumentManager;
32+
import com.marklogic.client.eval.ServerEvaluationCall;
33+
import com.marklogic.client.pojo.PojoRepository;
3134
import com.marklogic.client.query.QueryManager;
3235
import com.marklogic.client.util.RequestLogger;
3336

@@ -83,6 +86,24 @@ public void testNewQueryManager() {
8386
assertNotNull("Client could not create query manager", mgr);
8487
}
8588

89+
@Test
90+
public void testNewRuleManager() {
91+
RuleManager mgr = Common.client.newRuleManager();
92+
assertNotNull("Client could not create rule manager", mgr);
93+
}
94+
95+
@Test
96+
public void testNewPojoRepository() {
97+
PojoRepository<City, Integer> mgr = Common.client.newPojoRepository(City.class, Integer.class);
98+
assertNotNull("Client could not create pojo repository", mgr);
99+
}
100+
101+
@Test
102+
public void testNewServerEvaluationCall() {
103+
ServerEvaluationCall mgr = Common.client.newServerEval();
104+
assertNotNull("Client could not create ServerEvaluationCall", mgr);
105+
}
106+
86107
@Test
87108
public void testNewQueryOptionsManager() {
88109
QueryOptionsManager mgr = Common.client.newServerConfigManager().newQueryOptionsManager();

0 commit comments

Comments
 (0)