Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1841 - 1850 of 2,976 for throw (0.02 sec)

  1. src/test/java/jcifs/SidResolverTest.java

        @Test
        void testResolveSids_WithNullContext() throws CIFSException {
            doThrow(new CIFSException("Context cannot be null")).when(sidResolver).resolveSids(eq(null), anyString(), any(SID[].class));
    
            assertThrows(CIFSException.class, () -> sidResolver.resolveSids(null, testServerName, testSids));
        }
    
        @Test
        void testResolveSids_WithNullServerName() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            Encdec.enc_uint32le(0xFFFF + 1, buffer, 8);
    
            ndrBuffer.setIndex(0);
            NdrException thrown = assertThrows(NdrException.class, () -> {
                ndrBuffer.dec_ndr_string();
            });
            assertEquals(NdrException.INVALID_CONFORMANCE, thrown.getMessage());
        }
    
        @Test
        void testEncNdrReferent() {
            Object obj1 = new Object();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

        }
    
        /**
         * Establish RDMA connection
         *
         * @throws IOException if connection fails
         */
        public abstract void connect() throws IOException;
    
        /**
         * Send data using RDMA
         *
         * @param data data buffer to send
         * @param region registered memory region for the data
         * @throws IOException if send fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/util/MimeMapTest.java

        private MimeMap mimeMap;
    
        @BeforeEach
        void setUp() throws IOException {
            mimeMap = new MimeMap();
        }
    
        @Nested
        @DisplayName("getMimeType with extension only")
        class GetMimeTypeWithExtension {
    
            @Test
            @DisplayName("Should return correct mime type for known extensions")
            void testKnownExtensions() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java

        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        /**
         * Test constructor with a valid login context.
         *
         * @throws LoginException if login fails.
         */
        @Test
        void testConstructor_Success() throws LoginException {
            try (MockedConstruction<LoginContext> mocked = Mockito.mockConstruction(LoginContext.class, (mock, context) -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java

        @Nonnull
        Collection<String> getChecksumAlgorithmNames();
    
        /**
         * Returns {@link ChecksumAlgorithm} for given algorithm name, or throws if algorithm not supported.
         *
         * @throws ChecksumAlgorithmServiceException if asked algorithm name is not supported.
         * @throws NullPointerException if passed in name is {@code null}.
         */
        @Nonnull
        ChecksumAlgorithm select(@Nonnull String algorithmName);
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java

     *
     */
    public class ShortConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToShort() throws Exception {
            assertEquals(Short.valueOf("1000"), ShortConversionUtil.toShort("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveShort() throws Exception {
            assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000"));
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        @DisplayName("Test decode with zero length returns 0")
        void testDecodeZeroLength() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[100];
    
            int bytesRead = notifyInfo.decode(buffer, 0, 0);
    
            assertEquals(0, bytesRead);
        }
    
        @Test
        @DisplayName("Test decode with non-aligned next entry offset throws exception")
        void testDecodeNonAlignedNextOffset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/text/TokenizerTest.java

     *
     */
    public class TokenizerTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testEOF() throws Exception {
            final Tokenizer tokenizer = new Tokenizer("");
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/ProjectDependenciesResolver.java

         * @throws ArtifactResolutionException in case of resolution issue
         * @throws ArtifactNotFoundException if an artifact is not found
         */
        Set<Artifact> resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session)
                throws ArtifactResolutionException, ArtifactNotFoundException;
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top