Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for getMethod (0.37 sec)

  1. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            method = Hoge.class.getMethod("list");
            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(List.class)));
    
            method = Hoge.class.getMethod("set");
            assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(Set.class)));
    
            method = Hoge.class.getMethod("map");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

      public void testBuildTesterRequirements_method() throws Exception {
        assertEquals(
            FeatureUtil.buildTesterRequirements(
                ExampleDerivedInterfaceTester.class.getMethod(
                    "testRequiringTwoExplicitDerivedFeatures")),
            new TesterRequirements(
                Sets.<Feature<?>>newHashSet(
                    ExampleBaseFeature.BASE_FEATURE_1,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.4K bytes
    - Viewed (2)
  3. guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

      public void testBuildTesterRequirements_method() throws Exception {
        assertEquals(
            FeatureUtil.buildTesterRequirements(
                ExampleDerivedInterfaceTester.class.getMethod(
                    "testRequiringTwoExplicitDerivedFeatures")),
            new TesterRequirements(
                Sets.<Feature<?>>newHashSet(
                    ExampleBaseFeature.BASE_FEATURE_1,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        }
        fail();
      }
    
      public void testStaticOneArgMethodsThatShouldPass() throws Exception {
        for (String methodName : STATIC_ONE_ARG_METHODS_SHOULD_PASS) {
          Method method = OneArg.class.getMethod(methodName, String.class);
          try {
            new NullPointerTester().testMethodParameter(new OneArg(), method, 0);
          } catch (AssertionFailedError unexpected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/TempFileCreator.java

             */
    
            Method currentMethod = processHandleClass.getMethod("current");
            Method infoMethod = processHandleClass.getMethod("info");
            Method userMethod = processHandleInfoClass.getMethod("user");
            Method orElseMethod = optionalClass.getMethod("orElse", Object.class);
    
            Object current = currentMethod.invoke(null);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE_INCLUDING_VIEWS;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        return Arrays.asList(
            getMethod("testSetCount_threeToThree_removeSupported"),
            getMethod("testSetCount_threeToZero_supported"),
            getMethod("testSetCount_threeToOne_supported"));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static Method getMethod(String methodName) {
        return Helpers.getMethod(AbstractMultisetSetCountTester.class, methodName);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        return Arrays.asList(
            getMethod("testSetCount_threeToThree_removeSupported"),
            getMethod("testSetCount_threeToZero_supported"),
            getMethod("testSetCount_threeToOne_supported"));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static Method getMethod(String methodName) {
        return Helpers.getMethod(AbstractMultisetSetCountTester.class, methodName);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      }
    
      private Object invokeMethod(String methodName, Object... arguments) throws Exception {
        return getMethod(methodName, arguments).invoke(lockLikeObject, arguments);
      }
    
      private Method getMethod(String methodName, Object... arguments) throws Exception {
        METHODS:
        for (Method method : lockLikeObject.getClass().getMethods()) {
          Class<?>[] parameterTypes = method.getParameterTypes();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        }
    
      private fun loomThreadFactory(): ThreadFactory {
        val ofVirtual = Thread::class.java.getMethod("ofVirtual").invoke(null)
    
        return Class.forName("java.lang.Thread\$Builder")
          .getMethod("factory")
          .invoke(ofVirtual) as ThreadFactory
      }
    
      private fun isLoom(): Boolean {
        return getPlatformSystemProperty() == LOOM_PROPERTY
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top