Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for getSite (0.04 sec)

  1. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            Mockito.when(mock.getLastAccessTime()).thenReturn(17L);
            Mockito.when(mock.getSize()).thenReturn(19L);
    
            // Act: invoke each method once
            int attributes = mock.getAttributes();
            long c = mock.getCreateTime();
            long w = mock.getLastWriteTime();
            long a = mock.getLastAccessTime();
            long s = mock.getSize();
    
            // Assert: values and interactions
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:10"));
        }
    
        /**
         * @throws Exception
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

         */
        public ContentOutputStream(final int threshold, final File tmpDir) {
            super(threshold, PREFIX, SUFFIX, tmpDir);
        }
    
        @Override
        public File getFile() {
            done = true;
            return super.getFile();
        }
    
        /**
         * Closes the stream and deletes the temporary file if it was not retrieved.
         * If an error occurs during file deletion, it is logged but not thrown to avoid
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/CIFSContextTest.java

            int pipeType = 1;
            SmbPipeResource mockPipe = mock(SmbPipeResource.class);
            when(mockContext.getPipe(url, pipeType)).thenReturn(mockPipe);
    
            // When
            SmbPipeResource pipe = mockContext.getPipe(url, pipeType);
    
            // Then
            assertEquals(mockPipe, pipe);
            verify(mockContext).getPipe(url, pipeType);
        }
    
        @Test
        @DisplayName("Should close context")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

                try {
                    if (!connected) {
                        connect();
                    }
                    final Blob blobObj = getBlob();
                    return blobObj != null ? blobObj.getSize() : -1;
                } catch (final Exception e) {
                    return -1;
                }
            }
    
            /**
             * Gets the content type of the GCS object.
             *
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapVideo.java

        public void setThumbnailLoc(final String thumbnailLoc) {
            this.thumbnailLoc = thumbnailLoc;
        }
    
        /**
         * Gets the title of the video.
         * @return the title
         */
        public String getTitle() {
            return title;
        }
    
        /**
         * Sets the title of the video.
         * @param title the title to set
         */
        public void setTitle(final String title) {
            this.title = title;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:34:36 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

                if (pattern != null) {
                    return Float.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return Float.valueOf(((java.util.Date) o).getTime());
            } else {
                return toFloat(o.toString());
            }
        }
    
        private static Float toFloat(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

            case Integer i -> i;
            case Number n -> n.intValue();
            case String s -> toInteger(s);
            case java.util.Date d -> pattern != null ? Integer.valueOf(new SimpleDateFormat(pattern).format(d)) : (int) d.getTime();
            case Boolean b -> b ? 1 : 0;
            default -> toInteger(o.toString());
            };
        }
    
        private static Integer toInteger(final String s) {
            if (StringUtil.isEmpty(s)) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbPipeHandleTest.java

         */
        @Test
        public void testGetPipe() {
            assertEquals(mockPipeResource, smbPipeHandle.getPipe(), "getPipe() should return the underlying pipe resource.");
        }
    
        /**
         * Tests that the getter for the input stream returns the correct stream.
         * @throws CIFSException if an error occurs while getting the stream.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top