From b2e328aba5428a1aa0bdc93e86f004b91b50bfca Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Tue, 10 Nov 2015 16:13:32 +0000 Subject: [PATCH] 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 --- .../PropTablesCleanupJobIntegrationTest.java | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/source/test-java/org/alfresco/repo/attributes/PropTablesCleanupJobIntegrationTest.java b/source/test-java/org/alfresco/repo/attributes/PropTablesCleanupJobIntegrationTest.java index 6a3d1d1283..882eb9623a 100644 --- a/source/test-java/org/alfresco/repo/attributes/PropTablesCleanupJobIntegrationTest.java +++ b/source/test-java/org/alfresco/repo/attributes/PropTablesCleanupJobIntegrationTest.java @@ -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()