Search in sources :

Example 11 with ScheduleRepositoryImpl

use of io.crnk.core.mock.repository.ScheduleRepositoryImpl in project crnk-framework by crnk-project.

the class LookupNoneRelationIdLookupTest method setup.

@SuppressWarnings({ "rawtypes", "unchecked" })
@Before
public void setup() {
    super.setup();
    scheduleRepository = new ScheduleRepositoryImpl();
    schedule = new Schedule();
    schedule.setId(3L);
    schedule.setName("test");
    scheduleRepository.save(schedule);
}
Also used : ScheduleRepositoryImpl(io.crnk.core.mock.repository.ScheduleRepositoryImpl) Schedule(io.crnk.core.mock.models.Schedule) Before(org.junit.Before)

Example 12 with ScheduleRepositoryImpl

use of io.crnk.core.mock.repository.ScheduleRepositoryImpl in project crnk-framework by crnk-project.

the class ResourceIdBasedRelationIdLookupTest method setup.

@SuppressWarnings({ "rawtypes", "unchecked" })
@Before
public void setup() {
    super.setup();
    scheduleRepository = new ScheduleRepositoryImpl();
    schedule = new Schedule();
    schedule.setId(3L);
    schedule.setName("test");
    scheduleRepository.save(schedule);
}
Also used : ScheduleRepositoryImpl(io.crnk.core.mock.repository.ScheduleRepositoryImpl) Schedule(io.crnk.core.mock.models.Schedule) Before(org.junit.Before)

Aggregations

Schedule (io.crnk.core.mock.models.Schedule)12 ScheduleRepositoryImpl (io.crnk.core.mock.repository.ScheduleRepositoryImpl)12 Before (org.junit.Before)12 RelationIdTestResource (io.crnk.core.mock.models.RelationIdTestResource)3 CrnkBoot (io.crnk.core.boot.CrnkBoot)2 RegistryEntry (io.crnk.core.engine.registry.RegistryEntry)2 ConstantServiceUrlProvider (io.crnk.core.engine.url.ConstantServiceUrlProvider)2 Project (io.crnk.core.mock.models.Project)2 Task (io.crnk.core.mock.models.Task)2 ProjectRepository (io.crnk.core.mock.repository.ProjectRepository)2 RelationIdTestRepository (io.crnk.core.mock.repository.RelationIdTestRepository)2 TaskRepository (io.crnk.core.mock.repository.TaskRepository)2 ReflectionsServiceDiscovery (io.crnk.core.module.discovery.ReflectionsServiceDiscovery)2 ResourceIdentifier (io.crnk.core.engine.document.ResourceIdentifier)1 RelationshipMatcher (io.crnk.core.repository.RelationshipMatcher)1 ForwardingRelationshipRepository (io.crnk.core.repository.foward.ForwardingRelationshipRepository)1 ImplicitOwnerBasedRelationshipRepository (io.crnk.core.repository.implicit.ImplicitOwnerBasedRelationshipRepository)1