Search in sources :

Example 16 with EasyCrudService

use of org.summerb.approaches.jdbccrud.api.EasyCrudService in project summerb by skarpushin.

the class GenericCrudServiceTestTemplate method testServiceResolver_expectOneServicesFound.

@SuppressWarnings("rawtypes")
@Test
public void testServiceResolver_expectOneServicesFound() {
    EasyCrudService service = easyCrudServiceResolver.resolveByEntityType(TestDto1.class.getCanonicalName());
    assertNotNull(service);
    assertEquals(TestDto1.class.getCanonicalName(), service.getEntityTypeMessageCode());
}
Also used : EasyCrudService(org.summerb.approaches.jdbccrud.api.EasyCrudService) Test(org.junit.Test)

Aggregations

EasyCrudService (org.summerb.approaches.jdbccrud.api.EasyCrudService)16 Test (org.junit.Test)8 HasId (org.summerb.approaches.jdbccrud.api.dto.HasId)7 DataSetLoaderImpl (org.summerb.approaches.jdbccrud.impl.relations.DataSetLoaderImpl)7 TestDto1 (integr.org.summerb.jdbccrud.TestDto1)5 PaginatedList (org.summerb.approaches.jdbccrud.api.dto.PaginatedList)5 Query (org.summerb.approaches.jdbccrud.api.query.Query)5 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 HashSet (java.util.HashSet)3 Set (java.util.Set)3 PagerParams (org.summerb.approaches.jdbccrud.api.dto.PagerParams)3 DataSet (org.summerb.approaches.jdbccrud.api.dto.datapackage.DataSet)3 LinkedList (java.util.LinkedList)2 List (java.util.List)2 Ref (org.summerb.approaches.jdbccrud.api.dto.relations.Ref)2 TestDto2 (integr.org.summerb.jdbccrud.TestDto2)1 Entry (java.util.Map.Entry)1 UUID (java.util.UUID)1 DataTable (org.summerb.approaches.jdbccrud.api.dto.datapackage.DataTable)1