Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,154 for Try (0.38 sec)

  1. src/test/java/jcifs/tests/TimeoutTest.java

            CIFSContext ctx = lowTimeout(withTestNTLMCredentials(getNewContext()));
            try ( SmbFile f = new SmbFile(new SmbFile(getTestShareURL(), ctx), makeRandomName()) ) {
                int soTimeout = ctx.getConfig().getSoTimeout();
                f.createNewFile();
                try {
                    try ( OutputStream os = f.getOutputStream() ) {
                        os.write(new byte[] {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileOperationsTest.java

            int bufSize = 65536;
            long length = 4096 * 16;
            try ( SmbFile f = createTestFile() ) {
                try ( SmbFile d1 = createTestDirectory();
                      SmbFile t = new SmbFile(d1, makeRandomName()) ) {
                    try {
                        try ( OutputStream os = f.getOutputStream() ) {
                            ReadWriteTest.writeRandom(bufSize, length, os);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/crypto/CachedCipher.java

            try {
                return Base64Util.encode(encrypto(text.getBytes(charsetName)));
            } catch (final UnsupportedEncodingException e) {
                throw new UnsupportedEncodingRuntimeException(e);
            }
        }
    
        public byte[] decrypto(final byte[] data) {
            final Cipher cipher = pollDecryptoCipher();
            byte[] decrypted;
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      }
    
      public void testDecodeLongFails() {
        try {
          // One more than maximum value
          UnsignedLongs.decode("0xfffffffffffffffff");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
          UnsignedLongs.decode("-5");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
          UnsignedLongs.decode("-0x5");
          fail();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

        }
    
        @Override
        public synchronized void insert(final SynonymItem item) {
            try (SynonymUpdater updater = new SynonymUpdater(item)) {
                reload(updater);
            }
        }
    
        @Override
        public synchronized void update(final SynonymItem item) {
            try (SynonymUpdater updater = new SynonymUpdater(item)) {
                reload(updater);
            }
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ConcurrencyTest.java

            public MutiThreadTestCase () {}
    
    
            @Override
            public void run () {
    
                try {
                    try ( SmbResource f = createTestFile() ) {
                        try {
                            // f.exists();
                            // try ( OutputStream os = f.openOutputStream(false, SmbConstants.FILE_NO_SHARE) ) {
                            // os.write(new byte[] {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return makeEmptyMap();
        }
      }
    
      protected final boolean supportsValuesHashCode(Map<K, V> map) {
        // get the first non-null value
        Collection<V> values = map.values();
        for (V value : values) {
          if (value != null) {
            try {
              int unused = value.hashCode();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  8. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private void assertSetCountDecreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private void assertSetCountDecreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java

        try {
          getMap().replace(k0(), v0(), v3());
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_unsupportedWrongValue() {
        try {
          getMap().replace(k0(), v3(), v4());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 5.3K bytes
    - Viewed (0)
Back to top