Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 471 for NullPointerException (0.16 sec)

  1. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            setFieldValue(netServerEnum2, "subCommand", SmbComTransaction.NET_SERVER_ENUM3);
    
            byte[] dst = new byte[1024];
    
            // Should throw NullPointerException when lastName is null for NET_SERVER_ENUM3
            assertThrows(NullPointerException.class, () -> {
                netServerEnum2.writeParametersWireFormat(dst, 0);
            });
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

        void testMethodsWithNullBuffers() {
            netShareEnum = new NetShareEnum(realConfig);
    
            // Write methods return 0 when buffer is null (no NullPointerException thrown)
            assertEquals(0, netShareEnum.writeSetupWireFormat(null, 0));
    
            assertThrows(NullPointerException.class, () -> {
                netShareEnum.writeParametersWireFormat(null, 0);
            });
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ArrayTable.java

       *
       * @param rowKeys row keys that may be stored in the generated table
       * @param columnKeys column keys that may be stored in the generated table
       * @throws NullPointerException if any of the provided keys is null
       * @throws IllegalArgumentException if {@code rowKeys} or {@code columnKeys} contains duplicates
       *     or if exactly one of {@code rowKeys} or {@code columnKeys} is empty.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        this.tester = EquivalenceTester.of(equivalenceMock);
      }
    
      /** Test null reference yields error */
      public void testOf_nullPointerException() {
        assertThrows(NullPointerException.class, () -> EquivalenceTester.of(null));
      }
    
      public void testTest_noData() {
        tester.test();
      }
    
      public void testTest() {
        Object group1Item1 = new TestObject(1, 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        this.tester = EquivalenceTester.of(equivalenceMock);
      }
    
      /** Test null reference yields error */
      public void testOf_nullPointerException() {
        assertThrows(NullPointerException.class, () -> EquivalenceTester.of(null));
      }
    
      public void testTest_noData() {
        tester.test();
      }
    
      public void testTest() {
        Object group1Item1 = new TestObject(1, 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
      public void testSetFailureNull() throws Exception {
        assertThrows(NullPointerException.class, () -> future.setException(null));
        assertFalse(future.isDone());
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        assertEquals(7, (int) newValue);
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(NullPointerException.class, () -> map.put(null, new Integer(1)));
        map.putInstance(Integer.class, null);
        assertNull(map.get(Integer.class));
        assertNull(map.getInstance(Integer.class));
    
        map.put(Long.class, null);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 18:34:30 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/script/AbstractScriptEngineTest.java

            ComponentUtil.register(null, "scriptEngineFactory");
    
            try {
                testScriptEngine.register();
                fail("Should throw exception when factory is null");
            } catch (NullPointerException e) {
                // Expected exception
            }
        }
    
        // Test concrete implementation with different name
        public void test_differentNameImplementation() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

                }
            };
    
            Set<String> roleSet;
    
            try {
                roleSet = buildByHeader(roleQueryHelperImpl, getMockRequest());
                fail();
            } catch (final NullPointerException e) {
                //ok
            }
    
            roleQueryHelperImpl.headerKey = "fess1";
    
            getMockRequest().addHeader("aaa", "bbb");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       * <p><b>Java 8+ users:</b> use {@link Long#parseUnsignedLong(String)} instead.
       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code long}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Long#parseLong(String)})
       */
      @CanIgnoreReturnValue
      public static long parseUnsignedLong(String string) {
        return parseUnsignedLong(string, 10);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top