Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 571 - 580 of 3,282 for throwIt (0.05 seconds)

  1. src/test/java/jcifs/context/AbstractCIFSContextTest.java

        void testRun_closeThrowsException() throws CIFSException {
            // Create a spy on the context to make close() throw an exception
            TestAbstractCIFSContext spyContext = new TestAbstractCIFSContext(mockCredentials) {
                @Override
                public boolean close() throws CIFSException {
                    super.close(); // Call original close to set closeCalled
                    throw new CIFSException("Test exception during close");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/http/NtlmServletTest.java

        /**
         * Test the service method with a valid NTLM Authorization header.
         * Simulates a successful NTLM authentication.
         * @throws ServletException
         * @throws IOException
         * @throws CIFSException
         */
        @Test
        void testService_NtlmAuth_Success() throws Exception {
            ntlmServlet.init(servletConfig);
            setupMocksForAuth();
    
            byte[] challenge = new byte[8];
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

    internal infix fun Int.and(mask: Long): Long = toLong() and mask
    
    @Throws(IOException::class)
    internal fun BufferedSink.writeMedium(medium: Int) {
      writeByte(medium.ushr(16) and 0xff)
      writeByte(medium.ushr(8) and 0xff)
      writeByte(medium and 0xff)
    }
    
    @Throws(IOException::class)
    internal fun BufferedSource.readMedium(): Int =
      (
        readByte() and 0xff shl 16
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

        }
    
        private void parse(final byte[] material) throws IOException {
            for (int i = 0; i < 8; i++) {
                if (material[i] != NTLMSSP_SIGNATURE[i]) {
                    throw new IOException("Not an NTLMSSP message.");
                }
            }
            if (readULong(material, 8) != 2) {
                throw new IOException("Not a Type 2 message.");
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 13K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

         * the class loader that loaded this class is returned.
         * </p>
         *
         * @param targetClass the target class (must not be {@literal null})
         * @return the class loader
         * @throws IllegalStateException if the class loader could not be obtained
         */
        public static ClassLoader getClassLoader(final Class<?> targetClass) {
            assertArgumentNotNull("targetClass", targetClass);
    
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        void testServerInfo1GetTypeWorkgroup() throws Exception {
            NetServerEnum2Response.ServerInfo1 server = response.new ServerInfo1();
            server.type = 0x80000000; // SV_TYPE_DOMAIN_ENUM flag
            assertEquals(SmbConstants.TYPE_WORKGROUP, server.getType());
        }
    
        @Test
        @DisplayName("Test ServerInfo1 getType for server")
        void testServerInfo1GetTypeServer() throws Exception {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/http/NtlmHttpFilter.java

         * @return True if the negotiation is complete, otherwise false
         * @throws IOException if an I/O error occurs
         * @throws ServletException if a servlet error occurs
         */
        protected NtlmPasswordAuthentication negotiate(final HttpServletRequest req, final HttpServletResponse resp,
                final boolean skipAuthentication) throws IOException, ServletException {
            Address dc;
            String msg;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

                    throw new MavenExecutionException(message, request.getPom());
                }
            }
    
            return result;
        }
    
        private List<MavenProject> includeAlsoMakeTransitively(
                List<MavenProject> projects, MavenExecutionRequest request, ProjectDependencyGraph graph)
                throws MavenExecutionException {
            List<MavenProject> result = projects;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 11 16:38:19 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/netbios/UniAddress.java

            return ((InetAddress) this.addr).getHostAddress();
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws UnknownHostException if the host cannot be resolved
         *
         * @see jcifs.Address#toInetAddress()
         */
        @Override
        public InetAddress toInetAddress() throws UnknownHostException {
            if (this.addr instanceof Address) {
                return ((Address) this.addr).toInetAddress();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.3K bytes
    - Click Count (0)
Back to Top