Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for Bob (0.05 seconds)

  1. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(-1, Iterables.indexOf(list, equalTo("jack")));
      }
    
      public void testIndexOf_withDuplicates() {
        List<String> list = Lists.newArrayList("mary", "bob", "bob", "bob", "sam");
        assertEquals(0, Iterables.indexOf(list, equalTo("mary")));
        assertEquals(1, Iterables.indexOf(list, equalTo("bob")));
        assertEquals(4, Iterables.indexOf(list, equalTo("sam")));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/OptionalTest.java

      public void testOf_null() {
        assertThrows(NullPointerException.class, () -> Optional.of(null));
      }
    
      public void testFromNullable() {
        Optional<String> optionalName = Optional.fromNullable("bob");
        assertThat(optionalName.get()).isEqualTo("bob");
      }
    
      public void testFromNullable_null() {
        // not promised by spec, but easier to test
        assertThat(Optional.fromNullable(null)).isSameInstanceAs(Optional.absent());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

            String template = "Hello ${name} and ${other}";
            Map<String, Object> paramMap = new HashMap<>();
            paramMap.put("name", "Bob");
            // "other" parameter is missing
    
            Object result = scriptEngine.evaluate(template, paramMap);
            assertEquals("Hello Bob and ${other}", result);
        }
    
        // Test evaluate method with complex object as parameter
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/hash/HashTestUtils.java

       * 1-bit characteristics.
       *
       * <p>There is more general code provided by Bob Jenkins to test arbitrarily sized characteristics
       * using the magic of gaussian elimination: http://burtleburtle.net/bob/crypto/findingc.html.
       */
      static void checkNo2BitCharacteristics(HashFunction function) {
        Random rand = new Random(0);
        int keyBits = 32;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

          val originalRequest = chain.request()
          val originalResponse =
            chain.proceed(
              originalRequest
                .newBuilder()
                .addHeader("Request-Interceptor", "Bob") // 2. Added second.
                .build(),
            )
          originalResponse
            .newBuilder()
            .addHeader("Response-Interceptor", "Cupcake") // 3. Added third.
            .build()
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

    import org.junit.After;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /**
     * Unit test for {@link FinalizableReferenceQueue}.
     *
     * @author Bob Lee
     */
    @J2ktIncompatible
    @GwtIncompatible
    @RunWith(JUnit4.class)
    @NullUnmarked
    public class FinalizableReferenceQueueTest {
    
      private @Nullable FinalizableReferenceQueue frq;
    
      @After
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Feb 27 21:20:19 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/MIENameTest.java

            byte[] der;
            try {
                der = oid.toASN1Primitive().getEncoded();
            } catch (java.io.IOException e) {
                throw new RuntimeException(e);
            }
            byte[] nameBytes = "bob".getBytes(StandardCharsets.US_ASCII);
    
            return Stream.of(
                    // Too short for TOK_ID + MECH_OID_LEN
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/MapMaker.java

     * java.util.WeakHashMap}, but note that it compares keys using object identity whereas {@code
     * WeakHashMap} uses {@link Object#equals}.
     *
     * @author Bob Lee
     * @author Charles Fry
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @J2ktIncompatible
    @GwtCompatible
    public final class MapMaker {
      private static final int DEFAULT_INITIAL_CAPACITY = 16;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/MapMaker.java

     * java.util.WeakHashMap}, but note that it compares keys using object identity whereas {@code
     * WeakHashMap} uses {@link Object#equals}.
     *
     * @author Bob Lee
     * @author Charles Fry
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @J2ktIncompatible
    @GwtCompatible
    public final class MapMaker {
      private static final int DEFAULT_INITIAL_CAPACITY = 16;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            params1.put("name", "Alice");
    
            final Map<String, Object> params2 = new HashMap<>();
            params2.put("name", "Bob");
    
            assertEquals("Alice", groovyEngine.evaluate("return name", params1));
            assertEquals("Bob", groovyEngine.evaluate("return name", params2));
            assertEquals("Alice", groovyEngine.evaluate("return name", params1));
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
Back to Top