mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/util/TestMetatypeInformationListener.java
@Test
    public void testURISyntaxException() throws MalformedURLException, InterruptedException
    {
        //handle event
        m_BundleHandler.handleEvent(xmlServiceEventBadURL());
        
        //wait for thread to finish
        Thread.sleep(100);
        
        //verify event posted with expected data
        verify(m_EventAdmin, never()).postEvent(Mockito.any(Event.class));
    }
/**
     * Test a bundle event where the bundle is adjudicated to have xml data, but the data cannot be parsed.
     *
     */
Test a bundle event where the bundle is adjudicated to have xml data, but the data cannot be parsed.
Test a bundle event where the bundle is adjudicated to have xml data but the data cannot be parsed .
@Test
    public void testURISyntaxException() throws MalformedURLException, InterruptedException
    {
        m_BundleHandler.handleEvent(xmlServiceEventBadURL());
        Thread.sleep(100);
        verify(m_EventAdmin, never()).postEvent(Mockito.any(Event.class));
    }
@ Test public void testURISyntaxException ( ) throws MalformedURLException , InterruptedException { m_BundleHandler . handleEvent ( xmlServiceEventBadURL ( ) ) ; Thread . sleep ( 100 ) ; verify ( m_EventAdmin , never ( ) ) . postEvent ( Mockito . any ( Event . class ) ) ; }
Test a bundle event where the bundle is adjudicated to have xml data, but the data cannot be parsed.
Test a bundle event where the bundle is adjudicated to have xml data but the data cannot be parsed .
//handle event //wait for thread to finish //verify event posted with expected data