Examples of previous()


Examples of org.apache.commons.collections15.OrderedMapIterator.previous()

        OrderedMapIterator it = makeEmptyOrderedMapIterator();
        Map map = getMap();
        assertEquals(false, it.hasPrevious());
        try {
            it.previous();
            fail();
        } catch (NoSuchElementException ex) {
        }
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.filtering.EntryFilteringCursor.previous()

                cursor.next();

                List<String> prevResults = new ArrayList<String>();

                while ( cursor.previous() )
                {
                    prevResults.add( 0, cursor.get().getDn().getName() );
                }

                assertEquals( nextResults.size(), prevResults.size() );
View Full Code Here

Examples of org.apache.directory.server.core.filtering.EntryFilteringCursor.previous()

                }

                cursor.next();

                List<String> prevResults = new ArrayList<String>();
                while ( cursor.previous() )
                {
                    prevResults.add( 0, cursor.get().getDn().getName() );
                }

                assertEquals( nextResults.size(), prevResults.size() );
View Full Code Here

Examples of org.apache.directory.server.xdbm.search.cursor.NotCursor.previous()

        cursor.afterLast();

        set.clear();

        while ( cursor.previous() )
        {
            assertTrue( cursor.available() );
            set.add( cursor.get().getId() );
            assertTrue( uuidSynChecker.isValidSyntax( cursor.get().getKey() ) );
        }
View Full Code Here

Examples of org.apache.directory.server.xdbm.search.cursor.PresenceCursor.previous()

        assertEquals( SchemaConstants.CN_AT_OID, cursor.get().getKey() );

        // test afterLast()
        cursor.afterLast();
        assertFalse( cursor.available() );
        assertTrue( cursor.previous() );
        assertTrue( cursor.available() );
        assertEquals( SchemaConstants.CN_AT_OID, cursor.get().getKey() );

        // test before()
        IndexEntry<String, String> entry = new IndexEntry<String, String>();
View Full Code Here

Examples of org.apache.directory.server.xdbm.search.cursor.SubstringCursor.previous()

        assertTrue( cursor.available() );
        assertEquals( Strings.getUUID( 6 ), cursor.get().getId() );
        assertEquals( "bean", cursor.get().getKey() );

        assertFalse( cursor.previous() );
        assertFalse( cursor.available() );
        cursor.close();
    }

View Full Code Here

Examples of org.apache.hadoop.hbase.codec.prefixtree.scanner.CellSearcher.previous()

    CellSearcher searcher = null;
    try {
      searcher = DecoderFactory.checkOut(block, true);
      searcher.positionAfterLastCell();
      int i = -1;
      while (searcher.previous()) {
        ++i;
        int oppositeIndex = rows.getInputs().size() - i - 1;
        KeyValue inputKv = rows.getInputs().get(oppositeIndex);
        KeyValue outputKv = KeyValueUtil.copyToNewKeyValue(searcher.current());
        Assert.assertEquals(inputKv, outputKv);
View Full Code Here

Examples of org.apache.harmony.sql.internal.rowset.SyncResolverImpl.previous()

            fail("Should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.previous();
            fail("Should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
View Full Code Here

Examples of org.apache.jena.jdbc.metadata.results.MetaResultSet.previous()

        // Move to end
        Assert.assertFalse(results.next());
        Assert.assertTrue(results.isAfterLast());
       
        // Move backwards
        Assert.assertTrue(results.previous());
        Assert.assertTrue(results.isFirst());
        Assert.assertFalse(results.isBeforeFirst());
        Assert.assertTrue(results.isLast());
        Assert.assertFalse(results.isAfterLast());
       
View Full Code Here

Examples of org.apache.tuscany.das.rdb.Pager.previous()

    customer2 = root.getDataObject("CUSTOMER[2]");
    assertEquals(3, customer1.getInt("ID"));
    assertEquals(4, customer2.getInt("ID"));
   
    // First page again
    root = pager.previous();
    customer1 = root.getDataObject("CUSTOMER[1]");
    customer2 = root.getDataObject("CUSTOMER[2]");
    assertEquals(1, customer1.getInt("ID"));
    assertEquals(2, customer2.getInt("ID"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.