Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 4341 - 4350 of 4,519 for Signal (0.06 seconds)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            }
        }
    
        /**
         * Mock implementation for testing interface contract
         */
        static class MockCreateContextResponse implements CreateContextResponse {
            private final byte[] name;
    
            public MockCreateContextResponse(String name) {
                this.name = name != null ? name.getBytes(StandardCharsets.UTF_8) : null;
            }
    
            @Override
            public byte[] getName() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            lenient().when(fe3.getName()).thenReturn("file3");
            when(fe3.getFileIndex()).thenReturn(3);
    
            // Track query count to handle multiple queries properly
            final int[] queryCount = { 0 };
    
            // Mock send(create) to wire a query response with fe1, fe2
            doAnswer(inv -> {
                Object arg = inv.getArgument(0);
                if (arg instanceof Smb2CreateRequest) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                }
                newSession = new DefaultRepositorySystemSession(session);
            } else {
                newSession = new DefaultRepositorySystemSession(h -> false); // no close handle used
            }
    
            final LocalRepositoryManager llrm =
                    system.newLocalRepositoryManager(newSession, new LocalRepository(repository.getBasedir()));
            newSession.setLocalRepositoryManager(llrm);
            return newSession;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 04 18:33:16 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  4. cmd/erasure-multipart.go

    	}
    
    	er.cleanupMultipartPath(ctx, paths...) // cleanup all part.N.meta, and skipped part.N's before final rename().
    
    	defer func() {
    		if err == nil {
    			er.deleteAll(context.Background(), minioMetaMultipartBucket, uploadIDPath)
    		}
    	}()
    
    	// Rename the multipart object to final location.
    	onlineDisks, versions, oldDataDir, err := renameData(ctx, onlineDisks, minioMetaMultipartBucket, uploadIDPath,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:05:31 GMT 2025
    - 47.1K bytes
    - Click Count (0)
  5. README.md

        return response.body().string();
      }
    }
    ```
    
    
    Post to a Server
    ----------------
    
    This program posts data to a service. [Full source][post_example].
    
    ```java
    public static final MediaType JSON = MediaType.get("application/json");
    
    OkHttpClient client = new OkHttpClient();
    
    String post(String url, String json) throws IOException {
      RequestBody body = RequestBody.create(json, JSON);
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

     *
     * @author Hayward Chan
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class ForwardingMapTest extends TestCase {
      static class StandardImplForwardingMap<K, V> extends ForwardingMap<K, V> {
        private final Map<K, V> backingMap;
    
        StandardImplForwardingMap(Map<K, V> backingMap) {
          this.backingMap = backingMap;
        }
    
        @Override
        protected Map<K, V> delegate() {
          return backingMap;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            }
        }
    
        /**
         * Test helper class for mocking URL.openConnection() behavior
         */
        static class TestURLStreamHandler extends java.net.URLStreamHandler {
            private final List<HttpURLConnection> connections = new ArrayList<>();
            private int currentIndex = 0;
    
            void addConnection(HttpURLConnection conn) {
                connections.add(conn);
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

    import jcifs.internal.smb2.RequestWithFileId;
    import jcifs.internal.util.SMBUtil;
    
    @ExtendWith(MockitoExtension.class)
    class Smb2CreateResponseTest {
    
        // SMB2 header size in bytes
        private static final int SMB2_HEADER_LENGTH = 64;
    
        /**
         * Build a minimal SMB2 header for a response.
         */
        private static byte[] buildSmb2Header() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            // Given
            when(mockDelegate.hasNext()).thenReturn(true, false);
            when(mockDelegate.next()).thenReturn(mockFileEntry1);
    
            // Create iterator with custom adapt implementation
            final boolean[] adaptCalled = { false };
            DirFileEntryAdapterIterator iterator = new DirFileEntryAdapterIterator(mockParent, mockDelegate, null) {
                @Override
                protected SmbResource adapt(FileEntry e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            session.setLocalRepositoryManager(new SimpleLocalRepositoryManagerFactory().newInstance(session, localRepo));
            return session;
        }
    
        private static final char[] HEX_CODE = "0123456789ABCDEF".toCharArray();
    
        private static String printHexBinary(byte[] data) {
            StringBuilder r = new StringBuilder(data.length * 2);
            for (byte b : data) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 09:40:15 GMT 2025
    - 13.8K bytes
    - Click Count (0)
Back to Top