Search Options

Results per page
Sort
Preferred Languages
Advance

Results 4681 - 4690 of 4,820 for if (0.03 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java

        }
    
        private void assertContentType(final String expect, final String path, final String name) throws IOException {
            final MimeTypeHelper mimeTypeHelper = container.getComponent("mimeTypeHelper");
            if (path != null) {
                try (final InputStream is = ResourceUtil.getResourceAsStream(path)) {
                    assertEquals(expect, mimeTypeHelper.getContentType(is, name));
                }
            } else {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        sort(entries, sortedMultiset.comparator());
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = Multisets.immutableEntry(entries.get(0), sortedMultiset.count(entries.get(0)));
          if (entries.size() >= 3) {
            b = Multisets.immutableEntry(entries.get(1), sortedMultiset.count(entries.get(1)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbSessionTest.java

                for (int i = 0; i < 5; i++) {
                    new Thread(() -> {
                        try {
                            Configuration result = mockSession.getConfig();
                            if (result == mockConfig) {
                                successCount.incrementAndGet();
                            }
                        } finally {
                            latch.countDown();
                        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            for (int invalidSize : invalidSizes) {
                byte[] buffer = new byte[256];
    
                // Handle negative values (will wrap around in writeInt2)
                if (invalidSize >= 0) {
                    SMBUtil.writeInt2(invalidSize, buffer, 0);
    
                    // When & Then
                    SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                setLength(calculatedLength);
    
                // Now call the ServerMessageBlock2Request's encode which will do the validation
                int exp = size();
                int actual = getLength();
                if (exp != actual) {
                    throw new IllegalStateException(String.format("Wrong size calculation have %d expect %d", exp, actual));
                }
    
                return calculatedLength;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            SMBUtil.writeInt2(100, buffer, 0);
            SMBUtil.writeInt2(0, buffer, 2);
            SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_CONNECTION_OK, buffer, 4);
    
            // Act - Still returns 6 even if len is smaller
            int result = response.readParametersWireFormat(buffer, 0, 3);
    
            // Assert
            assertEquals(6, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null));
    
                // Assert message indicates which validation failed
                if (expectDirSlashMsg) {
                    assertTrue(ex.getMessage().contains("directory must end with '/'"),
                            "Expected trailing slash message, was: " + ex.getMessage());
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtStatus.java

     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    /**
     * Interface defining NT status codes used in SMB1 protocol operations.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Execute
            int bytesEncoded = request.encode(buffer, 0);
    
            // Verify
            assertEquals(0L, SMBUtil.readInt8(buffer, 0));
    
            // Even with zero timeout, if using timeout constructor, flag should be set
            assertEquals(0x1, buffer[12]);
        }
    
        @Test
        @DisplayName("Test size method consistency")
        void testSizeMethodConsistency() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top