Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 264 for incompatible (0.08 sec)

  1. src/main/java/jcifs/pac/ASN1Util.java

         * @param object the object to cast
         * @return object cast to type
         * @throws PACDecodingException if types are incompatible
         */
        public static <T> T as(final Class<T> type, final Object object) throws PACDecodingException {
            if (!type.isInstance(object)) {
                throw new PACDecodingException("Incompatible object types " + type + " " + object.getClass());
            }
    
            return type.cast(object);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/ASN1UtilTest.java

            // Test failed casting
            Object obj = 123; // Integer
            assertThrows(PACDecodingException.class, () -> {
                ASN1Util.as(String.class, obj);
            }, "Should throw PACDecodingException for incompatible types");
        }
    
        // --- as(Class, Enumeration) ---
    
        @Test
        void testAs_Enumeration_Success() throws PACDecodingException {
            // Test successful casting from enumeration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. cmd/storage-datatypes.go

    	NoOp    bool   `msg:"np"`
    }
    
    // DiskInfo is an extended type which returns current
    // disk usage per path.
    // The above means that any added/deleted fields are incompatible.
    //
    // The above means that any added/deleted fields are incompatible.
    //
    //msgp:tuple DiskInfo
    type DiskInfo struct {
    	Total      uint64
    	Free       uint64
    	Used       uint64
    	UsedInodes uint64
    	FreeInodes uint64
    	Major      uint32
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbTreeTest.java

            assertSame(innerTree, inner, "Should return correct inner tree");
        }
    
        /**
         * Test for unwrap with incompatible type.
         * Verifies behavior when trying to unwrap to an incompatible type.
         */
        @Test
        void testUnwrap_incompatibleType() {
            when(smbTree.unwrap(IncompatibleTree.class)).thenReturn(null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
       * Test EqualsTester with no equals or not equals objects. This checks proper handling of null,
       * incompatible class and reflexive tests
       */
      public void testTestEqualsEmptyLists() {
        equalsTester.addEqualityGroup(reference);
        equalsTester.testEquals();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/EqualsTester.java

     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
     *   <li>comparing each object against null returns false
     *   <li>comparing each object against an instance of an incompatible class returns false
     *   <li>comparing each pair of objects within the same equality group returns true
     *   <li>comparing each pair of objects from different equality groups returns false
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
     *   <li>comparing each object against null returns false
     *   <li>comparing each object against an instance of an incompatible class returns false
     *   <li>comparing each pair of objects within the same equality group returns true
     *   <li>comparing each pair of objects from different equality groups returns false
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            // Test getInfo with incompatible class throws exception
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            // Set info to SmbInfoAllocation
            SmbInfoAllocation allocation = new SmbInfoAllocation();
            setInfoField(response, allocation);
    
            // Try to get as FileFsSizeInformation (incompatible)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

    import static com.google.common.io.FileBackedOutputStreamTest.write;
    
    import com.google.common.testing.GcFinalization;
    import java.io.File;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Android-incompatible tests for {@link FileBackedOutputStream}.
     *
     * @author Chris Nokleberg
     */
    @AndroidIncompatible // Finalization probably just doesn't happen fast enough?
    @NullUnmarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeSmall() {
        // Check the first 1000 integers
        for (int i = 2; i < 1000; i++) {
          assertEquals(BigInteger.valueOf(i).isProbablePrime(100), LongMath.isPrime(i));
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeManyConstants() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top