• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java FeatureSpecificTestSuiteBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder的典型用法代码示例。如果您正苦于以下问题:Java FeatureSpecificTestSuiteBuilder类的具体用法?Java FeatureSpecificTestSuiteBuilder怎么用?Java FeatureSpecificTestSuiteBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FeatureSpecificTestSuiteBuilder类属于com.google.common.collect.testing包,在下文中一共展示了FeatureSpecificTestSuiteBuilder类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<ListMultimap<K, V>, Entry<K, V>>>
        parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return ListTestSuiteBuilder.using(
            new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:18,代码来源:ListMultimapTestSuiteBuilder.java


示例2: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>>
        parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return SetTestSuiteBuilder.using(
            new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:18,代码来源:SetMultimapTestSuiteBuilder.java


示例3: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>>
        parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return SortedSetTestSuiteBuilder.using(
            new SetMultimapTestSuiteBuilder.MultimapAsMapGetGenerator<K, V>(
                parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:19,代码来源:SortedSetMultimapTestSuiteBuilder.java


示例4: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<M, Map.Entry<K, V>>>
        parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return CollectionTestSuiteBuilder.using(
            new MultimapAsMapGetGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:17,代码来源:MultimapTestSuiteBuilder.java


示例5: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<?, ? extends
    OneSizeTestContainerGenerator<ListMultimap<K, V>, Entry<K, V>>> parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return ListTestSuiteBuilder.using(
        new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:sander120786,项目名称:guava-libraries,代码行数:17,代码来源:ListMultimapTestSuiteBuilder.java


示例6: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<?, ? extends
    OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>> parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return SetTestSuiteBuilder.using(
        new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:sander120786,项目名称:guava-libraries,代码行数:17,代码来源:SetMultimapTestSuiteBuilder.java


示例7: computeMultimapAsMapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapAsMapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<?, ? extends
    OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>> parentBuilder) {
  Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
  if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
    return new TestSuite();
  } else {
    return SortedSetTestSuiteBuilder.using(
        new SetMultimapTestSuiteBuilder.MultimapAsMapGetGenerator<K, V>(
            parentBuilder.getSubjectGenerator()))
        .withFeatures(features)
        .named(parentBuilder.getName() + ".asMap[].get[key]")
        .suppressing(parentBuilder.getSuppressedTests())
        .createTestSuite();
  }
}
 
开发者ID:sander120786,项目名称:guava-libraries,代码行数:18,代码来源:SortedSetMultimapTestSuiteBuilder.java


示例8: computeMultimapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<ListMultimap<K, V>, Entry<K, V>>>
        parentBuilder) {
  return ListTestSuiteBuilder.using(
          new MultimapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".get[key]")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:13,代码来源:ListMultimapTestSuiteBuilder.java


示例9: createDerivedSuites

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
protected List<TestSuite> createDerivedSuites(
    FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
        parentBuilder) {
  List<TestSuite> derivedSuites =
      new ArrayList<TestSuite>(super.createDerivedSuites(parentBuilder));

  derivedSuites.add(createElementSetTestSuite(parentBuilder));

  if (!parentBuilder.getFeatures().contains(NoRecurse.NO_ENTRY_SET)) {
    derivedSuites.add(
        SetTestSuiteBuilder.using(new EntrySetGenerator<E>(parentBuilder.getSubjectGenerator()))
            .named(getName() + ".entrySet")
            .withFeatures(computeEntrySetFeatures(parentBuilder.getFeatures()))
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite());
  }

  if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) {
    derivedSuites.add(
        MultisetTestSuiteBuilder.using(
                new ReserializedMultisetGenerator<E>(parentBuilder.getSubjectGenerator()))
            .named(getName() + " reserialized")
            .withFeatures(computeReserializedMultisetFeatures(parentBuilder.getFeatures()))
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite());
  }
  return derivedSuites;
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:30,代码来源:MultisetTestSuiteBuilder.java


示例10: createElementSetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
TestSuite createElementSetTestSuite(
    FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
        parentBuilder) {
  return SetTestSuiteBuilder.using(
          new ElementSetGenerator<E>(parentBuilder.getSubjectGenerator()))
      .named(getName() + ".elementSet")
      .withFeatures(computeElementSetFeatures(parentBuilder.getFeatures()))
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:11,代码来源:MultisetTestSuiteBuilder.java


示例11: computeMultimapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>>
        parentBuilder) {
  return SetTestSuiteBuilder.using(
          new MultimapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".get[key]")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:13,代码来源:SetMultimapTestSuiteBuilder.java


示例12: computeEntriesTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeEntriesTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Map.Entry<K, V>>>
        parentBuilder) {
  return SetTestSuiteBuilder.using(
          new EntriesGenerator<K, V>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeEntriesFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".entries")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:13,代码来源:SetMultimapTestSuiteBuilder.java


示例13: createElementSetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite createElementSetTestSuite(
    FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
        parentBuilder) {
  // TODO(lowasser): make a SortedElementSetGenerator
  return SetTestSuiteBuilder.using(
          new ElementSetGenerator<E>(parentBuilder.getSubjectGenerator()))
      .named(getName() + ".elementSet")
      .withFeatures(computeElementSetFeatures(parentBuilder.getFeatures()))
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:13,代码来源:SortedMultisetTestSuiteBuilder.java


示例14: computeMultimapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
TestSuite computeMultimapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>>
        parentBuilder) {
  return SortedSetTestSuiteBuilder.using(
          new SetMultimapTestSuiteBuilder.MultimapGetGenerator<K, V>(
              parentBuilder.getSubjectGenerator()))
      .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".get[key]")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:14,代码来源:SortedSetMultimapTestSuiteBuilder.java


示例15: createDerivedSuites

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
@Override
protected List<TestSuite> createDerivedSuites(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<M, Map.Entry<K, V>>>
        parentBuilder) {
  // TODO: Once invariant support is added, supply invariants to each of the
  // derived suites, to check that mutations to the derived collections are
  // reflected in the underlying map.

  List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder);

  if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) {
    derivedSuites.add(
        MultimapTestSuiteBuilder.using(
                new ReserializedMultimapGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
            .withFeatures(computeReserializedMultimapFeatures(parentBuilder.getFeatures()))
            .named(parentBuilder.getName() + " reserialized")
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite());
  }

  derivedSuites.add(
      MapTestSuiteBuilder.using(new AsMapGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
          .withFeatures(computeAsMapFeatures(parentBuilder.getFeatures()))
          .named(parentBuilder.getName() + ".asMap")
          .suppressing(parentBuilder.getSuppressedTests())
          .createTestSuite());

  derivedSuites.add(computeEntriesTestSuite(parentBuilder));
  derivedSuites.add(computeMultimapGetTestSuite(parentBuilder));
  derivedSuites.add(computeMultimapAsMapGetTestSuite(parentBuilder));
  derivedSuites.add(computeKeysTestSuite(parentBuilder));
  derivedSuites.add(computeValuesTestSuite(parentBuilder));

  return derivedSuites;
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:37,代码来源:MultimapTestSuiteBuilder.java


示例16: computeValuesTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
TestSuite computeValuesTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<M, Map.Entry<K, V>>>
        parentBuilder) {
  return CollectionTestSuiteBuilder.using(
          new ValuesGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeValuesFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".values")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:MultimapTestSuiteBuilder.java


示例17: computeEntriesTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
TestSuite computeEntriesTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<M, Map.Entry<K, V>>>
        parentBuilder) {
  return CollectionTestSuiteBuilder.using(
          new EntriesGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeEntriesFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".entries")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:MultimapTestSuiteBuilder.java


示例18: computeMultimapGetTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
TestSuite computeMultimapGetTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<M, Map.Entry<K, V>>>
        parentBuilder) {
  return CollectionTestSuiteBuilder.using(
          new MultimapGetGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".get[key]")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:MultimapTestSuiteBuilder.java


示例19: computeKeysTestSuite

import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder; //导入依赖的package包/类
TestSuite computeKeysTestSuite(
    FeatureSpecificTestSuiteBuilder<
            ?, ? extends OneSizeTestContainerGenerator<M, Map.Entry<K, V>>>
        parentBuilder) {
  return MultisetTestSuiteBuilder.using(
          new KeysGenerator<K, V, M>(parentBuilder.getSubjectGenerator()))
      .withFeatures(computeKeysFeatures(parentBuilder.getFeatures()))
      .named(parentBuilder.getName() + ".keys")
      .suppressing(parentBuilder.getSuppressedTests())
      .createTestSuite();
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:MultimapTestSuiteBuilder.java



注:本文中的com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Payload类代码示例发布时间:2022-05-23
下一篇:
Java ImageNotFoundException类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap