- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 2,952 for method (0.04 seconds)
-
src/test/java/jcifs/util/transport/RequestTest.java
// Test case for getCreditCost method int expectedCreditCost = 10; when(mockRequest.getCreditCost()).thenReturn(expectedCreditCost); int actualCreditCost = mockRequest.getCreditCost(); assertEquals(expectedCreditCost, actualCreditCost, "Credit cost should match the mocked value."); verify(mockRequest, times(1)).getCreditCost(); // Verify method was called once } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
} private static Set<Method> findInterruptibleMethods(Class<?> interfaceType) { Set<Method> set = new HashSet<>(); for (Method m : interfaceType.getMethods()) { if (declaresInterruptedEx(m)) { set.add(m); } } return set; } private static boolean declaresInterruptedEx(Method method) { for (Class<?> exType : method.getExceptionTypes()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 9.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java
? getAllStates() : invokeListMethod(method, args); } private Set<List<Integer>> getAllStates() { return allStates; } private Object invokeListMethod(Method method, Object[] args) throws Throwable { try { Object returnValue = method.invoke(delegate, args);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 6.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/TestingConventionsTasks.java
return false; } private boolean matchesTestMethodNamingConvention(Method method) { return method.getName().startsWith(TEST_METHOD_PREFIX) && Modifier.isStatic(method.getModifiers()) == false; } private boolean isAnnotated(Method method, Class<?> annotation) { for (Annotation presentAnnotation : method.getAnnotations()) { if (annotation.isAssignableFrom(presentAnnotation.getClass())) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 17.6K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/BeanDesc.java
/** * Returns the {@link MethodDesc} for the given parameter types. * * @param methodName * The method name. Must not be {@literal null} or empty string * @param paramTypes * The array of parameter types for the method * @return The {@link MethodDesc} for the given parameter types */ MethodDesc getMethodDesc(String methodName, Class<?>... paramTypes);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 24 01:52:43 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/PropertyDesc.java
/** * Returns the getter method. * * @return the getter method */ Method getReadMethod(); /** * Returns whether the property has a getter method. * * @return whether the property has a getter method */ boolean hasReadMethod(); /** * Returns the setter method. * * @return the setter method */ Method getWriteMethod();Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
assertEquals("", item.getNewInput()); item.setNewInput(null); assertNull(item.getNewInput()); } @Test public void test_getInput() { // Test getInput method StopwordsItem item1 = new StopwordsItem(1, "test"); assertEquals("test", item1.getInput()); StopwordsItem item2 = new StopwordsItem(2, ""); assertEquals("", item2.getInput());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java
// The actual client initialization happens lazily when needed } // Test that close method exists (inherited) @Test public void test_closeMethodExists() { // Test that close method is available (inherited from parent) try { // Just verify the method exists, don't actually call it crawlerEngineClient.getClass().getMethod("close"); assertTrue(true);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSinkTester.java
String name, CharSinkFactory factory, String string, String desc) { TestSuite stringSuite = new TestSuite(name + " [" + desc + "]"); for (Method method : testMethods) { stringSuite.addTest(new CharSinkTester(factory, string, name, desc, method)); } return stringSuite; } private final ImmutableList<String> lines; private final ImmutableList<String> expectedLines;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/SystemUtilTest.java
// 2. All methods should be static java.lang.reflect.Method[] methods = SystemUtil.class.getDeclaredMethods(); for (java.lang.reflect.Method method : methods) { if (!method.isSynthetic()) { // Ignore compiler-generated methods assertTrue("Method " + method.getName() + " should be static", java.lang.reflect.Modifier.isStatic(method.getModifiers())); } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.1K bytes - Click Count (0)