Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Testard (0.27 sec)

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

            assertThat(list.getLast(), is("1"));
            list.getLastEntry().remove();
            assertThat(list.size(), is(0));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAdd() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            list.add(1, "4");
            assertThat(list.get(1), is("4"));
            assertThat(list.get(2), is("2"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/timer/TimeoutTask.java

            if (status != ACTIVE) {
                throw new ClIllegalStateException(String.valueOf(status));
            }
            status = STOPPED;
        }
    
        /**
         * タイマーを再開始します。
         */
        public void restart() {
            status = ACTIVE;
            startTime = System.currentTimeMillis();
        }
    
        void expired() {
            timeoutTarget.expired();
        }
    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)
  3. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                        } else {
                            logger.warn("Failed to process a task.", e);
                        }
                    }
                    if (task.isPermanent()) {
                        task.restart();
                    }
                });
            } catch (final Exception e) {
                logger.warn("Failed to process a task.", e);
            }
        }
    
        private synchronized boolean isInterrupted() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(ArrayUtil.addAll(array, emptyArray), is(sameInstance(array)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAdd_int() throws Exception {
            final int[] array = new int[] { 1 };
            final int[] newArray = ArrayUtil.add(array, 2);
            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is(1));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top