Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 601 - 610 of 5,478 for newE (0.03 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java

                // in JDK 20+ 'new URL(string)' will fail if the string contains a curly brace
                this.basedir = null;
            } else {
                try {
                    URL url = new URL(repository.getUrl());
                    if ("file".equals(url.getProtocol())) {
                        basedir = new File(url.getPath());
                    }
                } catch (MalformedURLException e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 11 17:20:46 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/util/LogStreamTest.java

        }
    
        @Test
        void testSetInstanceMultipleTimes() {
            // Test setting instance multiple times
            PrintStream stream1 = new PrintStream(new ByteArrayOutputStream());
            PrintStream stream2 = new PrintStream(new ByteArrayOutputStream());
    
            LogStream.setInstance(stream1);
            LogStream instance1 = LogStream.getInstance();
    
            LogStream.setInstance(stream2);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java

        @Test
        public void testSIllegalStateExceptionStringThrowable() {
            final ClIllegalStateException clIllegalStateException = new ClIllegalStateException("hoge", new NullPointerException());
            assertThat(clIllegalStateException.getMessage(), is("hoge"));
            assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            UniAddress uniAddress = new UniAddress(InetAddress.getByName("127.0.0.1"));
            SmbTransport transport = new SmbTransport(uniAddress, 445, null, 0);
            serverData = transport.new ServerData();
            response = new SmbComNegotiateResponse(serverData);
        }
    
        @Test
        void testReadParameterWordsWireFormat() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            // First call throws, second accepts
            when(filter.accept(any())).thenThrow(new CIFSException("boom")).thenReturn(true);
    
            ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), filter);
    
            assertTrue(it.hasNext());
            SmbResource res = it.next();
            assertNotNull(res);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
            response = new Smb2ChangeNotifyResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Should create response with configuration")
        void testConstructorWithConfiguration() {
            // Given & When
            Smb2ChangeNotifyResponse resp = new Smb2ChangeNotifyResponse(mockConfig);
    
            // Then
            assertNotNull(resp);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

            List<LifecycleProvider> p = new ArrayList<>(providers);
            p.add(() -> List.of(new CleanLifecycle(), new DefaultLifecycle(), new SiteLifecycle()));
            this.providers = p;
            // validate lifecycle
            for (Lifecycle lifecycle : this) {
                Set<String> set = new HashSet<>();
                lifecycle.allPhases().forEach(phase -> {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      /**
       * Creates a new, empty {@code ConcurrentHashMultiset} using the default initial capacity, load
       * factor, and concurrency settings.
       */
      public static <E> ConcurrentHashMultiset<E> create() {
        return create(new ConcurrentHashMap<>());
      }
    
      /**
       * Creates a new {@code ConcurrentHashMultiset} containing the specified elements, using the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 22:42:14 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  9. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

              sumOfSquaresOfDeltas = t;
            }
            return new MeanAndVariance(mean, sumOfSquaresOfDeltas / values.length);
          }
        },
        KNUTH {
          @Override
          MeanAndVariance variance(double[] values, MeanAlgorithm meanAlgorithm) {
            if (meanAlgorithm != MeanAlgorithm.KNUTH) {
              throw new SkipThisScenarioException();
            }
            double mean = values[0];
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            mockConfig = mock(Configuration.class);
            outputBuffer = new byte[1024];
            outputBufferOffset = 0;
            response = new Smb2ReadResponse(mockConfig, outputBuffer, outputBufferOffset);
        }
    
        @Test
        @DisplayName("Should create response with configuration and output buffer")
        void testConstructor() {
            // Given
            byte[] buffer = new byte[512];
            int offset = 10;
    
            // When
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.1K bytes
    - Click Count (0)
Back to Top