Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 1,246 for setMap (0.07 seconds)

  1. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

     */
    class JettyHttpClientTest {
      private val client = HttpClient()
    
      @StartStop
      private val server = MockWebServer()
    
      @BeforeEach fun setUp() {
        client.start()
      }
    
      @AfterEach fun tearDown() {
        client.stop()
      }
    
      @Test fun get() {
        server.enqueue(MockResponse(body = "hello, Jetty HTTP Client"))
    
        val request =
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java

    import jcifs.dcerpc.rpc.policy_handle;
    
    /**
     * Tests for the {@link MsrpcLsarClose} class.
     */
    class MsrpcLsarCloseTest {
    
        private policy_handle mockHandle;
    
        @BeforeEach
        void setUp() {
            // Create a mock policy_handle for each test
            mockHandle = mock(policy_handle.class);
        }
    
        /**
         * Test case for the {@link MsrpcLsarClose#MsrpcLsarClose(policy_handle)} constructor.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

    /**
     * Tests for the SmbComBlankResponse class.
     */
    class SmbComBlankResponseTest {
    
        private SmbComBlankResponse response;
        private byte[] buffer;
    
        @BeforeEach
        void setUp() {
            response = new SmbComBlankResponse();
            buffer = new byte[100];
        }
    
        /**
         * Test for the writeParameterWordsWireFormat method.
         * It should always return 0.
         */
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

    public class SmbComTreeDisconnectTest {
    
        private Configuration config;
        private SmbComTreeDisconnect smbComTreeDisconnect;
    
        @Mock
        private Configuration mockConfig;
    
        @BeforeEach
        public void setUp() throws CIFSException {
            MockitoAnnotations.initMocks(this);
            config = new PropertyConfiguration(new Properties());
        }
    
        /**
         * Test constructor initialization with valid configuration
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

    import jcifs.internal.smb1.ServerMessageBlock;
    
    /**
     * Tests for the SmbComCreateDirectory class.
     */
    class SmbComCreateDirectoryTest {
    
        private Configuration mockConfig;
    
        @BeforeEach
        void setUp() {
            // Mock the Configuration object
            mockConfig = mock(Configuration.class);
            // Define behavior for the OEM encoding, which is used by writeString
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

      int count;
    
      @Param({"1", "10"})
      int length;
    
      private String originalString;
    
      @BeforeExperiment
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      void setUp() {
        originalString = Strings.repeat("x", length);
      }
    
      @Benchmark
      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

      int size;
    
      // use concrete classes to remove any possible polymorphic overhead?
      Object[] array;
      ArrayList<Object> arrayList;
      LinkedList<Object> linkedList;
    
      @BeforeExperiment
      void setUp() {
        array = new Object[size];
        arrayList = Lists.newArrayListWithCapacity(size);
        linkedList = new LinkedList<>();
    
        for (int i = 0; i < size; i++) {
          Object value = new Object();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    public class DosFileFilterTest {
    
        private DosFileFilter filter;
    
        @BeforeEach
        public void setup() {
            filter = new DosFileFilter("*", SmbFile.ATTR_NORMAL);
        }
    
        @Test
        public void testAcceptReturnsTrueWhenAttributesMatch() throws Exception {
            SmbFile file = mock(SmbFile.class);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ContainerCapsule.java

    import org.apache.maven.api.services.Lookup;
    
    /**
     * Container capsule.
     */
    public interface ContainerCapsule extends AutoCloseable {
        /**
         * Updates the existing capsule logging setup.
         */
        void updateLogging(LookupContext context);
    
        /**
         * The {@link Lookup} service backed by container in this capsule.
         */
        @Nonnull
        Lookup getLookup();
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 31 20:56:58 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

        @Mock
        private Configuration mockConfig;
    
        private ChannelManager channelManager;
        private PropertyConfiguration multiConfig;
    
        @BeforeEach
        void setUp() throws CIFSException {
            // Setup multi-channel configuration
            Properties props = new Properties();
            props.setProperty("jcifs.smb.client.useMultiChannel", "true");
            props.setProperty("jcifs.smb.client.maxChannels", "4");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 8.2K bytes
    - Click Count (0)
Back to Top