mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
ACE-4565: removed redundant test.
Test checked that the job wouldn't run in the forseable future. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@117106 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,9 +18,8 @@
|
||||
*/
|
||||
package org.alfresco.repo.attributes;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.Date;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.alfresco.repo.domain.propval.PropertyValueDAO;
|
||||
import org.alfresco.util.ApplicationContextHelper;
|
||||
@@ -29,11 +28,8 @@ import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.quartz.JobDetail;
|
||||
import org.quartz.SchedulerException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
import com.ibm.icu.util.Calendar;
|
||||
|
||||
/**
|
||||
* Integration tests for the {@link PropTablesCleanupJob} class.
|
||||
*
|
||||
@@ -55,18 +51,6 @@ public class PropTablesCleanupJobIntegrationTest
|
||||
{
|
||||
jobTrigger = ctx.getBean("propTablesCleanupTrigger", CronTriggerBean.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkJobWillNeverRunByDefault() throws Exception
|
||||
{
|
||||
Date fireTime = jobTrigger.getTrigger().getFireTimeAfter(new Date());
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
|
||||
// Far into the future, we count this as never.
|
||||
calendar.setTime(fireTime);
|
||||
assertEquals(2099, calendar.get(Calendar.YEAR));
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkJobDetails()
|
||||
|
Reference in New Issue
Block a user