Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,230 for Context (0.18 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            @Test
            @DisplayName("Should handle null context in array")
            void testNullContextInArray() {
                CreateContextRequest[] contexts = new CreateContextRequest[4];
                contexts[0] = new MockCreateContextRequest("FIRST");
                contexts[1] = null; // Null context
                contexts[2] = new MockCreateContextRequest("THIRD");
                contexts[3] = new MockCreateContextRequest("FOURTH");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            DirectoryLeaseContext context = new DirectoryLeaseContext(key, leaseState, scope);
    
            assertEquals(key, context.getLeaseKey());
            assertEquals(leaseState, context.getLeaseState());
            assertEquals(scope, context.getCacheScope());
            assertEquals(30000L, context.getMaxCacheAge());
            assertTrue(context.isNotificationEnabled());
            assertEquals(0, context.getNotificationFilter());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    testEncryptionKey, testDecryptionKey);
    
            // When/Then - Multiple closes should be safe
            assertDoesNotThrow(() -> {
                context.close();
                context.close();
                context.close();
            });
    
            assertTrue(context.isClosed());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/PreauthIntegrityService.java

                throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId);
            }
    
            try {
                byte[] newHash = calculateHash(context.getCurrentHash(), messageData, context.getHashAlgorithm());
                context.updateHash(newHash);
    
                log.debug("Updated preauth hash for session {} with {} bytes of data", sessionId, messageData.length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. cmd/object_api_suite_test.go

    }
    
    // Tests validate PutObject without prefix.
    func testPutObject(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	content := []byte("testcontent")
    	length := int64(len(content))
    	readerEOF := newTestReaderEOF(content)
    	readerNoEOF := newTestReaderNoEOF(content)
    	err := obj.MakeBucket(context.Background(), "bucket", MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/CIFSContext.java

        CIFSContext withDefaultCredentials();
    
        /**
         * Create a child context with anonymous credentials
         *
         * @return a child context using anonymous credentials
         */
        CIFSContext withAnonymousCredentials();
    
        /**
         * Create a child context with guest credentials
         *
         * @return a child context using guest credentials
         */
        CIFSContext withGuestCrendentials();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

                String result = upgradeGoal.testDoUpgradeLogic(context, "4.0.0");
    
                assertEquals("4.0.0", result);
            }
    
            @Test
            @DisplayName("should prioritize explicit model over --all option")
            void shouldPrioritizeExplicitModelOverAllOption() {
                UpgradeContext context =
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/HelpTest.java

        }
    
        @Test
        void testHelpLogsMessages() throws Exception {
            UpgradeContext context = createMockContext();
    
            help.execute(context);
    
            // Verify that logger.info was called multiple times
            // We can't easily verify the exact content without capturing the logger output,
            // but we can verify that the method executes without errors
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Aug 29 12:46:51 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. internal/logger/audit.go

    // SetAuditEntry sets Audit info in the context.
    func SetAuditEntry(ctx context.Context, audit *audit.Entry) context.Context {
    	if ctx == nil {
    		LogIf(context.Background(), "audit", fmt.Errorf("context is nil"))
    		return nil
    	}
    	return context.WithValue(ctx, contextAuditKey, audit)
    }
    
    // GetAuditEntry returns Audit entry if set.
    func GetAuditEntry(ctx context.Context) *audit.Entry {
    	if ctx != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. cmd/logging.go

    }
    
    func rebalanceLogIf(ctx context.Context, err error, errKind ...any) {
    	logger.LogIf(ctx, "rebalance", err, errKind...)
    }
    
    func rebalanceLogEvent(ctx context.Context, msg string, args ...any) {
    	logger.Event(ctx, "rebalance", msg, args...)
    }
    
    func adminLogIf(ctx context.Context, err error, errKind ...any) {
    	logger.LogIf(ctx, "admin", err, errKind...)
    }
    
    func authNLogIf(ctx context.Context, err error, errKind ...any) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top