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


Java Helpers.getMethod方法代码示例

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


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

示例1: getHoleMethods

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instances for the test methods in this class that create a set with
 * a "hole" in it so that set tests of {@code ContiguousSet} can suppress them with {@code
 * FeatureSpecificTestSuiteBuilder.suppressing()}.
 */
/*
 * TODO(cpovirk): or we could make HOLES_FORBIDDEN a feature. Or we could declare that
 * implementations are permitted to throw IAE if a hole is requested, and we could update
 * test*Hole to permit IAE. (But might this ignore genuine bugs?) But see the TODO above
 * testLower, which could make this all unnecessary
 */
public static Method[] getHoleMethods() {
  return new Method[] {
    Helpers.getMethod(NavigableSetNavigationTester.class, "testLowerHole"),
    Helpers.getMethod(NavigableSetNavigationTester.class, "testFloorHole"),
    Helpers.getMethod(NavigableSetNavigationTester.class, "testCeilingHole"),
    Helpers.getMethod(NavigableSetNavigationTester.class, "testHigherHole"),
  };
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:20,代码来源:NavigableSetNavigationTester.java

示例2: getContainsEntryWithIncomparableKeyMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
public static Method getContainsEntryWithIncomparableKeyMethod() {
  return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableKey");
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:5,代码来源:MapEntrySetTester.java

示例3: getSpliteratorNotImmutableCollectionAllowsRemoveMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
public static Method getSpliteratorNotImmutableCollectionAllowsRemoveMethod() {
  return Helpers.getMethod(
      CollectionSpliteratorTester.class, "testSpliteratorNotImmutable_CollectionAllowsRemove");
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:6,代码来源:CollectionSpliteratorTester.java

示例4: getMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
private static Method getMethod(String methodName) {
  return Helpers.getMethod(BiMapInverseTester.class, methodName);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:5,代码来源:BiMapInverseTester.java

示例5: getMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
private static Method getMethod(String methodName) {
  return Helpers.getMethod(AbstractMultisetSetCountTester.class, methodName);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:5,代码来源:AbstractMultisetSetCountTester.java

示例6: getMergeNullValueMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link #testMergeNullValue()} so that tests of {@link
 * Hashtable} can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
 */
@GwtIncompatible // reflection
public static Method getMergeNullValueMethod() {
  return Helpers.getMethod(MapMergeTester.class, "testMergeNullValue");
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:9,代码来源:MapMergeTester.java

示例7: getContainsEntryWithIncomparableValueMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
public static Method getContainsEntryWithIncomparableValueMethod() {
  return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableValue");
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:5,代码来源:MapEntrySetTester.java

示例8: getAddNullSupportedMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link #testAdd_nullSupported()} so
 * that tests of {@link
 * java.util.Collections#checkedCollection(java.util.Collection, Class)} can
 * suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}
 * until <a
 * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6409434">Sun bug
 * 6409434</a> is fixed. It's unclear whether nulls were to be permitted or
 * forbidden, but presumably the eventual fix will be to permit them, as it
 * seems more likely that code would depend on that behavior than on the
 * other. Thus, we say the bug is in add(), which fails to support null.
 */
@GwtIncompatible // reflection
public static Method getAddNullSupportedMethod() {
  return Helpers.getMethod(CollectionAddTester.class, "testAdd_nullSupported");
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:17,代码来源:CollectionAddTester.java

示例9: getCreateWithNullKeyUnsupportedMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link
 * #testCreateWithNullKeyUnsupported()} so that tests can suppress it
 * with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a
 * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045147">Sun
 * bug 5045147</a> is fixed.
 */
@GwtIncompatible // reflection
public static Method getCreateWithNullKeyUnsupportedMethod() {
  return Helpers.getMethod(MapCreationTester.class, "testCreateWithNullKeyUnsupported");
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:12,代码来源:MapCreationTester.java

示例10: getAddUnsupportedNotPresentMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link
 * #testAdd_unsupportedNotPresent()} so that tests can suppress it with
 * {@code FeatureSpecificTestSuiteBuilder.suppressing()} while we figure out
 * what to do with <a href="http://goo.gl/qJBruX">{@code ConcurrentHashMap}
 * support for {@code entrySet().add()}</a>.
 */
@GwtIncompatible // reflection
public static Method getAddUnsupportedNotPresentMethod() {
  return Helpers.getMethod(CollectionAddTester.class, "testAdd_unsupportedNotPresent");
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:12,代码来源:CollectionAddTester.java

示例11: getAddAllNullUnsupportedMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link
 * #testAddAll_nullUnsupported()} so that tests can suppress it with {@code
 * FeatureSpecificTestSuiteBuilder.suppressing()} until <a
 * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045147">Sun
 * bug 5045147</a> is fixed.
 */
@GwtIncompatible // reflection
public static Method getAddAllNullUnsupportedMethod() {
  return Helpers.getMethod(CollectionAddAllTester.class, "testAddAll_nullUnsupported");
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:CollectionAddAllTester.java

示例12: getListIteratorFullyModifiableMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for
 * {@link #testListIterator_fullyModifiable()} so that tests of
 * {@link CopyOnWriteArraySet} can suppress it with
 * {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a
 * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6570575">Sun bug
 * 6570575</a> is fixed.
 */
@GwtIncompatible // reflection
public static Method getListIteratorFullyModifiableMethod() {
  return Helpers.getMethod(ListListIteratorTester.class, "testListIterator_fullyModifiable");
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:13,代码来源:ListListIteratorTester.java

示例13: getAddAllUnsupportedSomePresentMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link
 * #testAddAll_unsupportedSomePresent()} so that tests can suppress it with
 * {@code FeatureSpecificTestSuiteBuilder.suppressing()} while we figure out
 * what to do with <a href="http://goo.gl/qJBruX">{@code ConcurrentHashMap}
 * support for {@code entrySet().add()}</a>.
 */
@GwtIncompatible // reflection
public static Method getAddAllUnsupportedSomePresentMethod() {
  return Helpers.getMethod(CollectionAddAllTester.class, "testAddAll_unsupportedSomePresent");
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:CollectionAddAllTester.java

示例14: getAddSupportedNullPresentMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for
 * {@link #testAdd_supportedNullPresent()} so that tests can suppress it. See
 * {@link CollectionAddTester#getAddNullSupportedMethod()} for details.
 */
@GwtIncompatible // reflection
public static Method getAddSupportedNullPresentMethod() {
  return Helpers.getMethod(ListAddTester.class, "testAdd_supportedNullPresent");
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:10,代码来源:ListAddTester.java

示例15: getPutAllNullKeyUnsupportedMethod

import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
/**
 * Returns the {@link Method} instance for {@link
 * #testPutAll_nullKeyUnsupported()} so that tests can suppress it with {@code
 * FeatureSpecificTestSuiteBuilder.suppressing()} until <a
 * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045147">Sun
 * bug 5045147</a> is fixed.
 */
@GwtIncompatible // reflection
public static Method getPutAllNullKeyUnsupportedMethod() {
  return Helpers.getMethod(MapPutAllTester.class, "testPutAll_nullKeyUnsupported");
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:12,代码来源:MapPutAllTester.java


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