Code example for ArrayList

Methods: add

0
    assertNull(bundle.getStringArrayList("bar"));
  } 
 
  @Test 
  public void testIntegerArrayList() { 
    ArrayList<Integer> list = new ArrayList<Integer>();
    list.add(100);
 
    bundle.putIntegerArrayList("foo", new ArrayList<Integer>(list));
    Assert.assertEquals(list, bundle.getIntegerArrayList("foo"));
    assertNull(bundle.getIntegerArrayList("bar"));
  } 
 
  @Test 
  public void testBundle() { 
    Bundle innerBundle = new Bundle();
    innerBundle.putInt("int", 7);
    bundle.putBundle("bundle", innerBundle);
 
    assertEquals(innerBundle, bundle.getBundle("bundle"));
    assertNull(bundle.getBundle("bar"));