edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelAsset.java
@Test
    public void testUpdated() throws AssetException
    {   
        //activate so that stop is called
        m_SUT.onActivate();
        
        m_SUT.updated(createConfigProps());
        
        verify(m_ConnectionManager).stopProcessing();
        verify(m_MessageReader).stopRetrieving();
        //will be twice, once for the activation once again after update
        verify(m_ConnectionManager, times(2)).startProcessing(DEFAULT_NOVATEL_PHYS_PORT, DEFAULT_NOVATEL_BAUD_RATE);
    }
/**
     * Verify that the asset can be updated.
     */
Verify that the asset can be updated.
Verify that the asset can be updated .
@Test
    public void testUpdated() throws AssetException
    {   
        m_SUT.onActivate();
        m_SUT.updated(createConfigProps());
        verify(m_ConnectionManager).stopProcessing();
        verify(m_MessageReader).stopRetrieving();
        verify(m_ConnectionManager, times(2)).startProcessing(DEFAULT_NOVATEL_PHYS_PORT, DEFAULT_NOVATEL_BAUD_RATE);
    }
@ Test public void testUpdated ( ) throws AssetException { m_SUT . onActivate ( ) ; m_SUT . updated ( createConfigProps ( ) ) ; verify ( m_ConnectionManager ) . stopProcessing ( ) ; verify ( m_MessageReader ) . stopRetrieving ( ) ; verify ( m_ConnectionManager , times ( 2 ) ) . startProcessing ( DEFAULT_NOVATEL_PHYS_PORT , DEFAULT_NOVATEL_BAUD_RATE ) ; }
Verify that the asset can be updated.
Verify that the asset can be updated .
//activate so that stop is called //will be twice, once for the activation once again after update