Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 627 for Constants (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        }
      }
    
      public void testToString() {
        for (String inputName : SOMEWHERE_UNDER_PS) {
          InternetDomainName domain = InternetDomainName.from(inputName);
    
          /*
           * We would ordinarily use constants for the expected results, but
           * doing it by derivation allows us to reuse the test case definitions
           * used in other tests.
           */
    
          String expectedName = Ascii.toLowerCase(inputName);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertDoesNotThrow(() -> new Smb2ReadRequest(mockConfig, testFileId, buffer, 2048));
            }
        }
    
        @Nested
        @DisplayName("Constants Tests")
        class ConstantsTests {
    
            @Test
            @DisplayName("Should have correct SMB2_READFLAG_READ_UNBUFFERED value")
            void testReadUnbufferedFlag() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

            if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) {
              field.setAccessible(true);
              try {
                T constant = type.cast(field.get(null));
                if (constant != null) {
                  return constant;
                }
              } catch (IllegalAccessException impossible) {
                throw new AssertionError(impossible);
              }
            }
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            assertTrue(result.contains("serverTypes=SV_TYPE_DOMAIN_ENUM"));
            assertTrue(result.endsWith("]"));
        }
    
        @ParameterizedTest
        @DisplayName("Test constants values")
        @CsvSource({ "SV_TYPE_ALL, -1", "SV_TYPE_DOMAIN_ENUM, -2147483648" })
        void testConstants(String constantName, int expectedValue) {
            if ("SV_TYPE_ALL".equals(constantName)) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        }
      }
    
      public void testToString() {
        for (String inputName : SOMEWHERE_UNDER_PS) {
          InternetDomainName domain = InternetDomainName.from(inputName);
    
          /*
           * We would ordinarily use constants for the expected results, but
           * doing it by derivation allows us to reuse the test case definitions
           * used in other tests.
           */
    
          String expectedName = Ascii.toLowerCase(inputName);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        }
    
        @Override
        protected Scheduler scheduler() {
          numberOfTimesSchedulerCalled.incrementAndGet();
          return configuration;
        }
      }
    
      // Tests for Scheduler:
    
      // These constants are arbitrary and just used to make sure that the correct method is called
      // with the correct parameters.
      private static final int INITIAL_DELAY = 10;
      private static final int DELAY = 20;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        }
    
        @Override
        protected Scheduler scheduler() {
          numberOfTimesSchedulerCalled.incrementAndGet();
          return configuration;
        }
      }
    
      // Tests for Scheduler:
    
      // These constants are arbitrary and just used to make sure that the correct method is called
      // with the correct parameters.
      private static final int INITIAL_DELAY = 10;
      private static final int DELAY = 20;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should support AES-256 cipher constants")
        void testAES256CipherConstants() {
            // Verify AES-256 constants are defined
            assertEquals(0x0003, Smb2EncryptionContext.CIPHER_AES_256_CCM, "AES-256-CCM constant should be defined");
            assertEquals(0x0004, Smb2EncryptionContext.CIPHER_AES_256_GCM, "AES-256-GCM constant should be defined");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

    class Smb2SessionSetupRequestTest extends BaseTest {
    
        private Configuration mockConfig;
        private CIFSContext mockContext;
        private Smb2SessionSetupRequest request;
    
        // Test constants
        private static final int TEST_SECURITY_MODE = 0x01;
        private static final int TEST_CAPABILITIES = 0x00000001;
        private static final long TEST_PREVIOUS_SESSION_ID = 0x1234567890ABCDEFL;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

        }
    
        @ParameterizedTest
        @CsvSource({ "0x01, FILE_DIRECTORY_INFO", "0x02, FILE_FULL_DIRECTORY_INFO", "0x03, FILE_BOTH_DIRECTORY_INFO" })
        @DisplayName("Test constructor with different info class constants")
        void testConstructorWithDifferentInfoClasses(byte infoClass, String description) {
            response = new Smb2QueryDirectoryResponse(mockConfig, infoClass);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.5K bytes
    - Click Count (0)
Back to Top