edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelAsset.java
@Test
    public void testUpdateSerialPortSettings() throws InterruptedException, AssetException, IllegalArgumentException, 
           IllegalStateException, FactoryException
    {        
        m_SUT.onActivate();
        
        //verify dep interaction
        verify(m_ConnectionManager).startProcessing(DEFAULT_NOVATEL_PHYS_PORT, DEFAULT_NOVATEL_BAUD_RATE);
        
        final Map<String, Object> configProps = createConfigProps();
        configProps.put(NovatelAssetAttributes.CONFIG_PROP_PHYS_PORT, "COM7");
        configProps.put(NovatelAssetAttributes.CONFIG_PROP_BAUD_RATE, 123);
        m_SUT.updated(configProps);
        
        //verify dep interaction
        verify(m_MessageReader, times(1)).stopRetrieving(); // will be once for each property
        verify(m_ConnectionManager).startProcessing("COM7", 123);
    }
/**
     * Test update serial port settings.
     */
Test update serial port settings.
Test update serial port settings .
@Test
    public void testUpdateSerialPortSettings() throws InterruptedException, AssetException, IllegalArgumentException, 
           IllegalStateException, FactoryException
    {        
        m_SUT.onActivate();
        verify(m_ConnectionManager).startProcessing(DEFAULT_NOVATEL_PHYS_PORT, DEFAULT_NOVATEL_BAUD_RATE);
        final Map<String, Object> configProps = createConfigProps();
        configProps.put(NovatelAssetAttributes.CONFIG_PROP_PHYS_PORT, "COM7");
        configProps.put(NovatelAssetAttributes.CONFIG_PROP_BAUD_RATE, 123);
        m_SUT.updated(configProps);
        verify(m_MessageReader, times(1)).stopRetrieving(); 
        verify(m_ConnectionManager).startProcessing("COM7", 123);
    }
@ Test public void testUpdateSerialPortSettings ( ) throws InterruptedException , AssetException , IllegalArgumentException , IllegalStateException , FactoryException { m_SUT . onActivate ( ) ; verify ( m_ConnectionManager ) . startProcessing ( DEFAULT_NOVATEL_PHYS_PORT , DEFAULT_NOVATEL_BAUD_RATE ) ; final Map < String , Object > configProps = createConfigProps ( ) ; configProps . put ( NovatelAssetAttributes . CONFIG_PROP_PHYS_PORT , "COM7" ) ; configProps . put ( NovatelAssetAttributes . CONFIG_PROP_BAUD_RATE , 123 ) ; m_SUT . updated ( configProps ) ; verify ( m_MessageReader , times ( 1 ) ) . stopRetrieving ( ) ; verify ( m_ConnectionManager ) . startProcessing ( "COM7" , 123 ) ; }
Test update serial port settings.
Test update serial port settings .
//verify dep interaction //verify dep interaction // will be once for each property