当前位置: 首页>>代码示例>>Java>>正文


Java SubjectFactory类代码示例

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


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

示例1: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<PredictionSubject, Prediction> type() {
  return new SubjectFactory<PredictionSubject, Prediction>() {
    @Override
    public PredictionSubject getSubject(FailureStrategy fs, Prediction that) {
      return new PredictionSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:PredictionSubject.java

示例2: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static <K, V> SubjectFactory<ArrayMapSubject<K, V>, ArrayMap<K, V>> type() {
  return new SubjectFactory<ArrayMapSubject<K, V>, ArrayMap<K, V>>() {
    @Override
    public ArrayMapSubject<K, V> getSubject(FailureStrategy fs, ArrayMap<K, V> that) {
      return new ArrayMapSubject<K, V>(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:ArrayMapSubject.java

示例3: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<DetectedActivitySubject, DetectedActivity> type() {
  return new SubjectFactory<DetectedActivitySubject, DetectedActivity>() {
    @Override
    public DetectedActivitySubject getSubject(FailureStrategy fs, DetectedActivity that) {
      return new DetectedActivitySubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:DetectedActivitySubject.java

示例4: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<TabLayoutSubject, TabLayout> type() {
  return new SubjectFactory<TabLayoutSubject, TabLayout>() {
    @Override
    public TabLayoutSubject getSubject(FailureStrategy fs, TabLayout that) {
      return new TabLayoutSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:TabLayoutSubject.java

示例5: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<CompoundButtonSubject, CompoundButton> type() {
  return new SubjectFactory<CompoundButtonSubject, CompoundButton>() {
    @Override
    public CompoundButtonSubject getSubject(FailureStrategy fs, CompoundButton that) {
      return new CompoundButtonSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:CompoundButtonSubject.java

示例6: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<ServiceStateSubject, ServiceState> type() {
  return new SubjectFactory<ServiceStateSubject, ServiceState>() {
    @Override
    public ServiceStateSubject getSubject(FailureStrategy fs, ServiceState that) {
      return new ServiceStateSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:ServiceStateSubject.java

示例7: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<IntentSubject, Intent> type() {
  return new SubjectFactory<IntentSubject, Intent>() {
    @Override
    public IntentSubject getSubject(FailureStrategy fs, Intent that) {
      return new IntentSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:IntentSubject.java

示例8: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<FragmentManagerSubject, FragmentManager> type() {
  return new SubjectFactory<FragmentManagerSubject, FragmentManager>() {
    @Override
    public FragmentManagerSubject getSubject(FailureStrategy fs, FragmentManager that) {
      return new FragmentManagerSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:FragmentManagerSubject.java

示例9: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<LoaderManagerSubject, LoaderManager> type() {
  return new SubjectFactory<LoaderManagerSubject, LoaderManager>() {
    @Override
    public LoaderManagerSubject getSubject(FailureStrategy fs, LoaderManager that) {
      return new LoaderManagerSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:LoaderManagerSubject.java

示例10: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<FragmentSubject, Fragment> type() {
  return new SubjectFactory<FragmentSubject, Fragment>() {
    @Override
    public FragmentSubject getSubject(FailureStrategy fs, Fragment that) {
      return new FragmentSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:FragmentSubject.java

示例11: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<PictureSubject, Picture> type() {
  return new SubjectFactory<PictureSubject, Picture>() {
    @Override
    public PictureSubject getSubject(FailureStrategy fs, Picture that) {
      return new PictureSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:PictureSubject.java

示例12: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<MediaControllerSubject, MediaController> type() {
  return new SubjectFactory<MediaControllerSubject, MediaController>() {
    @Override
    public MediaControllerSubject getSubject(FailureStrategy fs, MediaController that) {
      return new MediaControllerSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:MediaControllerSubject.java

示例13: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<SensorSubject, Sensor> type() {
  return new SubjectFactory<SensorSubject, Sensor>() {
    @Override
    public SensorSubject getSubject(FailureStrategy fs, Sensor that) {
      return new SensorSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:SensorSubject.java

示例14: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<AccessibilityEventSubject, AccessibilityEvent> type() {
  return new SubjectFactory<AccessibilityEventSubject, AccessibilityEvent>() {
    @Override
    public AccessibilityEventSubject getSubject(FailureStrategy fs, AccessibilityEvent that) {
      return new AccessibilityEventSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:AccessibilityEventSubject.java

示例15: type

import com.google.common.truth.SubjectFactory; //导入依赖的package包/类
public static SubjectFactory<AnimationSubject, Animation> type() {
  return new SubjectFactory<AnimationSubject, Animation>() {
    @Override
    public AnimationSubject getSubject(FailureStrategy fs, Animation that) {
      return new AnimationSubject(fs, that);
    }
  };
}
 
开发者ID:pkware,项目名称:truth-android,代码行数:9,代码来源:AnimationSubject.java


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