Search in sources :

Example 1 with PersonRepository

use of jakarta.nosql.tck.entities.PersonRepository in project jnosql-diana by eclipse.

the class DefaultColumnRepositoryProducerTest method shouldCreateFromManager.

@Test
public void shouldCreateFromManager() {
    ColumnFamilyManager manager = Mockito.mock(ColumnFamilyManager.class);
    PersonRepository personRepository = producer.get(PersonRepository.class, manager);
    assertNotNull(personRepository);
}
Also used : ColumnFamilyManager(jakarta.nosql.column.ColumnFamilyManager) PersonRepository(jakarta.nosql.tck.entities.PersonRepository) Test(org.junit.jupiter.api.Test)

Example 2 with PersonRepository

use of jakarta.nosql.tck.entities.PersonRepository in project jnosql-diana by eclipse.

the class DefaultKeyValueRepositoryProducerTest method shouldCreateFromManager.

@Test
public void shouldCreateFromManager() {
    BucketManager manager = Mockito.mock(BucketManager.class);
    PersonRepository personRepository = producer.get(PersonRepository.class, manager);
    assertNotNull(personRepository);
}
Also used : PersonRepository(jakarta.nosql.tck.entities.PersonRepository) BucketManager(jakarta.nosql.keyvalue.BucketManager) Test(org.junit.jupiter.api.Test)

Example 3 with PersonRepository

use of jakarta.nosql.tck.entities.PersonRepository in project jnosql-diana by eclipse.

the class DefaultDocumentRepositoryProducerTest method shouldCreateFromManager.

@Test
public void shouldCreateFromManager() {
    DocumentCollectionManager manager = Mockito.mock(DocumentCollectionManager.class);
    PersonRepository personRepository = producer.get(PersonRepository.class, manager);
    assertNotNull(personRepository);
}
Also used : PersonRepository(jakarta.nosql.tck.entities.PersonRepository) DocumentCollectionManager(jakarta.nosql.document.DocumentCollectionManager) Test(org.junit.jupiter.api.Test)

Example 4 with PersonRepository

use of jakarta.nosql.tck.entities.PersonRepository in project jnosql-diana by eclipse.

the class DefaultDocumentRepositoryProducerTest method shouldCreateFromTemplate.

@Test
public void shouldCreateFromTemplate() {
    DocumentTemplate template = Mockito.mock(DocumentTemplate.class);
    PersonRepository personRepository = producer.get(PersonRepository.class, template);
    assertNotNull(personRepository);
}
Also used : PersonRepository(jakarta.nosql.tck.entities.PersonRepository) DocumentTemplate(jakarta.nosql.mapping.document.DocumentTemplate) Test(org.junit.jupiter.api.Test)

Example 5 with PersonRepository

use of jakarta.nosql.tck.entities.PersonRepository in project jnosql-diana by eclipse.

the class DefaultKeyValueRepositoryProducerTest method shouldCreateFromTemplate.

@Test
public void shouldCreateFromTemplate() {
    KeyValueTemplate template = Mockito.mock(KeyValueTemplate.class);
    PersonRepository personRepository = producer.get(PersonRepository.class, template);
    assertNotNull(personRepository);
}
Also used : PersonRepository(jakarta.nosql.tck.entities.PersonRepository) KeyValueTemplate(jakarta.nosql.mapping.keyvalue.KeyValueTemplate) Test(org.junit.jupiter.api.Test)

Aggregations

PersonRepository (jakarta.nosql.tck.entities.PersonRepository)6 Test (org.junit.jupiter.api.Test)6 ColumnFamilyManager (jakarta.nosql.column.ColumnFamilyManager)1 DocumentCollectionManager (jakarta.nosql.document.DocumentCollectionManager)1 BucketManager (jakarta.nosql.keyvalue.BucketManager)1 ColumnTemplate (jakarta.nosql.mapping.column.ColumnTemplate)1 DocumentTemplate (jakarta.nosql.mapping.document.DocumentTemplate)1 KeyValueTemplate (jakarta.nosql.mapping.keyvalue.KeyValueTemplate)1