ListUtilsTest.java :  » GWT » robusta-web-library » com » robustaweb » library » commons » util » Java Open Source

Java Open Source » GWT » robusta web library 
robusta web library » com » robustaweb » library » commons » util » ListUtilsTest.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.robustaweb.library.commons.util;

import com.robustaweb.library.commons.util.ListUtils;
import java.util.ArrayList;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author robusta web
 */
public class ListUtilsTest {

    public ListUtilsTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    @Test
    public void testSetUnicity() {

        ArrayList list = new ArrayList();
        list.add("3");
        list.add(3);
        list.add(4);
        list.add("3");
        list.add("Three");
        list.add("4");
        list.add("3");
        list.add("11");
        list.add(4);
        list.add(list);
        
         ListUtils.setUnicity(list);
         assertTrue(list.size() == 7 );
         assertTrue(list.indexOf(3)==1 );
         assertTrue(list.indexOf(4)==2 );


    }

    @Test
    public void testListedeLignesVide_int() {
    }

    @Test
    public void testListedeLignesVide_0args() {
    }

    @Test
    public void testListeVide() {
    }

    @Test
    public void testConvertArrayToArrayList() {
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.