hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1326001 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java
Date Fri, 13 Apr 2012 22:49:04 GMT
Author: larsh
Date: Fri Apr 13 22:49:03 2012
New Revision: 1326001

URL: http://svn.apache.org/viewvc?rev=1326001&view=rev
Log:
HBASE-5604 Addendum. Remove test as per discussion on jira.

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java?rev=1326001&r1=1326000&r2=1326001&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java
(original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java
Fri Apr 13 22:49:03 2012
@@ -100,25 +100,4 @@ public class TestWALPlayer {
     assertEquals(1, r.size());
     assertTrue(Bytes.equals(COLUMN2, r.raw()[0].getQualifier()));
   }
-
-  /**
-   * Simple test for data parsing
-   * @throws Exception
-   */
-  @Test
-  public void testTimeFormat() throws Exception {
-    Configuration conf = TEST_UTIL.getConfiguration();
-    WALPlayer player = new WALPlayer(TEST_UTIL.getConfiguration());
-    player.setupTime(conf, HLogInputFormat.END_TIME_KEY);
-    // make sure if nothing is specified nothing is set
-    assertNull(conf.get(HLogInputFormat.END_TIME_KEY));
-    // test a textual data (including ms)
-    conf.set(HLogInputFormat.END_TIME_KEY, "2012-4-10T14:21:01.01");
-    player.setupTime(conf, HLogInputFormat.END_TIME_KEY);
-    assertEquals(1334092861001L, conf.getLong(HLogInputFormat.END_TIME_KEY, 0));
-    // test with mss as a long
-    conf.set(HLogInputFormat.END_TIME_KEY, "1334092861010");
-    player.setupTime(conf, HLogInputFormat.END_TIME_KEY);
-    assertEquals(1334092861010L, conf.getLong(HLogInputFormat.END_TIME_KEY, 0));
-  }
 }



Mime
View raw message