• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java BooleanSubject类的典型用法和代码示例

java 2次浏览

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

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

示例1: assertMatchesFilterFromFilename

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
@CheckReturnValue
private BooleanSubject assertMatchesFilterFromFilename(String flagFilter, String filenameFilter) {
  return assertWithMessage(
          "The split flag '%s' would be a match for a filename containing '%s'",
          flagFilter, filenameFilter)
      .that(
          SplitConfigurationFilter.fromSplitFlag(flagFilter)
              .matchesFilterFromFilename(
                  SplitConfigurationFilter.fromFilenameSuffix(filenameFilter)));
}
 

开发者ID:bazelbuild,
项目名称:bazel,
代码行数:11,
代码来源:SplitConfigurationFilterTest.java

示例2: assertMatchesConfigurationFromFilename

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
@CheckReturnValue
private BooleanSubject assertMatchesConfigurationFromFilename(
    String flagConfiguration, String fileConfiguration) {
  return assertWithMessage(
          "The split flag '%s' would be a match for a filename containing '%s'",
          flagConfiguration, fileConfiguration)
      .that(
          ResourceConfiguration.fromString(flagConfiguration)
              .matchesConfigurationFromFilename(
                  ResourceConfiguration.fromString(fileConfiguration)));
}
 

开发者ID:bazelbuild,
项目名称:bazel,
代码行数:12,
代码来源:SplitConfigurationFilterTest.java

示例3: assertIsPrefiltering

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
private BooleanSubject assertIsPrefiltering(
    boolean hasConfigurationFilters, boolean hasDensities, FilterBehavior behavior)
    throws Exception {
  return assertThat(
      makeResourceFilter(
              hasConfigurationFilters ? "en" : "", hasDensities ? "hdpi" : "", behavior)
          .isPrefiltering());
}
 

开发者ID:bazelbuild,
项目名称:bazel,
代码行数:9,
代码来源:ResourceFilterFactoryTest.java

示例4: assertCachedTreeState

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
private static BooleanSubject assertCachedTreeState(TransformWork work) {
  return assertThat(isCachedTreeState(work.getTreeState()));
}
 

开发者ID:google,
项目名称:copybara,
代码行数:4,
代码来源:SequenceTest.java

示例5: assertThat

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
private static BooleanSubject assertThat(boolean subject) {
  return Truth.assertThat(subject);
}
 

开发者ID:bazelbuild,
项目名称:rules_closure,
代码行数:4,
代码来源:WebpathTest.java

示例6: assertThat

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
public static BooleanSubject assertThat(@Nullable Boolean target) {
    return assert_().that(target);
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:4,
代码来源:TruthHelper.java

示例7: assertNameIsClassNameWithT

点赞 2

import com.google.common.truth.BooleanSubject; //导入依赖的package包/类
private static BooleanSubject assertNameIsClassNameWithT(String s) {
  return assertThat(TypeParameterNaming.matchesClassWithT(s)).named(s);
}
 

开发者ID:google,
项目名称:error-prone,
代码行数:4,
代码来源:TypeParameterNamingTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)