本文整理汇总了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"),
};
}
示例2: getContainsEntryWithIncomparableKeyMethod
import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
public static Method getContainsEntryWithIncomparableKeyMethod() {
return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableKey");
}
示例3: getSpliteratorNotImmutableCollectionAllowsRemoveMethod
import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
public static Method getSpliteratorNotImmutableCollectionAllowsRemoveMethod() {
return Helpers.getMethod(
CollectionSpliteratorTester.class, "testSpliteratorNotImmutable_CollectionAllowsRemove");
}
示例4: getMethod
import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
private static Method getMethod(String methodName) {
return Helpers.getMethod(BiMapInverseTester.class, methodName);
}
示例5: getMethod
import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
private static Method getMethod(String methodName) {
return Helpers.getMethod(AbstractMultisetSetCountTester.class, methodName);
}
示例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");
}
示例7: getContainsEntryWithIncomparableValueMethod
import com.google.common.collect.testing.Helpers; //导入方法依赖的package包/类
@GwtIncompatible // reflection
public static Method getContainsEntryWithIncomparableValueMethod() {
return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableValue");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}