Java 类org.apache.hadoop.hbase.util.BuilderStyleTest 实例源码

项目:ditb    文件:TestHColumnDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HColumnDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HColumnDescriptor hcd
   *   = new HColumnDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(HColumnDescriptor.class);
}
项目:ditb    文件:TestHTableDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HTableDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HTableDescriptor htd
   *   = new HTableDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(HTableDescriptor.class);
}
项目:pbase    文件:TestHColumnDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HColumnDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HColumnDescriptor hcd
   *   = new HColumnDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(HColumnDescriptor.class);
}
项目:pbase    文件:TestHTableDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HTableDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HTableDescriptor htd
   *   = new HTableDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(HTableDescriptor.class);
}
项目:hbase    文件:TestReplicationPeerConfig.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* ReplicationPeerConfig should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * ReplicationPeerConfig htd
   *   = new ReplicationPeerConfig()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(ReplicationPeerConfig.class);
}
项目:hbase    文件:TestColumnFamilyDescriptorBuilder.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HColumnDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HColumnDescriptor hcd
   *   = new HColumnDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(ColumnFamilyDescriptorBuilder.class);
}
项目:hbase    文件:TestImmutableHTableDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
/* ImmutableHTableDescriptor should have a builder style setup where setXXX/addXXX methods
 * can be chainable together:
 * . For example:
 * ImmutableHTableDescriptor d
 *   = new ImmutableHTableDescriptor()
 *     .setFoo(foo)
 *     .setBar(bar)
 *     .setBuz(buz)
 *
 * This test ensures that all methods starting with "set" returns the declaring object
 */

    BuilderStyleTest.assertClassesAreBuilderStyle(ImmutableHTableDescriptor.class);
}
项目:hbase    文件:TestHColumnDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HColumnDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HColumnDescriptor hcd
   *   = new HColumnDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(HColumnDescriptor.class);
}
项目:hbase    文件:TestQuotaFilter.java   
@Test
public void testClassMethodsAreBuilderStyle() {
/* ReplicationPeerConfig should have a builder style setup where setXXX/addXXX methods
 * can be chainable together:
 * . For example:
 * QuotaFilter qf
 *   = new QuotaFilter()
 *     .setFoo(foo)
 *     .setBar(bar)
 *     .setBuz(buz)
 *
 * This test ensures that all methods starting with "set" returns the declaring object
 */

    BuilderStyleTest.assertClassesAreBuilderStyle(QuotaFilter.class);
}
项目:hbase    文件:TestHTableDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  /* HTableDescriptor should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * HTableDescriptor htd
   *   = new HTableDescriptor()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  BuilderStyleTest.assertClassesAreBuilderStyle(HTableDescriptor.class);
}
项目:ditb    文件:TestOperation.java   
@Test
@SuppressWarnings("rawtypes")
public void testOperationSubClassMethodsAreBuilderStyle() {
  /* All Operation subclasses should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * Scan scan = new Scan()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  // TODO: We should ensure all subclasses of Operation is checked.
  Class[] classes = new Class[] {
      Operation.class,
      OperationWithAttributes.class,
      Mutation.class,
      Query.class,
      Delete.class,
      Increment.class,
      Append.class,
      Put.class,
      Get.class,
      Scan.class};

  BuilderStyleTest.assertClassesAreBuilderStyle(classes);
}
项目:pbase    文件:TestOperation.java   
@Test
@SuppressWarnings("rawtypes")
public void testOperationSubClassMethodsAreBuilderStyle() {
  /* All Operation subclasses should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * Scan scan = new Scan()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  // TODO: We should ensure all subclasses of Operation is checked.
  Class[] classes = new Class[] {
      Operation.class,
      OperationWithAttributes.class,
      Mutation.class,
      Query.class,
      Delete.class,
      Increment.class,
      Append.class,
      Put.class,
      Get.class,
      Scan.class};

  BuilderStyleTest.assertClassesAreBuilderStyle(classes);
}
项目:hbase    文件:TestOperation.java   
@Test
@SuppressWarnings("rawtypes")
public void testOperationSubClassMethodsAreBuilderStyle() {
  /* All Operation subclasses should have a builder style setup where setXXX/addXXX methods
   * can be chainable together:
   * . For example:
   * Scan scan = new Scan()
   *     .setFoo(foo)
   *     .setBar(bar)
   *     .setBuz(buz)
   *
   * This test ensures that all methods starting with "set" returns the declaring object
   */

  // TODO: We should ensure all subclasses of Operation is checked.
  Class[] classes = new Class[] {
      Operation.class,
      OperationWithAttributes.class,
      Mutation.class,
      Query.class,
      Delete.class,
      Increment.class,
      Append.class,
      Put.class,
      Get.class,
      Scan.class};

  BuilderStyleTest.assertClassesAreBuilderStyle(classes);
}
项目:hbase    文件:TestImmutableHColumnDescriptor.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  BuilderStyleTest.assertClassesAreBuilderStyle(ImmutableHColumnDescriptor.class);
}
项目:hbase    文件:TestTableDescriptorBuilder.java   
@Test
public void testClassMethodsAreBuilderStyle() {
  BuilderStyleTest.assertClassesAreBuilderStyle(TableDescriptorBuilder.class);
}