11package com .baeldung .couchbase .async .person ;
22
3- import static org .junit .Assert .*;
3+ import static org .junit .Assert .assertEquals ;
4+ import static org .junit .Assert .assertNotNull ;
5+ import static org .junit .Assert .assertNull ;
6+ import static org .junit .Assert .assertTrue ;
47
58import java .util .ArrayList ;
69import java .util .List ;
710import java .util .UUID ;
811
9- import javax .annotation .PostConstruct ;
10-
1112import org .apache .commons .lang3 .RandomStringUtils ;
13+ import org .junit .Before ;
1214import org .junit .Test ;
15+ import org .junit .runner .RunWith ;
1316import org .springframework .beans .factory .annotation .Autowired ;
1417import org .springframework .beans .factory .annotation .Qualifier ;
18+ import org .springframework .test .context .ContextConfiguration ;
19+ import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
1520
1621import com .baeldung .couchbase .async .AsyncIntegrationTest ;
17- import com .baeldung .couchbase .async .person .Person ;
18- import com .baeldung .couchbase .async .person .PersonCrudService ;
19- import com .baeldung .couchbase .async .person .PersonDocumentConverter ;
2022import com .baeldung .couchbase .async .service .BucketService ;
2123import com .couchbase .client .java .Bucket ;
2224import com .couchbase .client .java .document .JsonDocument ;
2325
24- public class PersonCrudServiceIntegrationTest extends AsyncIntegrationTest {
26+ @ RunWith (SpringJUnit4ClassRunner .class )
27+ @ ContextConfiguration (classes = {PersonCrudServiceIntegrationTestConfig .class })
28+ public class PersonCrudServiceLiveTest extends AsyncIntegrationTest {
2529
2630 @ Autowired
2731 private PersonCrudService personService ;
@@ -35,8 +39,8 @@ public class PersonCrudServiceIntegrationTest extends AsyncIntegrationTest {
3539
3640 private Bucket bucket ;
3741
38- @ PostConstruct
39- private void init () {
42+ @ Before
43+ public void init () {
4044 bucket = bucketService .getBucket ();
4145 }
4246
0 commit comments