Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 651 - 660 of 1,153 for EXPECTED (0.43 seconds)

  1. android/guava-tests/test/com/google/common/io/CloserTest.java

       * each such exception was suppressed because of the given thrown exception.
       */
      private void assertSuppressed(Suppression... expected) {
        assertEquals(ImmutableList.copyOf(expected), suppressor.suppressions);
      }
    
      // TODO(cpovirk): Just use addSuppressed+getSuppressed now that we can rely on it.
      /** Suppressor that records suppressions. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

                    Arguments.of(0x00001234, NtStatus.NT_STATUS_UNSUCCESSFUL));
        }
    
        @ParameterizedTest
        @MethodSource("intErrorCodes")
        @DisplayName("int ctor: sets message and NT status as expected")
        void intConstructor_populatesMessageAndStatus(int errCode, int expectedStatus) {
            // Arrange & Act: create exception with error code
            SmbAuthException ex = new SmbAuthException(errCode);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  3. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

            assertEquals("", myConfig.prefix());
            assertEquals("myConfig", myConfig.name());
            String config = node.toString();
            assertFalse(config.isEmpty(), "Expected collection to not be empty but was empty");
        }
    
        String toXml(Model model) throws IOException, XMLStreamException {
            StringWriter sw = new StringWriter();
            MavenStaxWriter writer = new MavenStaxWriter();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = NullArgumentException.class)
        public void testConstructorWithNull() throws Exception {
            new EnumerationIterator<String>((Enumeration<String>) null);
        }
    
        /**
         * @throws Exception
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  5. tests/query_test.go

    	if res.Nickname != user.Name {
    		t.Errorf("Expected res.Nickname to be %s, but got %s", user.Name, res.Nickname)
    	}
    	if res.Name != "" {
    		t.Errorf("Expected res.Name to be empty, but got %s", res.Name)
    	}
    	if res.Age != user.Age {
    		t.Errorf("Expected res.Age to be %d, but got %d", user.Age, res.Age)
    	}
    }
    
    func TestPluckWithSelect(t *testing.T) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Jul 22 06:21:04 GMT 2025
    - 51K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

                    "Expected " + messages + " to contain " + "'modelVersion' is missing.");
            assertTrue(
                    messages.contains("'groupId' is missing."),
                    "Expected " + messages + " to contain " + "'groupId' is missing.");
            assertTrue(
                    messages.contains("'artifactId' is missing."),
                    "Expected " + messages + " to contain " + "'artifactId' is missing.");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/io/Smb2WriteResponse.java

            final int start = bufferIndex;
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 17) {
                throw new SMBProtocolDecodingException("Expected structureSize = 17");
            }
            bufferIndex += 4;
    
            this.count = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.remaining = SMBUtil.readInt4(buffer, bufferIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

     * The class is intentionally tiny – the tests mainly verify that the
     * parameter word (the session identifier) is written in little‑endian form
     * and that the {@code toString} helper contains the expected values.
     *
     * <p>The tests also exercise edge cases such as negative (wrap‑around) session
     * identifiers and confirm that the writer does not alter any internal state.
     *</p>
     */
    @ExtendWith(MockitoExtension.class)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

                assertEquals("Invalid time format: 12. Expected format: HH:MM", e.getMessage());
            }
    
            try {
                IntervalControlHelper.parseTime("12:30:45");
                fail("Should throw FessSystemException");
            } catch (FessSystemException e) {
                assertEquals("Invalid time format: 12:30:45. Expected format: HH:MM", e.getMessage());
            }
    
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/io/PatternFilenameFilter.java

      }
    
      /*
       * Our implementation works fine with a null `dir`. However, there's nothing in the documentation
       * of the supertype that suggests that implementations are expected to tolerate null. That said, I
       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
       * parameter as non-nullable (since passing null to a FilenameFilter is unsafe in general), but if
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 2.7K bytes
    - Click Count (1)
Back to Top