Skip to content

Commit 2f3f984

Browse files
committed
fixes memcached imports
1 parent 3a55896 commit 2f3f984

File tree

2 files changed

+12
-39
lines changed

2 files changed

+12
-39
lines changed

memcached-driver/src/test/java/org/jnosql/diana/memcached/key/MemcachedBucketManagerTest.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,28 @@
1616
package org.jnosql.diana.memcached.key;
1717

1818

19-
import java.time.Duration;
20-
import java.util.List;
21-
import java.util.Optional;
22-
import java.util.concurrent.TimeUnit;
23-
import java.util.stream.Collectors;
24-
import java.util.stream.StreamSupport;
2519
import org.jnosql.diana.api.Value;
2620
import org.jnosql.diana.api.key.BucketManager;
2721
import org.jnosql.diana.api.key.BucketManagerFactory;
2822
import org.jnosql.diana.api.key.KeyValueEntity;
2923
import org.jnosql.diana.memcached.key.model.User;
30-
import org.jnosql.diana.memcached.key.util.KeyValueEntityManagerFactoryUtils;
3124
import org.junit.jupiter.api.BeforeEach;
3225
import org.junit.jupiter.api.Test;
3326

27+
import java.time.Duration;
28+
import java.util.List;
29+
import java.util.Optional;
30+
import java.util.concurrent.TimeUnit;
31+
import java.util.stream.Collectors;
32+
import java.util.stream.StreamSupport;
33+
3434
import static java.util.Arrays.asList;
3535
import static org.hamcrest.MatcherAssert.assertThat;
3636
import static org.hamcrest.Matchers.containsInAnyOrder;
37-
import static org.junit.jupiter.api.Assertions.*;
37+
import static org.junit.jupiter.api.Assertions.assertEquals;
38+
import static org.junit.jupiter.api.Assertions.assertFalse;
39+
import static org.junit.jupiter.api.Assertions.assertNotNull;
40+
import static org.junit.jupiter.api.Assertions.assertTrue;
3841

3942
public class MemcachedBucketManagerTest {
4043

@@ -50,7 +53,7 @@ public class MemcachedBucketManagerTest {
5053

5154
@BeforeEach
5255
public void init() {
53-
keyValueEntityManagerFactory = KeyValueEntityManagerFactoryUtils.get();
56+
keyValueEntityManagerFactory = BucketManagerFactorySupplier.INSTANCE.get();
5457
keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager("users-entity");
5558
}
5659

memcached-driver/src/test/java/org/jnosql/diana/memcached/key/util/KeyValueEntityManagerFactoryUtils.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)