car/src/androidTest/java/androidx/car/widget/ActionBarTest.java
@Test
    public void testEmptyState() {
        setUpActionBarItems(0);
        onView(withId(androidx.car.test.R.id.action_bar)).check((view, noViewFoundException) -> {
            Preconditions.checkNotNull(view);
            // All slots should be empty.
            assertLeftItemsNotEmpty(TOP_ROW_IDX, 0);
            assertLeftItemsNotEmpty(BOTTOM_ROW_IDX, 0);
        });
    }
/**
     * Tests that the bar with no children views is displayed correctly
     */
Tests that the bar with no children views is displayed correctly
Tests that the bar with no children views is displayed correctly
@Test
    public void testEmptyState() {
        setUpActionBarItems(0);
        onView(withId(androidx.car.test.R.id.action_bar)).check((view, noViewFoundException) -> {
            Preconditions.checkNotNull(view);
            assertLeftItemsNotEmpty(TOP_ROW_IDX, 0);
            assertLeftItemsNotEmpty(BOTTOM_ROW_IDX, 0);
        });
    }
@ Test public void testEmptyState ( ) { setUpActionBarItems ( 0 ) ; onView ( withId ( androidx . car . test . R . id . action_bar ) ) . check ( ( view , noViewFoundException ) -> { Preconditions . checkNotNull ( view ) ; assertLeftItemsNotEmpty ( TOP_ROW_IDX , 0 ) ; assertLeftItemsNotEmpty ( BOTTOM_ROW_IDX , 0 ) ; } ) ; }
Tests that the bar with no children views is displayed correctly
Tests that the bar with no children views is displayed correctly
// All slots should be empty.