1 60 package org.jaxen.util; 61 62 import java.util.List ; 63 64 import junit.framework.TestCase; 65 66 public class SingletonListTest extends TestCase { 67 68 public void testIndexOutOfBoundsException() { 69 70 List list = new SingletonList(new Object ()); 71 try { 72 list.get(1); 73 fail("Got element 1"); 74 } 75 catch (IndexOutOfBoundsException ex) { 76 assertNotNull(ex.getMessage()); 77 } 78 79 } 80 81 } 82 | Popular Tags |