Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 1,064 for EXPECTED (0.19 sec)

  1. guava-tests/test/com/google/common/base/SplitterTest.java

                .split("boy  : tom , girl: tina , cat  : kitty , dog: tommy ");
        ImmutableMap<String, String> expected =
            ImmutableMap.of("boy", "tom", "girl", "tina", "cat", "kitty", "dog", "tommy");
        assertThat(m).isEqualTo(expected);
        assertThat(m.entrySet()).containsExactlyElementsIn(expected.entrySet()).inOrder();
      }
    
      public void testMapSplitter_trimmedEntries() {
        Map<String, String> m =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            try {
                validator.validateBuffer(null, 50, 200); // Will fail
            } catch (SmbException e) {
                // Expected
            }
    
            try {
                validator.safeAdd(Integer.MAX_VALUE, 1); // Will fail
            } catch (SmbException e) {
                // Expected
            }
    
            stats = validator.getStats();
            assertTrue(stats.getTotalValidations() > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        ThrowOnRunService service = new ThrowOnRunService();
    
        service.startAsync();
        IllegalStateException expected =
            assertThrows(IllegalStateException.class, () -> service.awaitTerminated());
        executionThread.join();
        assertThat(expected).hasCauseThat().isEqualTo(service.failureCause());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        assertTrue(service.shutDownCalled);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
        assertEquals(expected, CharSource.concat(c1, c2, c3).read());
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3).iterator()).read());
        assertFalse(CharSource.concat(c1, c2, c3).isEmpty());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. cmd/config-encrypted_test.go

    			if err != nil && test.success {
    				t.Errorf("Expected success, saw failure %v", err)
    			}
    			if err == nil && !test.success {
    				t.Error("Expected failure, saw success")
    			}
    			if test.success {
    				if !bytes.Equal(ddata, data) {
    					t.Errorf("Expected %s, got %s", string(data), string(ddata))
    				}
    			}
    		})
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

        @MethodSource("preferredMechData_nonAnonymous")
        void isPreferredMech_nonAnonymous(ASN1ObjectIdentifier oid, boolean expected) {
            Kerb5Authenticator auth = new Kerb5Authenticator(new Subject());
            assertEquals(expected, auth.isPreferredMech(oid));
        }
    
        static Object[][] preferredMechData_anonymous() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ResolverTypeTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link ResolverType} enum.
     * This class ensures that the enum constants are defined as expected.
     */
    class ResolverTypeTest {
    
        /**
         * Tests that all expected enum constants exist.
         */
        @Test
        void testEnumConstants() {
            // Verify that each enum constant exists and can be referenced
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/witness/WitnessEnumTest.java

     */
    public class WitnessEnumTest {
    
        @Test
        void testWitnessServiceTypes() {
            assertEquals(4, WitnessServiceType.values().length);
    
            // Verify all expected types are present
            assertNotNull(WitnessServiceType.CLUSTER_WITNESS);
            assertNotNull(WitnessServiceType.FILE_SERVER_WITNESS);
            assertNotNull(WitnessServiceType.SCALE_OUT_WITNESS);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        ExecutionError expected = assertThrows(ExecutionError.class, () -> cache.get(new Object()));
        assertThat(expected).hasCauseThat().isSameInstanceAs(e);
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(1, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
          throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top