Code example for Map

Methods: isEmpty, values

0
        public void onIterationEnded() { 
            assertTrue(mStartCalled);
            assertFalse(mEndCalled);
            assertNull(mLabel);
            assertTrue("Expected Elements remaining: " +
                    Arrays.toString(mExpectedElements.values().toArray()),
                    mExpectedElements.isEmpty());
        } 
 
        @Override 
        public void onElementGroupStarted(EntryLabel label) {
            assertTrue(mStartCalled);
            assertFalse(mEndCalled);
            assertNull(mLabel);
            mLabel = label;
        } 
 
        @Override 
        public void onElementGroupEnded() { 
            assertTrue(mStartCalled);
            assertFalse(mEndCalled);