Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for getYear (0.07 sec)

  1. src/test/java/jcifs/pac/PacLogonInfoTest.java

            Date date = pacStream.readFiletime();
            assertNotNull(date);
            // The date should be around 1970 (allowing for some conversion differences)
            assertTrue(date.getYear() + 1900 >= 1969 && date.getYear() + 1900 <= 1971);
        }
    
        @Test
        @DisplayName("Test invalid FILETIME handling")
        void testInvalidFiletime() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/entity/PingResponseTest.java

            // These tests verify the PingResponse class structure is correct
            assertTrue(true);
        }
    
        public void test_getClusterName_returnsCorrectValue() {
            // Test cluster name getter exists
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                @Override
                public Set<String> getApiPingEsFieldSet() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/FileEntryTest.java

        }
    
        @ParameterizedTest(name = "Int getter {2} returns {1}")
        @MethodSource("intGetterProvider")
        void intGetters_edgeCases(IntGetter getter, int value, String label) {
            // Arrange
            FileEntry e = new TestFileEntry("n", value, value, 0L, 0L, 0L, 0L, value);
            // Act
            int actual = getter.apply(e);
            // Assert
            assertEquals(value, actual, label);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbPipeHandleTest.java

        }
    
        /**
         * Tests that the getter for the underlying pipe resource returns the correct instance.
         */
        @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.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test subCommand getter and setter")
        void testSubCommandGetterSetter() {
            byte subcommand = (byte) 0x05;
            response.setSubCommand(subcommand);
            assertEquals(subcommand, response.getSubCommand());
        }
    
        @Test
        @DisplayName("Test status getter and setter")
        void testStatusGetterSetter() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

                    Arguments.of(-1, -2L, -3L, -4L, -5L) // negative values
            );
        }
    
        // --- Mockito interaction: verify each getter is invoked and returns stubbed values ---
        @Test
        void mockitoMock_verifiesGetterInteractions() {
            // Arrange: mock and stub each getter with distinct values
            SmbBasicFileInfo mock = Mockito.mock(SmbBasicFileInfo.class);
            Mockito.when(mock.getAttributes()).thenReturn(7);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/spnego/SpnegoTokenTest.java

            assertNull(t.getMechanismToken(), "mechanismToken should default to null");
            assertNull(t.getMechanismListMIC(), "mechanismListMIC should default to null");
        }
    
        @Test
        @DisplayName("Setter and getter for mechanismToken work")
        void setGetMechanismToken() {
            TestSpnegoToken t = new TestSpnegoToken();
            byte[] data = new byte[] { 1, 2, 3 };
            t.setMechanismToken(data);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java

            // Then
            assertNotNull(dfsRootEnum, "The MsrpcDfsRootEnum object should not be null.");
            // The server name is stored in a protected field without a public getter, so we cannot directly test it.
            // We can test the public fields that are set.
            assertEquals(200, dfsRootEnum.level, "The level should be initialized to 200.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacUnicodeStringTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link PacUnicodeString} class.
     */
    class PacUnicodeStringTest {
    
        /**
         * Tests the constructor and getter methods.
         */
        @Test
        void testConstructorAndGetters() {
            // Create a new instance with some test data
            short length = 10;
            short maxLength = 20;
            int pointer = 100;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/DictionaryItemTest.java

            // Test direct field access through inheritance
            TestDictionaryItem item = new TestDictionaryItem();
    
            // Direct field assignment
            item.id = 999L;
    
            // Verify through getter
            assertEquals(999L, item.getId());
    
            // Verify direct field access
            assertEquals(999L, item.id);
        }
    
        public void test_sequentialIdAssignment() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top