Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 136 for testfile (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            assertFalse(context.isNotificationEnabled());
    
            context.setNotificationFilter(0xFF);
            assertEquals(0xFF, context.getNotificationFilter());
        }
    
        @Test
        public void testSize() {
            Smb2LeaseKey key = new Smb2LeaseKey();
            DirectoryLeaseContext context = new DirectoryLeaseContext(key, 0, DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            // Context header: 16 bytes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            assertEquals(0L, info.getSize());
        }
    
        @Test
        @DisplayName("Test size method returns correct buffer size")
        void testSize() {
            assertEquals(40, fileBasicInfo.size());
        }
    
        @Test
        @DisplayName("Test encode method")
        void testEncode() throws SMBProtocolDecodingException {
            // Create instance with test values
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            }
        }
    
        @Nested
        @DisplayName("Size Method Tests")
        class SizeTests {
    
            @Test
            @DisplayName("Should return correct size of 24 bytes")
            void testSize() {
                // Given
                SrvCopychunk chunk = new SrvCopychunk(0, 0, 0);
    
                // When
                int size = chunk.size();
    
                // Then
                assertEquals(EXPECTED_SIZE, size);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

                // and not crash the entire upgrade process
                assertTrue(result >= 0, "Should handle .mvn creation failure gracefully");
            }
        }
    
        /**
         * Testable subclass that exposes protected methods for testing.
         */
        private static class TestableAbstractUpgradeGoal extends AbstractUpgradeGoal {
    
            TestableAbstractUpgradeGoal(StrategyOrchestrator orchestrator) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  5. cmd/postpolicyform_test.go

    	pp.SetBucket("testbucket")
    	pp.SetContentType("image/jpeg")
    	pp.SetUserMetadata("uuid", "14365123651274")
    	pp.SetKeyStartsWith("user/user1/filename")
    	pp.SetContentLengthRange(100, 999999) // not testable from this layer, condition is checked in the API handler.
    	pp.SetSuccessStatusAction("201")
    	pp.SetCondition("eq", "X-Amz-Credential", "KVGKMDUQ23TCZXTLTHLP/20160727/us-east-1/s3/aws4_request")
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      public void testPending() {
        assertPending(future);
      }
    
      public void testSuccessful() throws Exception {
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/config/BaseConfigurationTest.java

            testConfig.disallowCompound = customDisallow;
    
            testConfig.initDefaults();
    
            assertEquals(customDisallow, testConfig.disallowCompound);
        }
    
        /**
         * Testable subclass that exposes the default constructor
         */
        private static class TestableBaseConfiguration extends BaseConfiguration {
            TestableBaseConfiguration() throws CIFSException {
                super(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java

                    Arguments.of(15L * 1000L * 1000L * 1000L, "15 GB"),
                    Arguments.of(1000L * 1000L * 1000L * 1000L, "1000 GB"));
        }
    
        @ParameterizedTest
        @MethodSource("sizeTestData")
        void testSize(long input, String expected) {
            FileSizeFormat format = new FileSizeFormat();
            assertEquals(expected, format.format(input));
        }
    
        static Stream<Arguments> sizeWithScaleUnitTestData() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NetworkExplorerTest.java

            verify(response).setContentType("application/octet-stream");
        }
    
        /**
         * Test doFile method directly - simplified test
         */
        @Test
        void testDoFile() throws Exception {
            initializeNetworkExplorer(false, "jCIFS");
    
            // Setup mock file with minimal required behavior
            String content = "File content for testing";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange
                doReturn(true).when(smbFile).isDirectory();
    
                // Act & Assert
                assertTrue(smbFile.isDirectory());
            }
    
            @Test
            void testIsFile() throws SmbException {
                // Arrange
                doReturn(true).when(smbFile).isFile();
    
                // Act & Assert
                assertTrue(smbFile.isFile());
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top