Search in sources :

Example 6 with Schedule

use of io.crnk.core.mock.models.Schedule in project crnk-framework by crnk-project.

the class LookupAlwaysRelationIdLookupTest 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 7 with Schedule

use of io.crnk.core.mock.models.Schedule in project crnk-framework by crnk-project.

the class LookupNotNullRelationIdLookupTest 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 8 with Schedule

use of io.crnk.core.mock.models.Schedule in project crnk-framework by crnk-project.

the class InconsistentRelationshipTest 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 9 with Schedule

use of io.crnk.core.mock.models.Schedule in project crnk-framework by crnk-project.

the class MultiValuedRelationIdLookupTest method setup.

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

Example 10 with Schedule

use of io.crnk.core.mock.models.Schedule in project crnk-framework by crnk-project.

the class SerializeOnlyIdRelationIdLookupTest 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)19 ScheduleRepositoryImpl (io.crnk.core.mock.repository.ScheduleRepositoryImpl)12 Before (org.junit.Before)12 Test (org.junit.Test)7 QuerySpec (io.crnk.core.queryspec.QuerySpec)4 RegistryEntry (io.crnk.core.engine.registry.RegistryEntry)3 RelationIdTestResource (io.crnk.core.mock.models.RelationIdTestResource)3 Task (io.crnk.core.mock.models.Task)3 ResourceRegistryTest (io.crnk.core.resource.registry.ResourceRegistryTest)3 CrnkBoot (io.crnk.core.boot.CrnkBoot)2 MultivaluedMap (io.crnk.core.engine.internal.utils.MultivaluedMap)2 ResourceRegistry (io.crnk.core.engine.registry.ResourceRegistry)2 ConstantServiceUrlProvider (io.crnk.core.engine.url.ConstantServiceUrlProvider)2 Project (io.crnk.core.mock.models.Project)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 ResourceRepositoryDecoratorBase (io.crnk.core.repository.decorate.ResourceRepositoryDecoratorBase)2 RepositoryRequestSpec (io.crnk.core.engine.dispatcher.RepositoryRequestSpec)1