Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 2,174 for Exception (0.04 sec)

  1. src/test/java/org/codelibs/core/io/CloseableUtilTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testClose() throws Exception {
            final NotifyOutputStream out = new NotifyOutputStream();
            CloseableUtil.close(out);
            assertThat(out.getNotify(), is("closed"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCloseNull() throws Exception {
            CloseableUtil.close((OutputStream) null);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/exception/ParseRuntimeException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import java.text.ParseException;
    
    /**
     * Exception thrown when parsing fails.
     *
     * @author higa
     */
    public class ParseRuntimeException extends ClRuntimeException {
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

    import org.codelibs.core.beans.ParameterizedClassDesc;
    import org.codelibs.core.exception.FieldNotStaticRuntimeException;
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class FieldDescImplTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testHOGE() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CloserTest.java

        TestCloseable c2 = closer.register(TestCloseable.normal());
    
        IOException exception = new IOException();
    
        try {
          try {
            throw exception;
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        } catch (Throwable expected) {
          assertSame(exception, expected);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            SMBProtocolDecodingException exception =
                    assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex),
                            "Should throw SMBProtocolDecodingException for invalid structure size");
    
            assertEquals("Expected structureSize = 9", exception.getMessage());
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            }
    
            @Test
            @DisplayName("Should throw exception on null buffer")
            void testDecodeWithNullBuffer() {
                assertThrows(SMBProtocolDecodingException.class, () -> testResponse.decode(null, 0, 10),
                        "Should throw exception for null buffer");
            }
    
            @Test
            @DisplayName("Should throw exception on negative buffer index")
            void testDecodeWithNegativeIndex() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // When & Then - InvocationTargetException wraps the actual exception when using reflection
                Exception exception = assertThrows(Exception.class,
                        () -> invokeMethod(response, "readBytesWireFormat", new Class[] { byte[].class, int.class }, buffer, 0),
                        "Should throw exception for invalid structure size");
    
                // Verify the actual cause is SMBProtocolDecodingException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/exception/SIndexOutOfBoundsExceptionTest.java

     */
    package org.codelibs.core.exception;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.notNullValue;
    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    public class SIndexOutOfBoundsExceptionTest {
    
        /**
         * Test method for
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParserException.java

    /**
     * The Exception class thrown by {@link VersionParser}.
     *
     * @since 4.0.0
     */
    @Experimental
    public class VersionParserException extends MavenException {
    
        @Serial
        private static final long serialVersionUID = 1504740189114877333L;
    
        /**
         * @param message the message to give
         * @param e the {@link Exception}
         */
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTestType.java

        MetadataGraphVertex v3;
        MetadataGraphVertex v4;
    
        // ------------------------------------------------------------------------------------------
        @BeforeEach
        void setUp() throws Exception {
            graph = new MetadataGraph(4, 3);
            /*
             *       v2
             *   v1<
             *       v3-v4
             *
             */
            v1 = graph.addVertex(new ArtifactMetadata("g", "a1", "1.0"));
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top