Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for Eq (0.01 sec)

  1. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

                mockedNtlmAuthenticator.when(NtlmAuthenticator::getDefault).thenReturn(mockNtlmAuthenticator);
                mockedNtlmAuthenticator.when(() -> NtlmAuthenticator.requestNtlmPasswordAuthentication(eq(mockNtlmAuthenticator),
                        eq("locationHint"), eq((SmbAuthException) null))).thenReturn(mockNtlmPasswordAuthenticator);
    
                // Perform the renewal
                boolean renewed = wrapper.renewCredentials("locationHint", null);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. clause/where_test.go

    			}},
    			"SELECT * FROM `users` WHERE `users`.`id` = ? OR `name` <> ? AND `age` > ?",
    			[]interface{}{"1", "jinzhu", 18},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Where{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. clause/expression.go

    		builder.WriteByte(')')
    	}
    }
    
    // Eq equal to for where
    type Eq struct {
    	Column interface{}
    	Value  interface{}
    }
    
    func (eq Eq) Build(builder Builder) {
    	builder.WriteQuoted(eq.Column)
    
    	switch eq.Value.(type) {
    	case []string, []int, []int32, []int64, []uint, []uint32, []uint64, []interface{}:
    		rv := reflect.ValueOf(eq.Value)
    		if rv.Len() == 0 {
    			builder.WriteString(" IN (NULL)")
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Nov 04 07:04:52 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            doThrow(new jcifs.CIFSException("invalid dfs name")).when(transport)
                    .getDfsReferrals(eq(ctx), eq(emptyName), any(), any(), anyInt());
    
            assertThrows(jcifs.CIFSException.class, () -> transport.getDfsReferrals(ctx, emptyName, "h", "d", 1));
            verify(transport).getDfsReferrals(eq(ctx), eq(emptyName), eq("h"), eq("d"), eq(1));
        }
    
        // Edge case: test with null name
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(internal.getSmbSession(eq(ctx), eq("server.test"), isNull())).thenReturn(session);
            when(session.unwrap(SmbSessionInternal.class)).thenReturn(session);
            when(session.getSmbTree(eq("IPC$"), isNull())).thenReturn(tree);
            when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree);
    
            doReturn(mockTransport).when(poolSpy).getSmbTransport(eq(ctx), eq(address), anyInt(), eq(false), anyBoolean());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  6. clause/expression_test.go

    	}{{
    		Expressions: []clause.Expression{
    			clause.Eq{Column: column, Value: "column-value"},
    		},
    		ExpectedVars: []interface{}{"column-value"},
    		Result:       "`column-name` = ?",
    	}, {
    		Expressions: []clause.Expression{
    			clause.Eq{Column: column, Value: nil},
    			clause.Eq{Column: column, Value: (*string)(nil)},
    			clause.Eq{Column: column, Value: (*int)(nil)},
    			clause.Eq{Column: column, Value: (*bool)(nil)},
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Nov 04 07:04:52 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/Kerb5ContextTest.java

            byte[] mic = new byte[] { 3 };
            // No exception means success
            doNothing().when(gssContext).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any());
    
            assertDoesNotThrow(() -> ctx.verifyMIC(data, mic));
            verify(gssContext, times(1)).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any());
        }
    
        @Test
        @DisplayName("verifyMIC wraps GSSException into CIFSException")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java

                when(mockStrategies.get(0).apply(Mockito.eq(context), Mockito.any()))
                        .thenReturn(
                                new UpgradeResult(Set.of(Paths.get("pom.xml")), Set.of(Paths.get("pom.xml")), Set.of()));
    
                when(mockStrategies.get(1).isApplicable(context)).thenReturn(true);
                when(mockStrategies.get(1).apply(Mockito.eq(context), Mockito.any()))
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(pipe.openUnshared(eq("\\\\pipe\\\\foo"), eq(0), anyInt(), anyInt(), eq(SmbConstants.ATTR_NORMAL), eq(0))).thenReturn(fh);
            when(fh.acquire()).thenReturn(fh);
            when(fh.isValid()).thenReturn(true);
    
            // Act
            SmbFileHandleImpl opened = handle.ensureOpen();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SidResolverTest.java

            assertDoesNotThrow(() -> sidResolver.resolveSids(mockContext, testServerName, testSids, 0, 3));
        }
    
        @Test
        void testResolveSidsWithOffsetAndLength_SingleElement() throws CIFSException {
            doNothing().when(sidResolver).resolveSids(any(CIFSContext.class), anyString(), any(SID[].class), eq(2), eq(1));
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top