mil.dod.th.ose.gui.remote.encryption/test/mil/dod/th/ose/gui/remotesystemencryption/TestEncryptionTypeManagerImpl.java
@Test
    public void tetGetEncryptionTypeAsyncKnownSystem()
    {
        int controllerId = 123;
        
        when(m_RemoteSystemEncryption.getEncryptType(controllerId)).thenReturn(EncryptType.AES_ECDH_ECDSA);
        
        //mock encryption response for new controller
        Event event = mockEncryptionTypeResponse(controllerId, EncryptType.AES_ECDH_ECDSA);
        m_EncryptionInfoEventHelper.handleEvent(event);
        
        assertThat(m_SUT.getEncryptTypeAsnyc(controllerId), is(EncryptType.AES_ECDH_ECDSA));
    }
/**
     * Verify that encryption type is returned if type is known for the requested system.
     */
Verify that encryption type is returned if type is known for the requested system.
Verify that encryption type is returned if type is known for the requested system .
@Test
    public void tetGetEncryptionTypeAsyncKnownSystem()
    {
        int controllerId = 123;
        when(m_RemoteSystemEncryption.getEncryptType(controllerId)).thenReturn(EncryptType.AES_ECDH_ECDSA);
        Event event = mockEncryptionTypeResponse(controllerId, EncryptType.AES_ECDH_ECDSA);
        m_EncryptionInfoEventHelper.handleEvent(event);
        assertThat(m_SUT.getEncryptTypeAsnyc(controllerId), is(EncryptType.AES_ECDH_ECDSA));
    }
@ Test public void tetGetEncryptionTypeAsyncKnownSystem ( ) { int controllerId = 123 ; when ( m_RemoteSystemEncryption . getEncryptType ( controllerId ) ) . thenReturn ( EncryptType . AES_ECDH_ECDSA ) ; Event event = mockEncryptionTypeResponse ( controllerId , EncryptType . AES_ECDH_ECDSA ) ; m_EncryptionInfoEventHelper . handleEvent ( event ) ; assertThat ( m_SUT . getEncryptTypeAsnyc ( controllerId ) , is ( EncryptType . AES_ECDH_ECDSA ) ) ; }
Verify that encryption type is returned if type is known for the requested system.
Verify that encryption type is returned if type is known for the requested system .
//mock encryption response for new controller