Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1171 - 1180 of 2,367 for Exceptions (0.06 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

            verify(mockBuffer).dec_ndr_long();
        }
    
        /**
         * Test case for the encode method when it throws an NdrException.
         * Verifies that the exception is correctly propagated.
         */
        @Test
        void testEncodeThrowsNdrException() {
            // Given
            ndrObject.setThrowOnEncode(true);
    
            // When & Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

      // @Param({"4", "8", "64", "1024", "1048576", "1048577", "6710884", "6710883"})
      @Param({"4", "8", "64", "1024"})
      private int length;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random r = new Random();
        ba1 = new byte[length];
        r.nextBytes(ba1);
        ba2 = Arrays.copyOf(ba1, ba1.length);
        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/TestLogHandler.java

     *
     * <pre>
     *   TestLogHandler handler;
     *
     *   protected void setUp() throws Exception {
     *     super.setUp();
     *     handler = new TestLogHandler();
     *     SomeClass.logger.addHandler(handler);
     *     addTearDown(new TearDown() {
     *       public void tearDown() throws Exception {
     *         SomeClass.logger.removeHandler(handler);
     *       }
     *     });
     *   }
     *
     *   public void test() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

        @Override
        protected String getProjectsDirectory() {
            return "src/test/projects/project-dependencies-resolver";
        }
    
        @Test
        void testSystemScopeDependencies() throws Exception {
            MavenSession session = createMavenSession(null);
            MavenProject project = session.getCurrentProject();
    
            new ProjectBuilder(project)
                    .addDependency(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvokerTest.java

                @TempDir(cleanup = CleanupMode.ON_SUCCESS) Path userHome)
                throws Exception {
            invoke(cwd, userHome, List.of("verify"), List.of());
        }
    
        @Disabled("Enable it when fully moved to NIO2 with Path/Filesystem (ie MavenExecutionRequest)")
        @Test
        void jimFs() throws Exception {
            try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 10:47:37 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

        }
    
        /**
         * Handle channel failure
         *
         * @param channel failed channel
         * @param error error that caused failure
         */
        public void handleChannelFailure(ChannelInfo channel, Exception error) {
            failover.handleFailure(channel, error);
        }
    
        /**
         * Get channel for specific transport
         *
         * @param transport transport instance
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/CaseInsensitiveSetTest.java

    import java.util.Set;
    
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class CaseInsensitiveSetTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testContains() throws Exception {
            final Set<String> set = new CaseInsensitiveSet();
            set.add("one");
            assertThat(set.contains("ONE"), is(true));
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java

            PersistedToolchains pt = new PersistedToolchains();
            merger.merge(pt, null, null);
            merger.merge(null, pt, null);
        }
    
        @Test
        void testMergeJdk() throws Exception {
            try (InputStream isDominant = MavenToolchainMergerTest.class.getResourceAsStream("toolchains-jdks.xml");
                    InputStream isRecessive = MavenToolchainMergerTest.class.getResourceAsStream("toolchains-jdks.xml")) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. impl/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java

        void testReactorDependencyInjection() throws Exception {
            List<String> reactorOrder =
                    getReactorOrder("lifecycle-participant-reactor-dependency-injection", InjectReactorDependency.class);
            assertEquals(Arrays.asList("parent", "module-b", "module-a"), reactorOrder);
        }
    
        private <T> List<String> getReactorOrder(String testProject, Class<T> participant) throws Exception {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/exception/NullArgumentException.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    /**
     * Exception thrown when an argument is null.
     *
     * Intended to be used instead of throwing {@link NullPointerException}.
     *
     * @author wyukawa
     */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top