public class TestCommonFSUtils extends Object
CommonFSUtils
.Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private HBaseCommonTestingUtility |
htu |
private static org.slf4j.Logger |
LOG |
private static boolean |
STREAM_CAPABILITIES_IS_PRESENT |
Constructor and Description |
---|
TestCommonFSUtils() |
Modifier and Type | Method and Description |
---|---|
void |
checkStreamCapabilitiesOnKnownNoopStream() |
void |
setUp() |
void |
streamCapabilitiesDoesNotAllowNullStream() |
void |
testGetWALRootDir() |
void |
testGetWALRootDirIllegalWALDir() |
void |
testMatchingTail()
Test path compare and prefix checking.
|
void |
testRemoveWALRootPath() |
void |
testSetWALRootDir() |
private void |
WriteDataToHDFS(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file,
int dataSize) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private HBaseCommonTestingUtility htu
private org.apache.hadoop.conf.Configuration conf
private static final boolean STREAM_CAPABILITIES_IS_PRESENT
public TestCommonFSUtils()
public void setUp() throws IOException
IOException
public void testMatchingTail() throws IOException
IOException
private void WriteDataToHDFS(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, int dataSize) throws Exception
Exception
public void testSetWALRootDir() throws Exception
Exception
public void testGetWALRootDir() throws IOException
IOException
public void testGetWALRootDirIllegalWALDir() throws IOException
IOException
public void testRemoveWALRootPath() throws Exception
Exception
public void streamCapabilitiesDoesNotAllowNullStream()
public void checkStreamCapabilitiesOnKnownNoopStream() throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.