falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rag...@apache.org
Subject [24/41] git commit: FALCON-652 EntityUtils tests are failing. Contributed by Ajay Yadav
Date Thu, 11 Sep 2014 22:19:29 GMT
FALCON-652 EntityUtils tests are failing. Contributed by Ajay Yadav


Project: http://git-wip-us.apache.org/repos/asf/incubator-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-falcon/commit/14b9add5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-falcon/tree/14b9add5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-falcon/diff/14b9add5

Branch: refs/heads/FALCON-585
Commit: 14b9add5f4af346e9cd517b6360f61fda52005cb
Parents: 9f4a6d2
Author: Venkatesh Seetharam <venkatesh@apache.org>
Authored: Wed Sep 3 16:12:12 2014 -0700
Committer: Venkatesh Seetharam <venkatesh@apache.org>
Committed: Wed Sep 3 16:12:12 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                  | 2 ++
 .../test/java/org/apache/falcon/entity/EntityUtilTest.java   | 8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/14b9add5/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index db2dd04..2086f5b 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -77,6 +77,8 @@ Trunk (Unreleased)
   OPTIMIZATIONS
 
   BUG FIXES
+   FALCON-652 EntityUtils tests are failing (Ajay Yadav via Venkatesh Seetharam)
+
    FALCON-650 Instance list APIs occassionally fail when orderBy set to
    starttime or endtime (Balu Vellanki via Venkatesh Seetharam)
 

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/14b9add5/common/src/test/java/org/apache/falcon/entity/EntityUtilTest.java
----------------------------------------------------------------------
diff --git a/common/src/test/java/org/apache/falcon/entity/EntityUtilTest.java b/common/src/test/java/org/apache/falcon/entity/EntityUtilTest.java
index 1613a66..50ee649 100644
--- a/common/src/test/java/org/apache/falcon/entity/EntityUtilTest.java
+++ b/common/src/test/java/org/apache/falcon/entity/EntityUtilTest.java
@@ -224,9 +224,11 @@ public class EntityUtilTest extends AbstractTestBase {
 
         process.getClusters().getClusters().add(cluster);
 
+        Date expectedStartDate = new SimpleDateFormat("yyyy-MM-dd z").parse("2011-11-02 UTC");
+        Date expectedEndDate = new SimpleDateFormat("yyyy-MM-dd z").parse("2091-12-30 UTC");
+
         Pair<Date, Date> startEndDates = EntityUtil.getEntityStartEndDates(process);
-        Assert.assertEquals(startEndDates.second.toString(), "Sat Dec 29 16:00:00 PST 2091");
-        Assert.assertEquals(startEndDates.first.toString(), "Tue Nov 01 17:00:00 PDT 2011");
+        Assert.assertEquals(startEndDates.first, expectedStartDate);
+        Assert.assertEquals(startEndDates.second, expectedEndDate);
     }
-
 }


Mime
View raw message