Skip to content

Commit 5f933ad

Browse files
committed
Fixed accidental instantiation of the debug aerospike client.
1 parent 18f8a38 commit 5f933ad

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

src/test/java/com/aerospike/mapper/AeroMapperBaseTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
import org.junit.Before;
77
import org.junit.BeforeClass;
88

9-
import com.aerospike.client.DebugAerospikeClient;
10-
import com.aerospike.client.DebugAerospikeClient.Granularity;
11-
import com.aerospike.client.DebugAerospikeClient.Options;
9+
import com.aerospike.client.AerospikeClient;
1210
import com.aerospike.client.IAerospikeClient;
1311
import com.aerospike.mapper.tools.ClassCache;
1412
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -22,8 +20,7 @@ public abstract class AeroMapperBaseTest {
2220

2321
@BeforeClass
2422
public static void setupClass() {
25-
// client = new AerospikeClient("localhost", 3000);
26-
client = new DebugAerospikeClient("localhost", 3000, new Options(Granularity.EVERY_CALL));
23+
client = new AerospikeClient("localhost", 3000);
2724
}
2825

2926
@AfterClass

src/test/java/com/aerospike/mapper/example/Application.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
import org.junit.Test;
66

7-
import com.aerospike.client.DebugAerospikeClient;
8-
import com.aerospike.client.DebugAerospikeClient.Granularity;
9-
import com.aerospike.client.DebugAerospikeClient.Options;
7+
import com.aerospike.client.AerospikeClient;
108
import com.aerospike.client.IAerospikeClient;
119
import com.aerospike.client.policy.Policy;
1210
import com.aerospike.client.policy.Replica;
@@ -47,7 +45,7 @@ public void run() throws JsonProcessingException {
4745
writePolicy.durableDelete = true;
4846
writePolicy.sendKey = true; // For ease of debugging for now
4947

50-
IAerospikeClient client = new DebugAerospikeClient(null, "127.0.0.1", 3000, new Options(Granularity.EVERY_CALL));
48+
IAerospikeClient client = new AerospikeClient(null, "127.0.0.1", 3000);
5149

5250
AeroMapper mapper = new AeroMapper.Builder(client)
5351
.withWritePolicy(writePolicy).forAll()

src/test/java/com/aerospike/mapper/example/JavaMapperApplication.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
import org.junit.Test;
66

7-
import com.aerospike.client.DebugAerospikeClient;
8-
import com.aerospike.client.DebugAerospikeClient.Granularity;
9-
import com.aerospike.client.DebugAerospikeClient.Options;
7+
import com.aerospike.client.AerospikeClient;
108
import com.aerospike.client.IAerospikeClient;
119
import com.aerospike.mapper.example.model.Customer;
1210
import com.aerospike.mapper.tools.AeroMapper;
@@ -17,7 +15,7 @@
1715
public class JavaMapperApplication extends ApplicationBase {
1816
@Test
1917
public void run() throws JsonProcessingException {
20-
IAerospikeClient client = new DebugAerospikeClient(null, "127.0.0.1", 3000, new Options(Granularity.EVERY_CALL));
18+
IAerospikeClient client = new AerospikeClient(null, "127.0.0.1", 3000);
2119

2220
AeroMapper mapper = new AeroMapper.Builder(client).build();
2321
Customer customer = createAndPopulateCustomer();

src/test/java/com/aerospike/mapper/example/NonJavaMapperApplication.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
import com.aerospike.client.AerospikeClient;
1010
import com.aerospike.client.Bin;
11-
import com.aerospike.client.DebugAerospikeClient;
12-
import com.aerospike.client.DebugAerospikeClient.Granularity;
13-
import com.aerospike.client.DebugAerospikeClient.Options;
1411
import com.aerospike.client.IAerospikeClient;
1512
import com.aerospike.client.Key;
1613
import com.aerospike.client.Record;
@@ -57,7 +54,7 @@ private Customer read(IAerospikeClient client, String id) {
5754

5855
@Test
5956
public void run() throws JsonProcessingException {
60-
IAerospikeClient client = new DebugAerospikeClient(null, "127.0.0.1", 3000, new Options(Granularity.EVERY_CALL));
57+
IAerospikeClient client = new AerospikeClient(null, "127.0.0.1", 3000);
6158

6259
Customer customer = createAndPopulateCustomer();
6360
save(client, customer);

0 commit comments

Comments
 (0)