bharathv commented on a change in pull request #1057: HBASE-23701 Try to
converge automated checks around Category
URL: https://github.com/apache/hbase/pull/1057#discussion_r367665777
##########
File path:
hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseClassTestRuleChecker.java
##########
@@ -41,8 +41,12 @@
@Override
public void testStarted(Description description) throws Exception {
Category[] categories =
description.getTestClass().getAnnotationsByType(Category.class);
+ // This should never happen
+ if (categories.length > 1) {
+ throw new IllegalArgumentException("Code-bug: unsure how to handle more
than one Category");
Review comment:
same.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services