Search in sources :

Example 6 with JobUsage

use of org.ow2.proactive.scheduler.common.usage.JobUsage in project scheduling by ow2-proactive.

the class TestUsageData method testEmptyDatabase.

@Test
public void testEmptyDatabase() throws Exception {
    List<JobUsage> usages = dbManager.getUsage(USER_WITH_JOBS, new Date(), new Date());
    assertTrue(usages.isEmpty());
}
Also used : JobUsage(org.ow2.proactive.scheduler.common.usage.JobUsage) Date(java.util.Date) Test(org.junit.Test)

Aggregations

JobUsage (org.ow2.proactive.scheduler.common.usage.JobUsage)6 Date (java.util.Date)4 Test (org.junit.Test)3 TaskUsage (org.ow2.proactive.scheduler.common.usage.TaskUsage)2 CredData (org.ow2.proactive.authentication.crypto.CredData)1 Credentials (org.ow2.proactive.authentication.crypto.Credentials)1 Scheduler (org.ow2.proactive.scheduler.common.Scheduler)1 SchedulerAuthenticationInterface (org.ow2.proactive.scheduler.common.SchedulerAuthenticationInterface)1 NotConnectedException (org.ow2.proactive.scheduler.common.exception.NotConnectedException)1 PermissionException (org.ow2.proactive.scheduler.common.exception.PermissionException)1 JobId (org.ow2.proactive.scheduler.common.job.JobId)1 InternalJob (org.ow2.proactive.scheduler.job.InternalJob)1 JobIdImpl (org.ow2.proactive.scheduler.job.JobIdImpl)1 InternalTask (org.ow2.proactive.scheduler.task.internal.InternalTask)1