Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for Vector (0.04 sec)

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

        void testAs_Enumeration_Success() throws PACDecodingException {
            // Test successful casting from enumeration
            Vector<ASN1Integer> vector = new Vector<>();
            ASN1Integer expected = new ASN1Integer(123);
            vector.add(expected);
            ASN1Integer result = ASN1Util.as(ASN1Integer.class, vector.elements());
            assertSame(expected, result);
        }
    
        @Test
        void testAs_Enumeration_Failure() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param c the collection of elements to be placed in the vector
         * @return a new instance of {@link Vector}
         * @see Vector#Vector(Collection)
         */
        public static <E> Vector<E> newVector(final Collection<? extends E> c) {
            return new Vector<>(c);
        }
    
        /**
         * Creates and returns a new instance of {@link Vector}.
         *
         * @param <E> the element type of {@link Vector}
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

        @SuppressWarnings("unused")
        @Test
        public void testIterable() throws Exception {
            final Vector<String> vector = new Vector<String>();
            vector.add("a");
            vector.add("b");
            int count = 0;
            for (final String s : iterable(vector.elements())) {
                ++count;
            }
            assertThat(count, is(2));
        }
    
        /**
         * Test method for
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

         */
        @Test
        void testConstructorUnknownField() throws IOException {
            ASN1EncodableVector vector = new ASN1EncodableVector();
            vector.add(new DERTaggedObject(99, new DERGeneralString("unknown")));
            DERSequence sequence = new DERSequence(vector);
            byte[] encoded = new DERTaggedObject(false, BERTags.APPLICATION, 1, sequence).getEncoded();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/spnego/NegTokenInit.java

                if (mechs != null) {
                    final ASN1EncodableVector vector = new ASN1EncodableVector();
                    for (final ASN1ObjectIdentifier mech : mechs) {
                        vector.add(mech);
                    }
                    fields.add(new DERTaggedObject(true, 0, new DERSequence(vector)));
                }
                final int ctxFlags = getContextFlags();
                if (ctxFlags != 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

            .createTestSuite();
      }
    
      // We are testing Vector / testing our tests on Vector.
      @SuppressWarnings("JdkObsolete")
      private Test testsForVector() {
        return ListTestSuiteBuilder.using(
                new TestStringListGenerator() {
                  @Override
                  protected List<String> create(String[] elements) {
                    return new Vector<>(MinimalCollection.of(elements));
                  }
                })
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmUtilTest.java

            }
            return out;
        }
    
        @Test
        @DisplayName("getNTHash: known vector for 'password'")
        void testGetNTHash_knownVector() {
            // Arrange
            String password = "password";
            // Known NT hash for "password" (UTF-16LE MD4)
            // This is a well-known test vector: password -> 8846F7EAEE8FB117AD06BDD830B7586C
            byte[] expected = hex("8846F7EAEE8FB117AD06BDD830B7586C");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/util/HMACT64Test.java

            assertArrayEquals(result1, result2);
        }
    
        @Test
        void testHMACT64WithKnownTestVector() throws NoSuchAlgorithmException {
            // Test with known test vector
            // Using test vector from RFC 2104 adapted for HMACT64
            byte[] key = new byte[16];
            Arrays.fill(key, (byte) 0x0b);
            byte[] data = "Hi There".getBytes();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbSession.java

     */
    
    package jcifs.smb1.smb1;
    
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.util.Enumeration;
    import java.util.Vector;
    
    import jcifs.smb1.Config;
    import jcifs.smb1.UniAddress;
    import jcifs.smb1.netbios.NbtAddress;
    import jcifs.smb1.util.LogStream;
    
    /**
     * The SmbSession class represents an SMB session established with a server.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NetworkExplorerTest.java

        @Test
        void testInit_WithJcifsParameters() throws ServletException {
            // Reset mocks for this test
            reset(servletConfig, servletContext);
    
            // Setup init parameters
            Vector<String> paramNames = new Vector<>();
            paramNames.add("jcifs.smb.client.domain");
            paramNames.add("jcifs.http.enableBasic");
            paramNames.add("someOtherParam");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top