edu.udayton.udri.asset.canon.ipcamera/test/edu/udayton/udri/asset/canon/ipcamera/TestIpCameraAsset.java
@Test(expected = CommandExecutionException.class)
    public void testPerformBitIoException1() throws IOException, AssetException
    {
        m_SUT.onActivate();
        when(m_UrlUtil.getConnection(any(URL.class))).thenThrow(new IOException());
        m_SUT.onPerformBit();
    }
//Catches the IO exception when BIT tries to create a URL connection
Catches the IO exception when BIT tries to create a URL connection
Catches the IO exception when BIT tries to create a URL connection
@Test(expected = CommandExecutionException.class)
    public void testPerformBitIoException1() throws IOException, AssetException
    {
        m_SUT.onActivate();
        when(m_UrlUtil.getConnection(any(URL.class))).thenThrow(new IOException());
        m_SUT.onPerformBit();
    }
@ Test ( expected = CommandExecutionException . class ) public void testPerformBitIoException1 ( ) throws IOException , AssetException { m_SUT . onActivate ( ) ; when ( m_UrlUtil . getConnection ( any ( URL . class ) ) ) . thenThrow ( new IOException ( ) ) ; m_SUT . onPerformBit ( ) ; }
Catches the IO exception when BIT tries to create a URL connection
Catches the IO exception when BIT tries to create a URL connection