Class CoprocessorValidatorTest
java.lang.Object
org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidatorTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classObsoleteMethod coprocessor implements preCreateTable method which has HRegionInfo parameters. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ClassLoaderprivate static StringgetFullClassName(String className) voidvoidvoidvoidvoidvoidprivate 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)
-
Field Details
-
CLASS_RULE
-
validator
-
-
Constructor Details
-
CoprocessorValidatorTest
public CoprocessorValidatorTest()
-
-
Method Details
-
getClassLoader
-
getFullClassName
-
validateClass
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(String className) -
validateClass
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(ClassLoader classLoader, String className) -
testNoSuchClass
- Throws:
IOException
-
testMissingClass
- Throws:
IOException
-
testObsoleteMethod
- Throws:
IOException
-
validateTable
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateTable(String jarFile, String className) throws IOException - Throws:
IOException
-
testTableNoSuchClass
- Throws:
IOException
-
testTableMissingJar
- Throws:
IOException
-
testTableValidJar
- Throws:
IOException
-