HBASE-24100 [Flakey Tests] Add test to check we work properly when port clash setting up thriftserver

Addendum; add missing @ClassRule
This commit is contained in:
stack 2020-04-01 17:49:35 -07:00
parent 97a47ed0ee
commit e6264c9573
1 changed files with 7 additions and 1 deletions

View File

@ -17,14 +17,20 @@
*/ */
package org.apache.hadoop.hbase.thrift; package org.apache.hadoop.hbase.thrift;
import static org.junit.Assert.assertNotNull;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.testclassification.ClientTests; import org.apache.hadoop.hbase.testclassification.ClientTests;
import org.apache.hadoop.hbase.testclassification.MediumTests; import org.apache.hadoop.hbase.testclassification.MediumTests;
import org.junit.ClassRule;
import org.junit.Test; import org.junit.Test;
import org.junit.experimental.categories.Category; import org.junit.experimental.categories.Category;
import static org.junit.Assert.assertNotNull;
@Category({ ClientTests.class, MediumTests.class}) @Category({ ClientTests.class, MediumTests.class})
public class TestBindExceptionHandling { public class TestBindExceptionHandling {
@ClassRule
public static final HBaseClassTestRule CLASS_RULE =
HBaseClassTestRule.forClass(TestBindExceptionHandling.class);
/** /**
* See if random port choosing works around port clashes * See if random port choosing works around port clashes
*/ */