Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 881 - 890 of 4,279 for new1 (0.02 seconds)

  1. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

            PACDecodingException e = new PACDecodingException(errorMessage);
            // Expect the message to be set correctly and cause to be null
            assertEquals(errorMessage, e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a cause.
         */
        @Test
        void testCauseConstructor() {
            Throwable cause = new RuntimeException("Root cause");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        this.s = new DfsInfo1[_ss];
                    }
                    _src = _src.derive(_si);
                    for (int _i = 0; _i < _ss; _i++) {
                        if (this.s[_i] == null) {
                            this.s[_i] = new DfsInfo1();
                        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  3. guava/src/com/google/common/base/Suppliers.java

        }
        return delegate instanceof Serializable
            ? new MemoizingSupplier<T>(delegate)
            : new NonSerializableMemoizingSupplier<T>(delegate);
      }
    
      @VisibleForTesting
      static final class MemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        private transient Object lock = new Object();
    
        final Supplier<T> delegate;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  4. samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java

    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class CurrentDateHeader {
      private final OkHttpClient client = new OkHttpClient.Builder()
          .addInterceptor(new CurrentDateInterceptor())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Oct 31 15:32:50 GMT 2018
    - 1.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTestSuite(ForwardingSortedMultisetTest.class);
        suite.addTest(
            SortedMultisetTestSuiteBuilder.using(
                    new TestStringMultisetGenerator() {
                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingSortedMultiset<>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/context/AbstractCIFSContextTest.java

        }
    
        @Test
        void testHasDefaultCredentials_withNull() {
            context = new TestAbstractCIFSContext(null); // Test with null credentials
            assertFalse(context.hasDefaultCredentials());
        }
    
        @Test
        void testRenewCredentials() {
            assertFalse(context.renewCredentials("someLocation", new Exception("someError")));
        }
    
        @Test
        void testClose() throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

         * @throws Exception
         */
        @Test
        public void testRemove3() throws Exception {
            Map<MyKey, String> m = new ArrayMap<MyKey, String>();
            m.put(new MyKey("1"), "d");
            m.put(new MyKey("2"), "d");
            m.remove(new MyKey("1"));
            assertThat(m.containsKey(new MyKey("1")), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/core/io/FileUtilTest.java

         * @throws Exception
         */
        @Test
        public void testIsPathSafe_WithFiles() throws Exception {
            final File baseDir = tempFolder.getRoot();
            final File safeFile = new File(baseDir, "subdir/file.txt");
            final File unsafeFile = new File(baseDir, "../../../etc/passwd");
    
            assertTrue("Safe file should be allowed", FileUtil.isPathSafe(safeFile, baseDir));
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            // Arrange - use a real cause so message is derived from cause.toString()
            Throwable cause = new IllegalStateException("proto mismatch");
            String expectedMessage = cause.toString();
    
            // Act
            SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(cause);
    
            // Assert - cause preserved, message derived from cause
            assertSame(cause, ex.getCause());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SigningDigest.java

                if (LogStream.level > 0) {
                    ex.printStackTrace(log);
                }
                throw new SmbException("MD5", ex);
            }
    
            try {
                switch (LM_COMPATIBILITY) {
                case 0:
                case 1:
                case 2:
                    macSigningKey = new byte[40];
                    auth.getUserSessionKey(transport.server.encryptionKey, macSigningKey, 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top