- Sort Score
- Result 10 results
- Languages All
Results 1481 - 1490 of 2,317 for method (0.07 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
// When int bytesRead = transCallNamedPipe.readDataWireFormat(buffer, 0, buffer.length); // Then assertEquals(0, bytesRead); } @Test @DisplayName("Test toString method") void testToString() { // Given transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, TEST_DATA.length); // WhenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
void testInheritance() { assertTrue(response instanceof ServerMessageBlock2Response); assertTrue(response instanceof ServerMessageBlock2); } @Test @DisplayName("Test decode method integration") void testDecodeMethodIntegration() throws Exception { byte[] buffer = new byte[1024]; int bufferIndex = 0; // Prepare SMB2 header (64 bytes) // Protocol ID
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/DefaultQueryBuilder.java
* For BoolQueryBuilder, adds as a should clause. * For DisMaxQueryBuilder, adds as a query. * * @param innerQueryBuilder the query builder to add * @return this instance for method chaining */ public DefaultQueryBuilder add(final QueryBuilder innerQueryBuilder) { switch (queryType) { case BOOL: ((BoolQueryBuilder) queryBuilder).should(innerQueryBuilder);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
return tempFile; } /** * Gets a temp dir for testing. The returned directory and all contents of it will be deleted in * the tear-down for this test. Subsequent invocations of this method will return the same * directory. */ protected final File getTempDir() throws IOException { if (tempDir == null) { tempDir = createTempDir(); } return tempDir; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
assertNull(testDfs.getTrustedDomains(auth)); } @Test void testGetTrustedDomains_Success() throws IOException, SmbAuthException { // This test is complex due to static method dependencies and reflection access // For now, we'll test the disabled path which is safer testDfs.setDisabled(true); assertNull(testDfs.getTrustedDomains(auth)); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
} } // Helper method to create a mock SmbFile for more advanced tests if needed private SmbFile createMockSmbFile(String url, NtlmPasswordAuthentication auth) throws MalformedURLException { // This is complex due to the class structure. A better approach would be // to refactor SmbFile to be more testable (e.g., dependency injection). // For now, we test methods that don't require deep mocks.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.SmbSession; /** * Tests for SmbTransportInternal interface using Mockito mocks to * exercise method contracts, checked exceptions, and interactions. */ @ExtendWith(MockitoExtension.class) public class SmbTransportInternalTest { @Mock private SmbTransportInternal transport; @MockRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
docs/en/docs/environment-variables.md
Hello Wade Wilson ``` </div> //// ## Read env vars in Python { #read-env-vars-in-python } You could also create environment variables **outside** of Python, in the terminal (or with any other method), and then **read them in Python**. For example you could have a file `main.py` with: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ```Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} } /** Helper method that asserts the arithmetic mean of x and y is equal to the expectedMean. */ private static void assertMean(long expectedMean, long x, long y) { assertEquals( "The expectedMean should be the same as computeMeanSafely", expectedMean, computeMeanSafely(x, y)); assertMean(x, y); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 31.4K bytes - Viewed (0) -
CONTRIBUTING.md
for details. #### Running doctest for testable docstring There are two ways to test the code in the docstring locally: 1. If you are only changing the docstring of a class/function/method, then you can test it by passing that file's path to [tf_doctest.py](https://www.tensorflow.org/code/tensorflow/tools/docs/tf_doctest.py). For example: ```bashRegistered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Sat Jan 11 04:47:59 UTC 2025 - 15.9K bytes - Viewed (0)