mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/config/TestXmlConfigurations.java
@Test
    public void testRemoteEventAdminConfigLoading()
    {
        RemoteEventAdmin remoteEventAdmin = IntegrationTestRunner.getService(RemoteEventAdmin.class);
        
        Map<Integer, RemoteEventRegistration> regs = remoteEventAdmin.getRemoteEventRegistrations();
        assertThat(regs.size(), is(1));
        
        /*Entry from config file
         *<eventConfigs canQueueEvent="false" eventFilter="(obj.name=remoteConfigTestAsset)" systemId="99">
         *   <eventTopics>mil/dod/th/core/asset/Asset/DATA_CAPTURED</eventTopics>
         *</eventConfigs>
         */
        RemoteEventRegistration regData = regs.get(1);
        assertThat(regData.getSystemId(), is(99));
        
        assertThat(regData.getEventRegistrationRequestData().getCanQueueEvent(), is(false));
        assertThat(regData.getEventRegistrationRequestData().getFilter(), is("(obj.name=remoteConfigTestAsset)"));
        assertThat(regData.getEventRegistrationRequestData().getTopicCount(), is(1));
        assertThat(regData.getEventRegistrationRequestData().getTopicList().get(0), 
                is("mil/dod/th/core/asset/Asset/DATA_CAPTURED"));
        assertThat(regData.getEventRegistrationRequestData().getObjectFormat(), 
                is(RemoteTypesGen.LexiconFormat.Enum.NATIVE));
        assertThat(regData.getEventRegistrationRequestData().getExpirationTimeHours(), is(5));
    }
/**
     * Verify the config loader bundle registered for remote event denoted in configs.xml.
     */
Verify the config loader bundle registered for remote event denoted in configs.xml.
Verify the config loader bundle registered for remote event denoted in configs . xml .
@Test
    public void testRemoteEventAdminConfigLoading()
    {
        RemoteEventAdmin remoteEventAdmin = IntegrationTestRunner.getService(RemoteEventAdmin.class);
        Map<Integer, RemoteEventRegistration> regs = remoteEventAdmin.getRemoteEventRegistrations();
        assertThat(regs.size(), is(1));
        /*Entry from config file
         *<eventConfigs canQueueEvent="false" eventFilter="(obj.name=remoteConfigTestAsset)" systemId="99">
         *   <eventTopics>mil/dod/th/core/asset/Asset/DATA_CAPTURED</eventTopics>
         *</eventConfigs>
         */
        RemoteEventRegistration regData = regs.get(1);
        assertThat(regData.getSystemId(), is(99));
        assertThat(regData.getEventRegistrationRequestData().getCanQueueEvent(), is(false));
        assertThat(regData.getEventRegistrationRequestData().getFilter(), is("(obj.name=remoteConfigTestAsset)"));
        assertThat(regData.getEventRegistrationRequestData().getTopicCount(), is(1));
        assertThat(regData.getEventRegistrationRequestData().getTopicList().get(0), 
                is("mil/dod/th/core/asset/Asset/DATA_CAPTURED"));
        assertThat(regData.getEventRegistrationRequestData().getObjectFormat(), 
                is(RemoteTypesGen.LexiconFormat.Enum.NATIVE));
        assertThat(regData.getEventRegistrationRequestData().getExpirationTimeHours(), is(5));
    }
@ Test public void testRemoteEventAdminConfigLoading ( ) { RemoteEventAdmin remoteEventAdmin = IntegrationTestRunner . getService ( RemoteEventAdmin . class ) ; Map < Integer , RemoteEventRegistration > regs = remoteEventAdmin . getRemoteEventRegistrations ( ) ; assertThat ( regs . size ( ) , is ( 1 ) ) ; /*Entry from config file
         *<eventConfigs canQueueEvent="false" eventFilter="(obj.name=remoteConfigTestAsset)" systemId="99">
         *   <eventTopics>mil/dod/th/core/asset/Asset/DATA_CAPTURED</eventTopics>
         *</eventConfigs>
         */ RemoteEventRegistration regData = regs . get ( 1 ) ; assertThat ( regData . getSystemId ( ) , is ( 99 ) ) ; assertThat ( regData . getEventRegistrationRequestData ( ) . getCanQueueEvent ( ) , is ( false ) ) ; assertThat ( regData . getEventRegistrationRequestData ( ) . getFilter ( ) , is ( "(obj.name=remoteConfigTestAsset)" ) ) ; assertThat ( regData . getEventRegistrationRequestData ( ) . getTopicCount ( ) , is ( 1 ) ) ; assertThat ( regData . getEventRegistrationRequestData ( ) . getTopicList ( ) . get ( 0 ) , is ( "mil/dod/th/core/asset/Asset/DATA_CAPTURED" ) ) ; assertThat ( regData . getEventRegistrationRequestData ( ) . getObjectFormat ( ) , is ( RemoteTypesGen . LexiconFormat . Enum . NATIVE ) ) ; assertThat ( regData . getEventRegistrationRequestData ( ) . getExpirationTimeHours ( ) , is ( 5 ) ) ; }
Verify the config loader bundle registered for remote event denoted in configs.xml.
Verify the config loader bundle registered for remote event denoted in configs . xml .