亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? testlist.java

?? iBATIS似乎已遠離眾說紛紜的OR框架之列
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
            // expected
        }

        try {
            list.get(getFullElements().length);
            fail("List.get should throw IndexOutOfBoundsException [size]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        }

        try {
            list.get(Integer.MAX_VALUE);
            fail("List.get should throw IndexOutOfBoundsException " + 
              "[Integer.MAX_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        }
    }


    /**
     *  Tests {@link List#indexOf()}.
     */
    public void testListIndexOf() {
        resetFull();
        List list1 = getList();
        List list2 = getConfirmedList();

        Iterator iterator = list2.iterator();
        while (iterator.hasNext()) {
            Object element = iterator.next();
            assertEquals("indexOf should return correct result", 
              list1.indexOf(element), list2.indexOf(element));            
            verify();
        }

        Object[] other = getOtherElements();
        for (int i = 0; i < other.length; i++) {
            assertEquals("indexOf should return -1 for nonexistent element",
              list1.indexOf(other[i]), -1);
            verify();
        }
    }


    /**
     *  Tests {@link List#lastIndexOf()}.
     */
    public void testListLastIndexOf() {
        resetFull();
        List list1 = getList();
        List list2 = getConfirmedList();

        Iterator iterator = list2.iterator();
        while (iterator.hasNext()) {
            Object element = iterator.next();
            assertEquals("lastIndexOf should return correct result",
              list1.lastIndexOf(element), list2.lastIndexOf(element));
            verify();
        }

        Object[] other = getOtherElements();
        for (int i = 0; i < other.length; i++) {
            assertEquals("lastIndexOf should return -1 for nonexistent " +
              "element", list1.lastIndexOf(other[i]), -1);
            verify();
        }
    }


    /**
     *  Tests bounds checking for {@link List#set(int,Object)} on an
     *  empty list.
     */
    public void testListSetByIndexBoundsChecking() {
        List list = makeEmptyList();
        Object element = getOtherElements()[0];

        try {
            list.set(Integer.MIN_VALUE, element);
            fail("List.set should throw IndexOutOfBoundsException " +
              "[Integer.MIN_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(-1, element);
            fail("List.set should throw IndexOutOfBoundsException [-1]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(0, element);
            fail("List.set should throw IndexOutOfBoundsException [0]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(1, element);
            fail("List.set should throw IndexOutOfBoundsException [1]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(Integer.MAX_VALUE, element);
            fail("List.set should throw IndexOutOfBoundsException " +
              "[Integer.MAX_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        }
    }


    /**
     *  Tests bounds checking for {@link List#set(int,Object)} on a
     *  full list.
     */
    public void testListSetByIndexBoundsChecking2() {
        List list = makeFullList();
        Object element = getOtherElements()[0];

        try {
            list.set(Integer.MIN_VALUE, element);
            fail("List.set should throw IndexOutOfBoundsException " +
              "[Integer.MIN_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(-1, element);
            fail("List.set should throw IndexOutOfBoundsException [-1]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(getFullElements().length, element);
            fail("List.set should throw IndexOutOfBoundsException [size]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.set(Integer.MAX_VALUE, element);
            fail("List.set should throw IndexOutOfBoundsException " +
              "[Integer.MAX_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 
    }


    /**
     *  Test {@link List#set(int,Object)}.
     */
    public void testListSetByIndex() {
        resetFull();
        Object[] elements = getFullElements();
        Object[] other = getOtherElements();

        for (int i = 0; i < elements.length; i++) {
            Object n = other[i % other.length];
            Object v = ((List)collection).set(i, n);
            assertEquals("Set should return correct element", elements[i], v);
            ((List)confirmed).set(i, n);
            verify();
        }
    }


    /**
     *  Tests bounds checking for {@link List#remove(int)} on an
     *  empty list.
     */
    public void testListRemoveByIndexBoundsChecking() {
        if (!isRemoveSupported()) return;

        List list = makeEmptyList();

        try {
            list.remove(Integer.MIN_VALUE);
            fail("List.remove should throw IndexOutOfBoundsException " +
              "[Integer.MIN_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(-1);
            fail("List.remove should throw IndexOutOfBoundsException [-1]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(0);
            fail("List.remove should throw IndexOutOfBoundsException [0]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(1);
            fail("List.remove should throw IndexOutOfBoundsException [1]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(Integer.MAX_VALUE);
            fail("List.remove should throw IndexOutOfBoundsException " +
              "[Integer.MAX_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        }
    }


    /**
     *  Tests bounds checking for {@link List#remove(int)} on a
     *  full list.
     */
    public void testListRemoveByIndexBoundsChecking2() {
        if (!isRemoveSupported()) return;

        List list = makeFullList();

        try {
            list.remove(Integer.MIN_VALUE);
            fail("List.remove should throw IndexOutOfBoundsException " +
              "[Integer.MIN_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(-1);
            fail("List.remove should throw IndexOutOfBoundsException [-1]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(getFullElements().length);
            fail("List.remove should throw IndexOutOfBoundsException [size]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 

        try {
            list.remove(Integer.MAX_VALUE);
            fail("List.remove should throw IndexOutOfBoundsException " +
              "[Integer.MAX_VALUE]");
        } catch(IndexOutOfBoundsException e) {
            // expected
        } 
    }


    /**
     *  Tests {@link List#remove(int)}.
     */
    public void testListRemoveByIndex() {
        if (!isRemoveSupported()) return;

        int max = getFullElements().length;
        for (int i = 0; i < max; i++) {
            resetFull();
            Object o1 = ((List)collection).remove(i);
            Object o2 = ((List)confirmed).remove(i);
            assertEquals("remove should return correct element", o1, o2);
            verify();
        }
    }


    /**
     *  Tests the read-only bits of {@link List#listIterator()}.
     */
    public void testListListIterator() {
        resetFull();
        forwardTest(getList().listIterator(), 0);
        backwardTest(getList().listIterator(), 0);
    }


    /**
     *  Tests the read-only bits of {@link List#listIterator(int)}.
     */
    public void testListListIteratorByIndex() {
        resetFull();
        for (int i = 0; i < confirmed.size(); i++) {
            forwardTest(getList().listIterator(i), i);
            backwardTest(getList().listIterator(i), i);
        }
    }


    /**
     *  Traverses to the end of the given iterator.
     *
     *  @param iter  the iterator to traverse
     *  @param i     the starting index
     */
    private void forwardTest(ListIterator iter, int i) {
        List list = getList();
        int max = getFullElements().length;

        while (i < max) {
            assertTrue("Iterator should have next", iter.hasNext());
            assertEquals("Iterator.nextIndex should work", 
              iter.nextIndex(), i);
            assertEquals("Iterator.previousIndex should work",
              iter.previousIndex(), i - 1);
            Object o = iter.next();
            assertEquals("Iterator returned correct element", list.get(i), o);
            i++;
        }

        assertTrue("Iterator shouldn't have next", !iter.hasNext());
        assertEquals("nextIndex should be size", iter.nextIndex(), max);
        assertEquals("previousIndex should be size - 1", 
          iter.previousIndex(), max - 1);

        try {
            iter.next();
            fail("Exhausted iterator should raise NoSuchElement");
        } catch (NoSuchElementException e) {
            // expected
        }
    }


    /**
     *  Traverses to the beginning of the given iterator.
     *
     *  @param iter  the iterator to traverse
     *  @param i     the starting index
     */
    private void backwardTest(ListIterator iter, int i) {
        List list = getList();
        int max = getFullElements().length;

        while (i > 0) {
            assertTrue("Iterator should have next", iter.hasPrevious());
            assertEquals("Iterator.nextIndex should work", 
              iter.nextIndex(), i);
            assertEquals("Iterator.previousIndex should work",
              iter.previousIndex(), i - 1);
            Object o = iter.previous();
            assertEquals("Iterator returned correct element", 
              list.get(i - 1), o);
            i--;
        }

        assertTrue("Iterator shouldn't have previous", !iter.hasPrevious());
        assertEquals("nextIndex should be 0", iter.nextIndex(), 0);
        assertEquals("previousIndex should be -1", 
          iter.previousIndex(), -1);

        try {
            iter.previous();
            fail("Exhausted iterator should raise NoSuchElement");
        } catch (NoSuchElementException e) {
            // expected
        }

    }


    /**
     *  Tests the {@link ListIterator#add(Object)} method of the list

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区在线免费| 精品精品欲导航| 自拍偷拍亚洲欧美日韩| 成人免费视频caoporn| 国产亚洲欧美日韩日本| 成人在线综合网| 成人免费在线播放视频| 日本精品视频一区二区三区| 夜夜操天天操亚洲| 欧美久久久久久蜜桃| 日韩有码一区二区三区| 精品日韩一区二区三区免费视频| 国精品**一区二区三区在线蜜桃| 国产免费成人在线视频| av一区二区三区四区| 亚洲国产日韩精品| 欧美一级精品大片| 国产精品18久久久久久vr| 国产精品乱人伦| 欧美日韩国产天堂| 蜜臀国产一区二区三区在线播放| 久久久久久久久久久久久女国产乱 | 卡一卡二国产精品| 国产人久久人人人人爽| 91久久精品一区二区二区| 日韩高清不卡一区二区三区| 久久嫩草精品久久久久| 色88888久久久久久影院野外| 日日夜夜免费精品| 国产欧美日韩精品一区| 欧美在线啊v一区| 国产激情91久久精品导航| 亚洲主播在线播放| 日韩一卡二卡三卡国产欧美| 成人av电影免费在线播放| 丝袜亚洲另类丝袜在线| 国产欧美一区二区精品秋霞影院| 欧美羞羞免费网站| 国产高清久久久久| 亚洲成人精品一区| 国产精品久久久久久户外露出| 欧美精品三级日韩久久| av不卡在线观看| 激情成人综合网| 亚洲第一在线综合网站| 中文字幕不卡在线观看| 日韩一区二区三区免费看 | 国产精品久久久久国产精品日日| 欧美日韩国产在线观看| av在线播放一区二区三区| 麻豆91免费观看| 亚洲国产日韩在线一区模特 | 欧美一区二区三区色| 99国产精品久久久久| 国产一区二区毛片| 男女男精品视频| 亚洲高清免费视频| 亚洲欧美国产毛片在线| 中日韩av电影| 久久久精品蜜桃| 欧美mv日韩mv亚洲| 欧美一级片免费看| 欧美日韩成人激情| 欧美性高清videossexo| 99re6这里只有精品视频在线观看| 国内成人免费视频| 韩国毛片一区二区三区| 日本aⅴ免费视频一区二区三区| 亚洲乱码一区二区三区在线观看| 中文字幕精品一区二区精品绿巨人| 精品国精品国产| 日韩三级免费观看| 日韩一区二区免费高清| 欧美一区中文字幕| 9191久久久久久久久久久| 欧美日韩国产小视频在线观看| 日韩一区二区三区免费看| 欧美日韩国产小视频在线观看| 欧美视频日韩视频在线观看| 色婷婷精品久久二区二区蜜臀av | 亚洲欧美电影一区二区| 成人欧美一区二区三区在线播放| 国产精品久久99| 亚洲人成精品久久久久| 亚洲欧美区自拍先锋| 亚洲激情欧美激情| 亚洲成人动漫在线免费观看| 午夜精品影院在线观看| 图片区小说区国产精品视频| 肉色丝袜一区二区| 毛片不卡一区二区| 国产精品456露脸| 99热这里都是精品| 91传媒视频在线播放| 欧美日韩国产一区二区三区地区| 91.麻豆视频| 久久久亚洲精品石原莉奈 | 欧美变态口味重另类| 精品国产99国产精品| 国产欧美日韩不卡| 亚洲精品综合在线| 日韩国产一区二| 精彩视频一区二区三区| 懂色av一区二区三区免费看| 9i在线看片成人免费| 在线观看亚洲精品| 日韩情涩欧美日韩视频| 久久久国产一区二区三区四区小说 | 欧美一区二区精品在线| 26uuu成人网一区二区三区| 国产欧美中文在线| 亚洲国产美女搞黄色| 久草精品在线观看| av电影天堂一区二区在线| 欧美剧情片在线观看| 精品处破学生在线二十三| 亚洲视频一区在线| 日本不卡在线视频| 99久久国产综合精品女不卡| 7777精品伊人久久久大香线蕉的 | 欧美大片在线观看| **欧美大码日韩| 奇米综合一区二区三区精品视频 | 美女一区二区三区| 成人综合日日夜夜| 91精品国产一区二区三区香蕉| 国产午夜精品美女毛片视频| 亚洲五月六月丁香激情| 国产精品 日产精品 欧美精品| 欧美影视一区二区三区| 国产午夜精品久久| 日本亚洲视频在线| av在线播放一区二区三区| 日韩精品在线一区| 亚洲成年人网站在线观看| 高清av一区二区| 日韩久久免费av| 亚洲一区二区黄色| 不卡的电影网站| 精品福利视频一区二区三区| 一区二区三区在线视频免费观看| 国产乱码字幕精品高清av | caoporm超碰国产精品| 日韩一区二区三区av| 亚洲综合丁香婷婷六月香| 国产iv一区二区三区| 欧美变态凌虐bdsm| 日韩中文字幕亚洲一区二区va在线| 国产精品久久久久久久久快鸭| 伊人色综合久久天天人手人婷| 国产久卡久卡久卡久卡视频精品| 这里只有精品99re| 亚洲一线二线三线视频| av中文字幕在线不卡| 国产午夜一区二区三区| 另类欧美日韩国产在线| 欧美夫妻性生活| 亚洲成国产人片在线观看| 在线亚洲精品福利网址导航| 国产精品精品国产色婷婷| 国产99久久久国产精品潘金网站| 日韩欧美成人一区| 美女诱惑一区二区| 日韩免费看的电影| 老司机精品视频在线| 欧美一区二区视频在线观看| 视频一区国产视频| 91精品国产91久久久久久一区二区 | 天天影视涩香欲综合网| 欧美亚洲动漫精品| 亚洲一区二三区| 欧美写真视频网站| 午夜在线电影亚洲一区| 欧美综合一区二区三区| 亚洲精品日韩一| 欧美日韩国产大片| 午夜精品一区二区三区三上悠亚| 欧美亚洲自拍偷拍| 亚洲国产综合在线| 欧美精品第一页| 人人精品人人爱| 精品欧美乱码久久久久久| 久久国产剧场电影| 久久精品人人做| 不卡区在线中文字幕| 亚洲美女视频一区| 欧美日韩免费电影| 裸体健美xxxx欧美裸体表演| www国产精品av| 粉嫩欧美一区二区三区高清影视| 久久久www免费人成精品| 成人免费视频免费观看| 亚洲精品国久久99热| 欧美日本国产视频| 麻豆精品国产传媒mv男同| 久久久久成人黄色影片| 94-欧美-setu| 日韩中文字幕区一区有砖一区| www国产成人免费观看视频 深夜成人网| 国产成人精品1024|