mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/objectconverter/TestCommandConverterImpl.java
@Test
    public void testGetJavaResponseType() throws InvalidProtocolBufferException, 
        ObjectConverterException, ClassNotFoundException
    {
        m_SUT = new CommandConverterImpl();
        
        JaxbProtoObjectConverter converter = mock(JaxbProtoObjectConverter.class); 
        when(converter.convertToJaxb(Mockito.any(Message.class))).thenReturn(mock(Response.class));
        m_SUT.setJaxbProtoObjectConverter(converter);
        
        m_SUT.activate();
        
        for (CommandResponseEnum commandResponse : CommandResponseEnum.values())
        {
            assertSingleGetJavaResponseType(commandResponse);
        }
    }
/**
     * Verify that the proper response is returned.
     */
Verify that the proper response is returned.
Verify that the proper response is returned .
@Test
    public void testGetJavaResponseType() throws InvalidProtocolBufferException, 
        ObjectConverterException, ClassNotFoundException
    {
        m_SUT = new CommandConverterImpl();
        JaxbProtoObjectConverter converter = mock(JaxbProtoObjectConverter.class); 
        when(converter.convertToJaxb(Mockito.any(Message.class))).thenReturn(mock(Response.class));
        m_SUT.setJaxbProtoObjectConverter(converter);
        m_SUT.activate();
        for (CommandResponseEnum commandResponse : CommandResponseEnum.values())
        {
            assertSingleGetJavaResponseType(commandResponse);
        }
    }
@ Test public void testGetJavaResponseType ( ) throws InvalidProtocolBufferException , ObjectConverterException , ClassNotFoundException { m_SUT = new CommandConverterImpl ( ) ; JaxbProtoObjectConverter converter = mock ( JaxbProtoObjectConverter . class ) ; when ( converter . convertToJaxb ( Mockito . any ( Message . class ) ) ) . thenReturn ( mock ( Response . class ) ) ; m_SUT . setJaxbProtoObjectConverter ( converter ) ; m_SUT . activate ( ) ; for ( CommandResponseEnum commandResponse : CommandResponseEnum . values ( ) ) { assertSingleGetJavaResponseType ( commandResponse ) ; } }
Verify that the proper response is returned.
Verify that the proper response is returned .