Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 4,619 for _new (0.02 sec)

  1. guava-tests/test/com/google/common/collect/IterablesTest.java

      @GwtIncompatible // Iterables.filter(Iterable, Class)
      public void testFilterByType_iterator() throws Exception {
        HasBoth hasBoth = new HasBoth();
        Iterable<TypeA> alist = Lists.newArrayList(new TypeA(), new TypeA(), hasBoth, new TypeA());
        Iterable<TypeB> blist = filter(alist, TypeB.class);
        assertThat(blist).containsExactly(hasBoth).inOrder();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/TransportTest.java

                InputStream is = new ByteArrayInputStream("test".getBytes());
                assertThrows(IOException.class, () -> Transport.readn(is, new byte[5], 0, 10));
            }
    
            @Test
            @DisplayName("readn should return 0 when no more bytes available")
            void shouldReturnZeroWhenStreamEmpty() throws IOException {
                InputStream is = new ByteArrayInputStream("Hi".getBytes());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

            final Map<String, Object> map = new HashMap<>();
            map.put(FieldNames.TEXT, StringUtil.EMPTY);
    
            for (int i = 0; i < readings.length; i++) {
                map.put(FieldNames.READING_PREFIX + i, new String[] {});
            }
    
            map.put(FieldNames.FIELDS, new String[] {});
            map.put(FieldNames.TAGS, new String[] {});
            map.put(FieldNames.ROLES, new String[] {});
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableRangeMap.java

        ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<>(map.size());
        ImmutableList.Builder<V> valuesBuilder = new ImmutableList.Builder<>(map.size());
        for (Entry<Range<K>, ? extends V> entry : map.entrySet()) {
          rangesBuilder.add(entry.getKey());
          valuesBuilder.add(entry.getValue());
        }
        return new ImmutableRangeMap<>(rangesBuilder.build(), valuesBuilder.build());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @DisplayName("Should encode multiple locks sequentially")
            void testSequentialEncoding() {
                Smb2Lock lock1 = new Smb2Lock(100L, 200L, 1);
                Smb2Lock lock2 = new Smb2Lock(300L, 400L, 2);
                Smb2Lock lock3 = new Smb2Lock(500L, 600L, 4);
    
                int offset = 0;
                offset += lock1.encode(buffer, offset);
                offset += lock2.encode(buffer, offset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

            final File contentFile = createContentFile(".txt", content.getBytes());
    
            final CommandExtractor extractor = new CommandExtractor();
            extractor.command = getCommand(scriptFile);
            final Map<String, String> params = new HashMap<String, String>();
            final ExtractData text = extractor.getText(new FileInputStream(contentFile), params);
            assertEquals(content, text.getContent());
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                // Given
                byte[] buffer1 = new byte[10];
                byte[] buffer2 = new byte[10];
                SMBUtil.writeInt2(4, buffer1, 0);
                SMBUtil.writeInt2(4, buffer2, 0);
    
                // When - simulate concurrent access
                Thread thread1 = new Thread(() -> {
                    try {
                        response.readBytesWireFormat(buffer1, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/context/CIFSContextWrapper.java

        public SmbPipeResource getPipe(final String url, final int pipeType) throws CIFSException {
            try {
                return new SmbNamedPipe(url, pipeType, this);
            } catch (final MalformedURLException e) {
                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
        /**
         * Wraps a new context, allowing subclasses to provide custom wrapping behavior.
         *
         * @param newContext the context to wrap
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java

            byte[] buf = new byte[length];
            Arrays.fill(buf, (byte) 0xFF);
            return buf;
        }
    
        @Test
        @DisplayName("constructor initialises command and parameters correctly")
        void testConstructorInitialisesFields() throws Exception {
            int level = 42;
            Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(level);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CloserTest.java

        assertSuppressed(
            new Suppression(c2, tryException, c2Exception),
            new Suppression(c1, tryException, c1Exception));
      }
    
      public void testErrors() throws IOException {
        Closer closer = new Closer(suppressor);
    
        Error c1Exception = new Error();
        Error c2Exception = new Error();
        Error c3Exception = new Error();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
Back to top