Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for sysvsem (0.15 sec)

  1. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

                i.next();
            }
            System.out.println("ArrayMap iteration:" + (System.currentTimeMillis() - start));
    
            start = System.currentTimeMillis();
            SerializeUtil.serialize(hmap);
            System.out.println("HashMap serialize:" + (System.currentTimeMillis() - start));
    
            start = System.currentTimeMillis();
            SerializeUtil.serialize(amap);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java

        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final DateConverter converter = new DateConverter("yyyy/MM/dd");
            final Date result = (Date) converter.getAsObject("2008/01/16");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/01/16"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsTarget() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

         */
        public void testExpired() throws Exception {
            TimeoutTask task = TimeoutManager.getInstance().addTimeoutTarget(new TimeoutTarget() {
                public void expired() {
                    System.out.println("expired");
                    expiredCount++;
                }
            }, 1, true);
    
            assertNotNull(TimeoutManager.getInstance().thread);
            Thread.sleep(2000);
            assertTrue(expiredCount > 0);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(getClass());
            final String[] names = beanDesc.getMethodNames();
            for (final String name : names) {
                System.out.println(name);
            }
            assertThat(names.length > 0, is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testInvalidProperty() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

            final List<String> list = newArrayList();
            list.add("aaa");
            list.add("bbb");
            list.add("ccc");
            for (final Indexed<String> indexed : indexed(list)) {
                System.out.println(indexed.getIndex());
                System.out.println(indexed.getElement());
            }
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testForEachLineIterator() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

            final JarURLConnection con = (JarURLConnection) classURL.openConnection();
            ClassTraversalUtil.forEach(con.getJarFile(), (ClassHandler) (packageName, shortClassName) -> {
                if (count < 10) {
                    System.out.println(ClassUtil.concatName(packageName, shortClassName));
                }
                assertThat(packageName, is(notNullValue()));
                assertThat(shortClassName, is(notNullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/exception/ConverterRuntimeExceptionTest.java

        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final ConverterRuntimeException e = new ConverterRuntimeException("hoge", "xxx", new RuntimeException("cause"));
            System.out.println(e.getMessage());
            assertThat(e.getPropertyName(), is("hoge"));
            assertThat(e.getValue(), is((Object) "xxx"));
            assertThat(e.getCause().getMessage(), is("cause"));
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/io/LineIteratorTest.java

         */
        @Test
        public void testForEach() throws Exception {
            final StringReader reader = new StringReader("aaa\nbbb\nccc\n");
            for (final String line : LineIterator.iterable(reader)) {
                System.out.println(line);
            }
        }
    
    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)
  9. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        /**
         * @throws Exception
         */
        public void testEncode() throws Exception {
            assertEquals("1", ENCODED_DATA, Base64Util.encode(BINARY_DATA));
            System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' }));
        }
    
        /**
         * @throws Exception
         */
        public void testDecode() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/misc/DynamicProperties.java

            } else {
                propertiesFile = file;
            }
            load();
        }
    
        public boolean isUpdated() {
            final long now = System.currentTimeMillis();
            if (now - lastChecked < checkInterval) {
                lastChecked = now;
                return false;
            }
            lastChecked = now;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top