1616package 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 ;
2519import org .jnosql .diana .api .Value ;
2620import org .jnosql .diana .api .key .BucketManager ;
2721import org .jnosql .diana .api .key .BucketManagerFactory ;
2822import org .jnosql .diana .api .key .KeyValueEntity ;
2923import org .jnosql .diana .memcached .key .model .User ;
30- import org .jnosql .diana .memcached .key .util .KeyValueEntityManagerFactoryUtils ;
3124import org .junit .jupiter .api .BeforeEach ;
3225import 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+
3434import static java .util .Arrays .asList ;
3535import static org .hamcrest .MatcherAssert .assertThat ;
3636import 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
3942public 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
0 commit comments