Code example for TableLayout

Methods: getChildCount

0
	 */ 
	@UiThreadTest 
	public void testDeleteRows(){ 
		this.activity.deleteRows();
		assertEquals(1, lindholmenTableLayout.getChildCount());
		assertEquals(1, chalmersTableLayout.getChildCount());
	} 
 
	/** 
	 * Test that tests if right amount of rows is created 
	 */ 
	@UiThreadTest 
	public void testMakeRows(){ 
		int nrOfRows = 0;
		this.activity.deleteRows();
		assertEquals(1, lindholmenTableLayout.getChildCount());
		assertEquals(1, chalmersTableLayout.getChildCount());
 
		this.activity.makeRows();
		try { 
			Field nrOfRowsField = activity.getClass().getDeclaredField("NROFROWS");