edu.udayton.udri.asset.axis/test/edu/udayton/udri/asset/axis/TestAxisAsset.java
@Test
    public void testOnActivate() throws AssetException, IOException
    {
        //activate the asset
        m_SUT.onActivate();
        
        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.GOOD));
        assertThat(descCaptor.getValue(), is("Asset Activated"));
    }
/**
     * Verify that the asset can be activated.
     */
Verify that the asset can be activated.
Verify that the asset can be activated .
@Test
    public void testOnActivate() throws AssetException, IOException
    {
        m_SUT.onActivate();
        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.GOOD));
        assertThat(descCaptor.getValue(), is("Asset Activated"));
    }
@ Test public void testOnActivate ( ) throws AssetException , IOException { m_SUT . onActivate ( ) ; 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 . GOOD ) ) ; assertThat ( descCaptor . getValue ( ) , is ( "Asset Activated" ) ) ; }
Verify that the asset can be activated.
Verify that the asset can be activated .
//activate the asset