mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/TestBundleConfigurationMgrImpl.java
@Test
    public void testGetBundles()
    {   
        //Mock the bundle list returned by the bundle manager.
        List<BundleModel> bundles = new ArrayList<BundleModel>();
        BundleModel bundle = mock(BundleModel.class);
        bundles.add(bundle);
        when(m_BundleMgr.getBundlesAsync(100)).thenReturn(bundles);
        
        //Verify the list of bundles returned is correct.
        assertThat(m_SUT.getBundles(), is(bundles));
        //Verify that the bundle manager service was called with the appropriate controller ID.
        verify(m_BundleMgr).getBundlesAsync(100);
    }
/**
     * Test that the get bundles method returns the appropriate list of bundles from the bundle manager service.
     * Verify the list of bundles returned is correct.
     */
Test that the get bundles method returns the appropriate list of bundles from the bundle manager service.
Verify the list of bundles returned is correct.
Test that the get bundles method returns the appropriate list of bundles from the bundle manager service . Verify the list of bundles returned is correct .
@Test
    public void testGetBundles()
    {   
        List<BundleModel> bundles = new ArrayList<BundleModel>();
        BundleModel bundle = mock(BundleModel.class);
        bundles.add(bundle);
        when(m_BundleMgr.getBundlesAsync(100)).thenReturn(bundles);
        assertThat(m_SUT.getBundles(), is(bundles));
        verify(m_BundleMgr).getBundlesAsync(100);
    }
@ Test public void testGetBundles ( ) { List < BundleModel > bundles = new ArrayList < BundleModel > ( ) ; BundleModel bundle = mock ( BundleModel . class ) ; bundles . add ( bundle ) ; when ( m_BundleMgr . getBundlesAsync ( 100 ) ) . thenReturn ( bundles ) ; assertThat ( m_SUT . getBundles ( ) , is ( bundles ) ) ; verify ( m_BundleMgr ) . getBundlesAsync ( 100 ) ; }
Test that the get bundles method returns the appropriate list of bundles from the bundle manager service.
Test that the get bundles method returns the appropriate list of bundles from the bundle manager service .
//Mock the bundle list returned by the bundle manager. //Verify the list of bundles returned is correct. //Verify that the bundle manager service was called with the appropriate controller ID.