edu.udayton.udri.asset.axis/test/edu/udayton/udri/asset/axis/TestAxisAsset.java
@Test
    public void testOnDeactivate() throws AssetException, IOException, IllegalStateException, InterruptedException
    {
        m_SUT.onDeactivate();
        
        ArgumentCaptor<SummaryStatusEnum> statusCaptor = ArgumentCaptor.forClass(SummaryStatusEnum.class);
        ArgumentCaptor<String> descCaptor = ArgumentCaptor.forClass(String.class);
        
        verify(m_Context).setStatus(statusCaptor.capture(), descCaptor.capture());

        assertThat(statusCaptor.getValue(), is(SummaryStatusEnum.OFF));
        assertThat(descCaptor.getValue(), is("Asset Deactivated"));
    }
/**
     * Verify that the asset can be deactivated.
     */
Verify that the asset can be deactivated.
Verify that the asset can be deactivated .
@Test
    public void testOnDeactivate() throws AssetException, IOException, IllegalStateException, InterruptedException
    {
        m_SUT.onDeactivate();
        ArgumentCaptor<SummaryStatusEnum> statusCaptor = ArgumentCaptor.forClass(SummaryStatusEnum.class);
        ArgumentCaptor<String> descCaptor = ArgumentCaptor.forClass(String.class);
        verify(m_Context).setStatus(statusCaptor.capture(), descCaptor.capture());
        assertThat(statusCaptor.getValue(), is(SummaryStatusEnum.OFF));
        assertThat(descCaptor.getValue(), is("Asset Deactivated"));
    }
@ Test public void testOnDeactivate ( ) throws AssetException , IOException , IllegalStateException , InterruptedException { m_SUT . onDeactivate ( ) ; ArgumentCaptor < SummaryStatusEnum > statusCaptor = ArgumentCaptor . forClass ( SummaryStatusEnum . class ) ; ArgumentCaptor < String > descCaptor = ArgumentCaptor . forClass ( String . class ) ; verify ( m_Context ) . setStatus ( statusCaptor . capture ( ) , descCaptor . capture ( ) ) ; assertThat ( statusCaptor . getValue ( ) , is ( SummaryStatusEnum . OFF ) ) ; assertThat ( descCaptor . getValue ( ) , is ( "Asset Deactivated" ) ) ; }
Verify that the asset can be deactivated.
Verify that the asset can be deactivated .