public class CoprocessorValidatorTest extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
CoprocessorValidatorTest.MissingClass |
private static class |
CoprocessorValidatorTest.MissingClassClassLoader |
private static class |
CoprocessorValidatorTest.MissingClassObserver |
private static class |
CoprocessorValidatorTest.ObsoleteMethodObserver |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidator |
validator |
Constructor and Description |
---|
CoprocessorValidatorTest() |
Modifier and Type | Method and Description |
---|---|
private static ClassLoader |
getClassLoader() |
private static String |
getFullClassName(String className) |
void |
testMissingClass() |
void |
testNoSuchClass() |
void |
testObsoleteMethod() |
void |
testTableMissingJar() |
void |
testTableNoSuchClass() |
void |
testTableValidJar() |
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> |
validateClass(ClassLoader classLoader,
String className) |
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> |
validateClass(String className) |
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> |
validateTable(String jarFile,
String className) |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidator validator
public CoprocessorValidatorTest()
private static ClassLoader getClassLoader()
private static String getFullClassName(String className)
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(String className)
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(ClassLoader classLoader, String className)
public void testNoSuchClass() throws IOException
IOException
public void testMissingClass() throws IOException
IOException
public void testObsoleteMethod() throws IOException
IOException
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateTable(String jarFile, String className) throws IOException
IOException
public void testTableNoSuchClass() throws IOException
IOException
public void testTableMissingJar() throws IOException
IOException
public void testTableValidJar() throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.