- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 888 for inrange (0.07 sec)
-
android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java
@Param boolean mutable; @Param InputOrder inputOrder; enum InputOrder { SORTED { @Override void arrange(List<Integer> list) { sort(list); } }, ALMOST_SORTED { @Override void arrange(List<Integer> list) { sort(list); if (list.size() > 1) { int i = (list.size() - 1) / 2; Collections.swap(list, i, i + 1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBSigningDigestTest.java
testData = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }; } @Test @DisplayName("Test sign method with valid parameters") void testSignWithValidParameters() { // Arrange int offset = 0; int length = testData.length; // Act signingDigest.sign(testData, offset, length, request, response); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
} @Test @DisplayName("Default ctor: null message/cause; toString is class name; type hierarchy") void defaultConstructor_hasNullMessageAndCause_andTypeHierarchy() { // Arrange & Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(); // Assert - message and cause are null assertNull(ex.getMessage(), "Default constructor should have null message");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
@DisplayName("Accepts IPC$ URLs (happy path)") @ValueSource(strings = { "smb://server/IPC$/foo", "smb://server/IPC$/PIPE/foo" }) void constructsWithIpcShare(String url) throws Exception { // Arrange & Act SmbNamedPipe pipe = new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx()); // Assert: type is named pipe and pipe type preserved
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
void mock_noInteractions() { // Arrange/Act: do nothing // Assert: verify no interactions verifyNoInteractions(mockEntry); } // --- Fake implementation tests (happy path and edge cases) --- @Test @DisplayName("Fake implementation returns provided values (happy path)") void fakeImplementation_happyPath() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
// Arrange & Act Handler handler = newHandler(); URL url = new URL(null, spec, handler); // Assert assertEquals(expectedPort, url.getPort()); } @Test @DisplayName("parseURL with null spec throws NullPointerException") void testParseURL_NullSpec() throws MalformedURLException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert assertEquals(-1L, trace.getTreeId()); } @Test @DisplayName("getConfig(): delegates to context") void getConfig_delegatesToContext() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertNull(context.getHashAlgos()); assertNull(context.getSalt()); } @Test @DisplayName("Should encode context correctly") void testEncode() { // Arrange context = new PreauthIntegrityNegotiateContext(mockConfig, testHashAlgos, testSalt); byte[] buffer = new byte[100]; // Act int encodedSize = context.encode(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
@DisplayName("openCopyTargetFile sets correct access flags depending on alsoRead") void openCopyTargetFile_accessMask_respectsAlsoRead(boolean alsoRead) throws Exception { // Arrange SmbFile dest = mock(SmbFile.class); SmbFileHandleImpl handle = mock(SmbFileHandleImpl.class); when(dest.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(handle);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlTest.java
public void test_GetFactoryMethod() { // ## Arrange ## final String url = "http://example.com"; // ## Act ## final CurlRequest request = Curl.get(url); // ## Assert ## assertNotNull(request); assertEquals(Method.GET, request.method()); } @Test public void test_PostFactoryMethod() { // ## Arrange ## final String url = "http://example.com";
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0)