mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/TestBundleMgrImpl.java
@SuppressWarnings("unchecked")
    private BundleModel addBundleToMap(int bundleState) throws SecurityException, NoSuchFieldException, 
        IllegalArgumentException, IllegalAccessException
    {
      //Create the bundle model to be retrieved.
        BundleModel bundle = new BundleModel(createBundleInfo(bundleState));
        
        //Place the bundle model in the map contained within the bundle manager.
        Field map = m_SUT.getClass().getDeclaredField("m_ControllerBundles");
        map.setAccessible(true);
        Map<Integer, Map<Long, BundleModel>> controllerBundles = (Map<Integer, Map<Long, BundleModel>>)map.get(m_SUT);
        Map<Long, BundleModel> bundleList = new HashMap<Long, BundleModel>();
        bundleList.put(bundle.getBundleId(), bundle);
        controllerBundles.put(25, bundleList);
        
        return bundle;
    }
/**
     * Adds a bundle to the bundle manager map.
     */
Adds a bundle to the bundle manager map.
Adds a bundle to the bundle manager map .
@SuppressWarnings("unchecked")
    private BundleModel addBundleToMap(int bundleState) throws SecurityException, NoSuchFieldException, 
        IllegalArgumentException, IllegalAccessException
    {
        BundleModel bundle = new BundleModel(createBundleInfo(bundleState));
        Field map = m_SUT.getClass().getDeclaredField("m_ControllerBundles");
        map.setAccessible(true);
        Map<Integer, Map<Long, BundleModel>> controllerBundles = (Map<Integer, Map<Long, BundleModel>>)map.get(m_SUT);
        Map<Long, BundleModel> bundleList = new HashMap<Long, BundleModel>();
        bundleList.put(bundle.getBundleId(), bundle);
        controllerBundles.put(25, bundleList);
        return bundle;
    }
@ SuppressWarnings ( "unchecked" ) private BundleModel addBundleToMap ( int bundleState ) throws SecurityException , NoSuchFieldException , IllegalArgumentException , IllegalAccessException { BundleModel bundle = new BundleModel ( createBundleInfo ( bundleState ) ) ; Field map = m_SUT . getClass ( ) . getDeclaredField ( "m_ControllerBundles" ) ; map . setAccessible ( true ) ; Map < Integer , Map < Long , BundleModel > > controllerBundles = ( Map < Integer , Map < Long , BundleModel > > ) map . get ( m_SUT ) ; Map < Long , BundleModel > bundleList = new HashMap < Long , BundleModel > ( ) ; bundleList . put ( bundle . getBundleId ( ) , bundle ) ; controllerBundles . put ( 25 , bundleList ) ; return bundle ; }
Adds a bundle to the bundle manager map.
Adds a bundle to the bundle manager map .
//Create the bundle model to be retrieved. //Place the bundle model in the map contained within the bundle manager.