Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for constructions (1.07 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                assertEquals(128, new NdrShort(-128).value); // -128 & 0xFF = 128
            }
    
            @Test
            @DisplayName("Should maintain value consistency after multiple constructions")
            void testValueConsistency() {
                // Given: Same input value
                int inputValue = 1000;
                int expectedMasked = inputValue & 0xFF; // 232
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * empty at any point. (The sum ensures accuracy up through at least 1<<31 per-segment
         * modifications before recheck.)  Method containsValue() uses similar constructions for
         * stability checks.
         */
        long sum = 0L;
        Segment<K, V, E, S>[] segments = this.segments;
        for (int i = 0; i < segments.length; ++i) {
          if (segments[i].count != 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 90K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            assertNotNull(ex.toString(), "toString should be non-null");
            ex.getMessage(); // don't assert content to avoid implementation assumptions
    
            // Verify no interactions happened with the mocked cause during construction/access
            verifyNoInteractions(mockCause);
        }
    
        @Test
        @DisplayName("Cause-only constructor with null: null cause maintained")
        void causeOnlyConstructor_acceptsNull() {
            // Arrange & Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            return Stream.of(Arguments.of((String) null), Arguments.of(""));
        }
    
        /**
         * Validate message+cause constructor and that no interaction with cause occurs during construction.
         */
        @Test
        @DisplayName("String+Throwable ctor: sets message, cause and unsuccessful status")
        void messageAndCauseConstructor_setsFields(@Mock Throwable mockCause) {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/HandlerTest.java

            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null), "Null URL should throw NPE");
            verify(mockCtx, never()).getConfig(); // no interaction expected on failure before construction
        }
    
        @Test
        @DisplayName("openConnection uses SingletonContext when no context provided")
        void testOpenConnection_UsesSingletonContext() throws Exception {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

        }
    
        @Nested
        @DisplayName("Invalid constructor inputs")
        class InvalidInputs {
            @Test
            @DisplayName("Null delegate causes NullPointerException during construction")
            void nullDelegate_throwsNPE() throws Exception {
                SmbFile parent = newParent();
                assertThrows(NullPointerException.class, () -> new ShareEnumIterator(parent, null, null));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        return this;
      }
    
      /**
       * Sets distinct values for {@code type}, so that when a class {@code Foo} is tested for {@link
       * Object#equals} and {@link Object#hashCode}, and its construction requires a parameter of {@code
       * type}, the distinct values of {@code type} can be passed as parameters to create {@code Foo}
       * instances that are unequal.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        return this;
      }
    
      /**
       * Sets distinct values for {@code type}, so that when a class {@code Foo} is tested for {@link
       * Object#equals} and {@link Object#hashCode}, and its construction requires a parameter of {@code
       * type}, the distinct values of {@code type} can be passed as parameters to create {@code Foo}
       * instances that are unequal.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      }
    
      private static <X extends Exception> List<Constructor<X>> preferringStringsThenThrowables(
          List<Constructor<X>> constructors) {
        return WITH_STRING_PARAM_THEN_WITH_THROWABLE_PARAM.sortedCopy(constructors);
      }
    
      // TODO: b/296487962 - Consider defining a total order over constructors.
      private static final Ordering<List<Class<?>>> ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST =
          Ordering.natural()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

        // Test successful PAC creation with mocked Pac construction
        @Test
        void testConstructorSuccess() throws PACDecodingException {
            // Setup key
            byte[] keyBytes = new byte[32];
            KerberosKey kdcKey = new KerberosKey(null, keyBytes, PacSignature.HMAC_SHA1_96_AES256, 1);
            keys.put(PacSignature.ETYPE_AES256_CTS_HMAC_SHA1_96, kdcKey);
    
            // Mock Pac construction to bypass complex validation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top