Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,653 for New (6.6 sec)

  1. src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java

        @Test
        public void test() throws Exception {
            final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null);
            final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1);
            final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2);
    
            final ClassLoaderIterator it = new ClassLoaderIterator(cl3);
            assertThat(it.hasNext(), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            final Date date = toDate("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

        @Override
        public Set<K> keySet() {
          return new StandardKeySet();
        }
    
        @Override
        public Collection<V> values() {
          return new StandardValues();
        }
    
        @Override
        public String toString() {
          return standardToString();
        }
    
        @Override
        public Set<Entry<K, V>> entrySet() {
          return new StandardEntrySet() {
            @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        hasher.putShort((short) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testInt() {
        TestHasher hasher = new TestHasher();
        hasher.putInt(0x04030201);
        hasher.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testLong() {
        TestHasher hasher = new TestHasher();
        hasher.putLong(0x0807060504030201L);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            private final List<String> list = new LinkedList<>();
    
            private final int maxLineBuffer;
    
            public InputStreamThread(final InputStream is, final String charset, final int maxOutputLineBuffer) {
                try {
                    br = new BufferedReader(new InputStreamReader(is, charset));
                } catch (final UnsupportedEncodingException e) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            Map<String, Object> doc = new HashMap<>();
            doc.put("key1", new String[] { "aaa", "bbb" });
            assertArrayEquals(new String[] { "aaa", "bbb" }, DocumentUtil.getValue(doc, "key1", String[].class));
            assertEquals(Arrays.asList("aaa", "bbb"), (List<String>) DocumentUtil.getValue(doc, "key1", List.class));
        }
    
        public void test_list() {
            Map<String, Object> doc = new HashMap<>();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSinkTest.java

        TestByteSink failSink = new TestByteSink(WRITE_THROWS);
        assertThrows(IOException.class, () -> new TestByteSource(new byte[10]).copyTo(failSink));
        assertTrue(failSink.wasStreamClosed());
      }
    
      public void testClosesOnErrors_writingFromInputStreamThatThrows() throws IOException {
        TestByteSink okSink = new TestByteSink();
        TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]), READ_THROWS);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. scripts/mkdocs_hooks.py

                        new_title = first_child.title or new_title
                # Creating a new section makes it render it collapsed by default
                # no idea why, so, let's just modify the existing one
                # new_section = Section(title=new_title, children=new_children)
                item.title = new_title
                item.children = new_children
                new_items.append(item)
            else:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            try (InputStream expected = Files.newInputStream(beforePomFile)) {
                Model model = new Model(new MavenStaxReader().read(expected));
                MavenProject project = new MavenProject(model);
                project.setOriginalModel(model);
                DefaultConsumerPomArtifactTransformer t = new DefaultConsumerPomArtifactTransformer((s, p, f) -> {
                    try (InputStream is = Files.newInputStream(f)) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsBuilder.java

            RegexBasedInterpolator interpolator = new RegexBasedInterpolator();
    
            interpolator.addValueSource(new MapBasedValueSource(request.getSession().getUserProperties()));
    
            interpolator.addValueSource(new MapBasedValueSource(request.getSession().getSystemProperties()));
    
            try {
                interpolator.addValueSource(new EnvarBasedValueSource());
            } catch (IOException e) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.8K bytes
    - Viewed (0)
Back to top