edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelAsset.java
@Test
    public void testOnActivateTimeServiceOff() throws AssetException, IOException, IllegalArgumentException, 
        IllegalStateException, FactoryException
    {
        final Map<String, Object> configProps = createConfigProps();
        configProps.put(NovatelAssetAttributes.CONFIG_PROP_SYNC_SYSTEM_TIME_WITH_GPS, false);
        m_SUT.updated(configProps);

        //activate the asset
        m_SUT.onActivate();
        
        //verify no time service interaction
        verify(m_TimeChangeService, never()).connectTimeService(eq(m_SUT), eq(4444));
    }
/**
     * Verify that the asset can be activated even if tiem service is off.
     * Verify off component status.
     */
Verify that the asset can be activated even if tiem service is off.
Verify off component status.
Verify that the asset can be activated even if tiem service is off . Verify off component status .
@Test
    public void testOnActivateTimeServiceOff() throws AssetException, IOException, IllegalArgumentException, 
        IllegalStateException, FactoryException
    {
        final Map<String, Object> configProps = createConfigProps();
        configProps.put(NovatelAssetAttributes.CONFIG_PROP_SYNC_SYSTEM_TIME_WITH_GPS, false);
        m_SUT.updated(configProps);
        m_SUT.onActivate();
        verify(m_TimeChangeService, never()).connectTimeService(eq(m_SUT), eq(4444));
    }
@ Test public void testOnActivateTimeServiceOff ( ) throws AssetException , IOException , IllegalArgumentException , IllegalStateException , FactoryException { final Map < String , Object > configProps = createConfigProps ( ) ; configProps . put ( NovatelAssetAttributes . CONFIG_PROP_SYNC_SYSTEM_TIME_WITH_GPS , false ) ; m_SUT . updated ( configProps ) ; m_SUT . onActivate ( ) ; verify ( m_TimeChangeService , never ( ) ) . connectTimeService ( eq ( m_SUT ) , eq ( 4444 ) ) ; }
Verify that the asset can be activated even if tiem service is off.
Verify that the asset can be activated even if tiem service is off .
//activate the asset //verify no time service interaction