Search in sources :

Example 11 with TaskSampleSubscription

use of org.ligoj.app.model.TaskSampleSubscription in project ligoj-api by ligoj.

the class LongTaskRunnerTest method getTask.

@Test
public void getTask() {
    repository.saveAndFlush(newTaskSample());
    final TaskSampleSubscription task = resource.getTask(subscription);
    assertTask(task);
    Assertions.assertNotNull(task.getEnd());
}
Also used : TaskSampleSubscription(org.ligoj.app.model.TaskSampleSubscription) AbstractOrgTest(org.ligoj.app.resource.AbstractOrgTest) Test(org.junit.jupiter.api.Test)

Aggregations

TaskSampleSubscription (org.ligoj.app.model.TaskSampleSubscription)11 Test (org.junit.jupiter.api.Test)10 AbstractOrgTest (org.ligoj.app.resource.AbstractOrgTest)10 Date (java.util.Date)2 Subscription (org.ligoj.app.model.Subscription)1 TaskSampleSubscriptionResource (org.ligoj.app.resource.subscription.TaskSampleSubscriptionResource)1