You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2012/04/14 00:49:09 UTC

svn commit: r1326002 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java

Author: larsh
Date: Fri Apr 13 22:49:09 2012
New Revision: 1326002

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

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

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java?rev=1326002&r1=1326001&r2=1326002&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALPlayer.java Fri Apr 13 22:49:09 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));
-  }
 }