- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 1,596 for construction (0.25 seconds)
-
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
} /** * Validate that the constructor masks the supplied value to its * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short). */ @ParameterizedTest @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 }) void constructorMasksValue(int input) { NdrShort ns = new NdrShort(input); // NdrShort masks to 0xFF (8 bits) in its constructor int expected = input & 0xFF;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
import jcifs.Configuration; @ExtendWith(MockitoExtension.class) class BufferCacheImplTest { @Mock Configuration cfg; // Verifies constructor that accepts Configuration reads the expected values and uses them @Test @DisplayName("Constructor(Configuration) uses cache size and maximum buffer size from config") void constructorUsesConfigurationAndAllocatesWithConfiguredSize() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ArrayTable.java
* * <p><b>Warning:</b> {@code ArrayTable} is rarely the {@link Table} implementation you want. First, * it requires that the complete universe of rows and columns be specified at construction time. * Second, it is always backed by an array large enough to hold a value for every possible * combination of row and column keys. (This is rarely optimal unless the table is extremely dense.)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 13 19:39:21 GMT 2025 - 26.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
/** * Comprehensive test suite for NdrShort class * Tests construction, encoding, decoding, and edge cases */ @ExtendWith(MockitoExtension.class) @DisplayName("NdrShort Test Suite") class NdrShortTest { @Mock private NdrBuffer mockBuffer; @Nested @DisplayName("Constructor Tests") class ConstructorTests { @ParameterizedTestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
// Assert assertNotNull(handle); verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class)); // We cannot directly assert the 'opened' field as it's private, but successful construction implies it. } @Test void constructor_shouldHandleNullServerSuccessfully() throws IOException { // Arrange String server = null; int access = 123;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
// Then assertNotNull(newResponse); // Verify the response was created successfully with the configuration // The constructor doesn't actually call any methods on the config during construction } } @Nested @DisplayName("Edge case tests") class EdgeCaseTests { @Test @DisplayName("Should handle maximum buffer index")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
when(this.mechContext.getFlags()).thenReturn(0x1234); when(this.mechContext.initSecContext(any(byte[].class), eq(0), eq(0))).thenReturn(new byte[] { 0x01, 0x02 }); // Act: len==0 triggers initial token construction byte[] out = ctx.initSecContext(null, 0, 0); // Assert: returns a SPNEGO token (opaque here but non-null/non-empty) assertNotNull(out); assertTrue(out.length > 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/LlmClient.java
* such as Ollama, OpenAI, and Google Gemini. * * In addition to low-level chat operations, this interface defines * high-level RAG workflow methods that allow each provider to optimize * prompt construction, parameter tuning, and response parsing. */ public interface LlmClient { /** * Performs a chat completion request. * * @param request the chat request containing messages and parametersCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 07:04:54 GMT 2026 - 7.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored"); Map<String, ?> returned = entries[0].getOptions(); // Assert: sanity check and verify that no mutating calls were made after construction assertEquals("true", returned.get("refreshKrb5Config")); verify(spyOpts, never()).put(any(), any()); verify(spyOpts, never()).remove(any()); verify(spyOpts, never()).clear(); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
android/guava/src/com/google/common/math/LinearTransformation.java
checkArgument(isFinite(x1) && isFinite(y1)); return new LinearTransformationBuilder(x1, y1); } /** * This is an intermediate stage in the construction process. It is returned by {@link * LinearTransformation#mapping}. You almost certainly don't want to keep instances around, but * instead use method chaining. This represents a single point mapping, i.e. a mapping between one
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 9.7K bytes - Click Count (0)