edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/impl/timechanger/TestTimeChangeImpl.java
@Test
    public void testDisconnectIllegalStateException() throws IOException, InterruptedException
    {
        try
        {
            m_SUT.disconnectTimeService();
            fail("Expected illegal state exception");
        }
        catch (IllegalStateException exception)
        {
            //exception is expected.
        }
    }
/**
     * Verify that an exception is thrown when disconnect is called before a connect.
     */
Verify that an exception is thrown when disconnect is called before a connect.
Verify that an exception is thrown when disconnect is called before a connect .
@Test
    public void testDisconnectIllegalStateException() throws IOException, InterruptedException
    {
        try
        {
            m_SUT.disconnectTimeService();
            fail("Expected illegal state exception");
        }
        catch (IllegalStateException exception)
        {
        }
    }
@ Test public void testDisconnectIllegalStateException ( ) throws IOException , InterruptedException { try { m_SUT . disconnectTimeService ( ) ; fail ( "Expected illegal state exception" ) ; } catch ( IllegalStateException exception ) { } }
Verify that an exception is thrown when disconnect is called before a connect.
Verify that an exception is thrown when disconnect is called before a connect .
//exception is expected.