mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/TestBundleModel.java
@Test
    public void testBundleState()
    {
        assertThat(m_SUT.getState(), is("Installed"));
        
        m_SUT.setState(Bundle.RESOLVED);
        assertThat(m_SUT.getState(), is("Resolved"));
        
        m_SUT.setState(Bundle.STARTING);
        assertThat(m_SUT.getState(), is("Starting"));
        
        m_SUT.setState(Bundle.STOPPING);
        assertThat(m_SUT.getState(), is("Stopping"));
        
        m_SUT.setState(Bundle.ACTIVE);
        assertThat(m_SUT.getState(), is("Active"));
        
        m_SUT.setState(Bundle.UNINSTALLED);
        assertThat(m_SUT.getState(), is("Uninstalled"));
        
        m_SUT.setState(10000);
        assertThat(m_SUT.getState(), is("State Could Not Be Determined"));
    }
/**
     * Test getting the current state of the bundle.
     * Verify the correct state of the bundle was returned.
     */
Test getting the current state of the bundle.
Verify the correct state of the bundle was returned.
Test getting the current state of the bundle . Verify the correct state of the bundle was returned .
@Test
    public void testBundleState()
    {
        assertThat(m_SUT.getState(), is("Installed"));
        m_SUT.setState(Bundle.RESOLVED);
        assertThat(m_SUT.getState(), is("Resolved"));
        m_SUT.setState(Bundle.STARTING);
        assertThat(m_SUT.getState(), is("Starting"));
        m_SUT.setState(Bundle.STOPPING);
        assertThat(m_SUT.getState(), is("Stopping"));
        m_SUT.setState(Bundle.ACTIVE);
        assertThat(m_SUT.getState(), is("Active"));
        m_SUT.setState(Bundle.UNINSTALLED);
        assertThat(m_SUT.getState(), is("Uninstalled"));
        m_SUT.setState(10000);
        assertThat(m_SUT.getState(), is("State Could Not Be Determined"));
    }
@ Test public void testBundleState ( ) { assertThat ( m_SUT . getState ( ) , is ( "Installed" ) ) ; m_SUT . setState ( Bundle . RESOLVED ) ; assertThat ( m_SUT . getState ( ) , is ( "Resolved" ) ) ; m_SUT . setState ( Bundle . STARTING ) ; assertThat ( m_SUT . getState ( ) , is ( "Starting" ) ) ; m_SUT . setState ( Bundle . STOPPING ) ; assertThat ( m_SUT . getState ( ) , is ( "Stopping" ) ) ; m_SUT . setState ( Bundle . ACTIVE ) ; assertThat ( m_SUT . getState ( ) , is ( "Active" ) ) ; m_SUT . setState ( Bundle . UNINSTALLED ) ; assertThat ( m_SUT . getState ( ) , is ( "Uninstalled" ) ) ; m_SUT . setState ( 10000 ) ; assertThat ( m_SUT . getState ( ) , is ( "State Could Not Be Determined" ) ) ; }
Test getting the current state of the bundle.
Test getting the current state of the bundle .