Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 890 for Booleans (0.05 sec)

  1. guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 2, new boolean[] {true});
    
        testRotate(new boolean[] {true, false}, -3, new boolean[] {false, true});
        testRotate(new boolean[] {true, false}, -1, new boolean[] {false, true});
        testRotate(new boolean[] {true, false}, -2, new boolean[] {true, false});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportInternalTest.java

                "true,true,false", "true,false,true", "false,true,true", "false,false,false" })
        void disconnect_flagCombinations(boolean hard, boolean inuse, boolean expected) throws Exception {
            when(transport.disconnect(anyBoolean(), anyBoolean())).thenAnswer(inv -> {
                boolean h = inv.getArgument(0);
                boolean u = inv.getArgument(1);
                // Arbitrary behavior mapping for test purposes
                return (h && !u) || (!h && u);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        }
    
        @ParameterizedTest
        @ValueSource(booleans = { true, false })
        @DisplayName("isOpen delegates to handle.isOpen")
        void isOpen_delegates(boolean state) throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            when(handle.isOpen()).thenReturn(state);
    
            // Act
            boolean result = out.isOpen();
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        // Happy path: shouldForceSigning returns the configured value
        @ParameterizedTest
        @ValueSource(booleans = { true, false })
        @DisplayName("shouldForceSigning returns stubbed boolean value")
        void shouldForceSigningReturns(boolean expected) {
            when(locator.shouldForceSigning()).thenReturn(expected);
    
            boolean result = locator.shouldForceSigning();
    
            assertEquals(expected, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        // Happy path: isInUse returns the mocked state
        @ParameterizedTest
        @DisplayName("isInUse reflects current mocked state")
        @ValueSource(booleans = { true, false })
        void isInUse_variants(boolean inUse) {
            when(session.isInUse()).thenReturn(inUse);
    
            boolean result = session.isInUse();
    
            assertEquals(inUse, result);
            verify(session, times(1)).isInUse();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbCopyUtilTest.java

    public class SmbCopyUtilTest {
    
        // --- Tests for openCopyTargetFile ---
    
        @ParameterizedTest
        @ValueSource(booleans = { true, false })
        @DisplayName("openCopyTargetFile sets correct access flags depending on alsoRead")
        void openCopyTargetFile_accessMask_respectsAlsoRead(boolean alsoRead) throws Exception {
            // Arrange
            SmbFile dest = mock(SmbFile.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/response-model.md

    You can use **type annotations** the same way you would for input data in function **parameters**, you can use Pydantic models, lists, dictionaries, scalar values like integers, booleans, etc.
    
    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    FastAPI will use this return type to:
    
    * **Validate** the returned data.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 16K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    	return mustReplicateOptions{
    		meta:               meta,
    		status:             status,
    		opType:             op,
    		replicationRequest: opts.ReplicationRequest,
    	}
    }
    
    // mustReplicate returns 2 booleans - true if object meets replication criteria and true if replication is to be done in
    // a synchronous manner.
    func mustReplicate(ctx context.Context, bucket, object string, mopts mustReplicateOptions) (dsc ReplicateDecision) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

            case null -> null;
            case Boolean b -> b;
            case Number n -> n.intValue() != 0;
            case String s -> switch (s.toLowerCase()) {
            case "true" -> Boolean.TRUE;
            case "false", "0" -> Boolean.FALSE;
            default -> Boolean.TRUE;
            };
            default -> Boolean.TRUE;
            };
        }
    
        /**
         * Converts to {@literal boolean}.
         *
         * @param o
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

        }
    
        // Test LdapManager implementation
        private static class TestLdapManager extends LdapManager {
            boolean insertCalled = false;
            boolean deleteCalled = false;
            boolean changePasswordCalled = false;
            boolean applyCalled = false;
            boolean applyModifiesUser = false;
    
            User insertedUser;
            User deletedUser;
            User appliedUser;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top