mil.dod.th.ose.controller/test/mil/dod/th/ose/controller/impl/TestThoseVersionProviderImpl.java
@Test
    public final void testGetVersionUnknown() throws IOException
    {
        m_TmpProps.put(ThoseVersionProvider.BUILD_TYPE_PROP_NAME, ThoseVersionProvider.UNKNOWN_BUILD_TYPE);
        m_TmpProps.put(ThoseVersionProvider.BUILD_NUM_PROP_NAME, 0);
        m_TmpProps.put(ThoseVersionProvider.BUILD_USER_PROP_NAME, "jdoe");
        
        //activate, sets build type and branch name, the latter of which only matters if an automated build
        m_SUT.activate(m_Context);
        
        m_InfoProps.put(ThoseVersionProvider.MAJOR_NUM_PROP_NAME, 3);
        m_InfoProps.put(ThoseVersionProvider.MINOR_NUM_PROP_NAME, 4);
        m_InfoProps.put(ThoseVersionProvider.PATCH_NUM_PROP_NAME, 7);
        
        assertThat(m_SUT.getVersion(), is("3.4.7-UNKNOWN.jdoe.0"));
    }
/**
     * Test version for an unknown build type.
     */
Test version for an unknown build type.
Test version for an unknown build type .
@Test
    public final void testGetVersionUnknown() throws IOException
    {
        m_TmpProps.put(ThoseVersionProvider.BUILD_TYPE_PROP_NAME, ThoseVersionProvider.UNKNOWN_BUILD_TYPE);
        m_TmpProps.put(ThoseVersionProvider.BUILD_NUM_PROP_NAME, 0);
        m_TmpProps.put(ThoseVersionProvider.BUILD_USER_PROP_NAME, "jdoe");
        m_SUT.activate(m_Context);
        m_InfoProps.put(ThoseVersionProvider.MAJOR_NUM_PROP_NAME, 3);
        m_InfoProps.put(ThoseVersionProvider.MINOR_NUM_PROP_NAME, 4);
        m_InfoProps.put(ThoseVersionProvider.PATCH_NUM_PROP_NAME, 7);
        assertThat(m_SUT.getVersion(), is("3.4.7-UNKNOWN.jdoe.0"));
    }
@ Test public final void testGetVersionUnknown ( ) throws IOException { m_TmpProps . put ( ThoseVersionProvider . BUILD_TYPE_PROP_NAME , ThoseVersionProvider . UNKNOWN_BUILD_TYPE ) ; m_TmpProps . put ( ThoseVersionProvider . BUILD_NUM_PROP_NAME , 0 ) ; m_TmpProps . put ( ThoseVersionProvider . BUILD_USER_PROP_NAME , "jdoe" ) ; m_SUT . activate ( m_Context ) ; m_InfoProps . put ( ThoseVersionProvider . MAJOR_NUM_PROP_NAME , 3 ) ; m_InfoProps . put ( ThoseVersionProvider . MINOR_NUM_PROP_NAME , 4 ) ; m_InfoProps . put ( ThoseVersionProvider . PATCH_NUM_PROP_NAME , 7 ) ; assertThat ( m_SUT . getVersion ( ) , is ( "3.4.7-UNKNOWN.jdoe.0" ) ) ; }
Test version for an unknown build type.
Test version for an unknown build type .
//activate, sets build type and branch name, the latter of which only matters if an automated build