@@ -0,0 +1,1591 @@
+package org.docksidestage.mysql.dbflute.whitebox.dfprop;%0D%0A%0D%0Aimport org.dbflute.bhv.readable.EntityRowHandler;%0D%0Aimport org.docksidestage.mysql.dbflute.resola.exbhv.ResolaStationBhv;%0D%0Aimport org.docksidestage.mysql.dbflute.resola.exentity.ResolaStation;%0D%0Aimport org.docksidestage.mysql.unit.UnitContainerTestCase;%0D%0A%0D%0A/**%0D%0A * @author jflute%0D%0A */%0D%0Apublic class WxCursorByPagingTest extends UnitContainerTestCase %7B%0D%0A%0D%0A    private ResolaStationBhv resolaStationBhv;%0D%0A%0D%0A    public void test_customizeCursorSelect_breakCursor() throws Exception %7B%0D%0A        // ## Arrange ##%0D%0A        EntityRowHandler%3CResolaStation%3E handler = new EntityRowHandler%3CResolaStation%3E() %7B%0D%0A%0D%0A            private boolean cursorBreak;%0D%0A            private int index;%0D%0A%0D%0A            @Override%0D%0A            public void handle(ResolaStation station) %7B%0D%0A                log(index, station.getStationId(), station.getStationName());%0D%0A                if (index %3E 2) %7B%0D%0A                    cursorBreak = true;%0D%0A                %7D%0D%0A                ++index;%0D%0A            %7D%0D%0A%0D%0A            @Override%0D%0A            public boolean isBreakCursor() %7B%0D%0A                return cursorBreak;%0D%0A            %7D%0D%0A%0D%0A            @Override%0D%0A            public String toString() %7B%0D%0A                return String.valueOf(index);%0D%0A            %7D%0D%0A        %7D;%0D%0A%0D%0A        // ## Act ##%0D%0A        resolaStationBhv.selectCursor(cb -%3E %7B%0D%0A            cb.customizeCursorSelect(op -%3E op.byPagingOrderByPK(3));%0D%0A            cb.query().addOrderBy_StationId_Asc();%0D%0A        %7D, handler);%0D%0A%0D%0A        // ## Assert ##%0D%0A        assertEquals(%223%22, handler.toString());%0D%0A    %7D%0D%0A%7D%0D%0A

test customizeCursorSelect()'s breakCursor