Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestNext (0.06 sec)

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

            assertThat(emptyIterator.hasNext(), is(false));
        }
    
        /**
         * Test method for {@link org.codelibs.core.collection.EmptyIterator#next()}.
         */
        @Test
        public void testNext() {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("next"));
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            emptyIterator.next();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayIteratorTest.java

        /**
         * @see org.junit.rules.ExpectedException
         */
        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        /**
         *
         */
        @Test
        public void testNext() {
            final ArrayIterator<String> itr = new ArrayIterator<String>("a", "b", "c");
            assertThat(itr.next(), equalTo("a"));
            assertThat(itr.next(), equalTo("b"));
            assertThat(itr.next(), equalTo("c"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            final EnumerationIterator<String> itr = new EnumerationIterator<String>(vector.elements());
            itr.remove();
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testNext() throws Exception {
            final EnumerationIterator<String> itr = new EnumerationIterator<String>(new Vector<String>().elements());
            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var buf Buffer
    		buf.WriteRune(r)
    		check(t, fmt.Sprintf("TestWriteInvalidRune (%d)", r), &buf, "\uFFFD")
    	}
    }
    
    func TestNext(t *testing.T) {
    	b := []byte{0, 1, 2, 3, 4}
    	tmp := make([]byte, 5)
    	for i := 0; i <= 5; i++ {
    		for j := i; j <= 5; j++ {
    			for k := 0; k <= 6; k++ {
    				// 0 <= i <= j <= 5; 0 <= k <= 6
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top