- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,089 for given (0.01 sec)
-
src/test/java/jcifs/SmbResourceTest.java
} @Test @DisplayName("SmbResource should have all required methods") void testRequiredMethods() throws NoSuchMethodException { // Given Class<SmbResource> clazz = SmbResource.class; // When/Then - Verify essential methods exist assertNotNull(clazz.getMethod("getLocator"), "Should have getLocator method");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
return randomSource.nextLong(); } // A random value that cannot be 0 and that is unsigned-less-than or equal // to the given dividend, so that we don't have half of our divisions being // trivial because the divisor is bigger than the dividend. // Using remainder here does not give us a uniform distribution but it should // not have a big impact on the measurement. private static long randomDivisor(long dividend) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
TestAllocInfo allocInfo = new TestAllocInfo(Long.MIN_VALUE, Long.MIN_VALUE); // When & Then assertEquals(Long.MIN_VALUE, allocInfo.getCapacity()); assertEquals(Long.MIN_VALUE, allocInfo.getFree()); } @Test @DisplayName("Should calculate used space correctly") void shouldCalculateUsedSpaceCorrectly() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Closer.java
* ...);} to ensure the compiler knows that it will throw. * * @return this method does not return; it always throws * @throws IOException when the given throwable is an IOException * @throws X1 when the given throwable is of the declared type X1 * @throws X2 when the given throwable is of the declared type X2 */ public <X1 extends Exception, X2 extends Exception> RuntimeException rethrow(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
assertEquals(mockPolicyHandle, message.handle); } @Test @DisplayName("Should encode input parameters correctly") void testEncodeIn() throws NdrException { // Given: Close handle message samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle); // When: Encoding input message.encode_in(mockNdrBuffer);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
assertTrue(request instanceof ServerMessageBlock2Request); } @Test @DisplayName("Should set DFS capability when enabled") void testDfsCapability() { // Given when(mockConfig.isDfsDisabled()).thenReturn(false); // When request = new Smb2NegotiateRequest(mockConfig, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java
* The path elements are separated by an option-specific or platform-specific separator. * If the given {@code paths} argument contains no element, then this method returns an empty string. * * @param paths the path to format as a string * @return the option associated to this path type followed by the given path elements,Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Jun 26 07:56:58 UTC 2025 - 15K bytes - Viewed (1) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
*/ class Trans2QueryPathInformationTest { /** * Tests the constructor of Trans2QueryPathInformation. */ @Test void testConstructor() { // Given String filename = "testFile.txt"; int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO // WhenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
void testConstructorZero() { // Given/When: Creating NdrShort with zero NdrShort ndrShort = new NdrShort(0); // Then: Value should be zero assertEquals(0, ndrShort.value); } @Test @DisplayName("Should handle maximum byte value correctly") void testConstructorMaxByte() { // Given/When: Creating NdrShort with max byte value
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
request = new Smb2ChangeNotifyRequest(mockConfig, testFileId); } @Test @DisplayName("Should create request with configuration and file ID") void testConstructor() { // Given Configuration config = mock(Configuration.class); when(config.getNotifyBufferSize()).thenReturn(8192); // When Smb2ChangeNotifyRequest req = new Smb2ChangeNotifyRequest(config, testFileId);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0)