mil.dod.th.ose.controller/test/mil/dod/th/ose/controller/impl/TestThoseVersionProviderImpl.java
@Test
    public final void testGetVersionAutoReleaseNoBranch() throws IOException
    {
        m_TmpProps.put(ThoseVersionProvider.BUILD_TYPE_PROP_NAME, ThoseVersionProvider.AUTOMATED_BUILD_TYPE);
        
        m_InfoProps.put(ThoseVersionProvider.MAJOR_NUM_PROP_NAME, 3);
        m_InfoProps.put(ThoseVersionProvider.MINOR_NUM_PROP_NAME, 1);
        m_InfoProps.put(ThoseVersionProvider.PATCH_NUM_PROP_NAME, 2);
        
        try
        {
            m_SUT.activate(m_Context);
            fail("Expected failure because automated build type must include branch information.");
        }
        catch (IllegalStateException e)
        {
            //expected
        }
    }
/**
     * Test version for a automated release build no branch info.
     */
Test version for a automated release build no branch info.
Test version for a automated release build no branch info .
@Test
    public final void testGetVersionAutoReleaseNoBranch() throws IOException
    {
        m_TmpProps.put(ThoseVersionProvider.BUILD_TYPE_PROP_NAME, ThoseVersionProvider.AUTOMATED_BUILD_TYPE);
        m_InfoProps.put(ThoseVersionProvider.MAJOR_NUM_PROP_NAME, 3);
        m_InfoProps.put(ThoseVersionProvider.MINOR_NUM_PROP_NAME, 1);
        m_InfoProps.put(ThoseVersionProvider.PATCH_NUM_PROP_NAME, 2);
        try
        {
            m_SUT.activate(m_Context);
            fail("Expected failure because automated build type must include branch information.");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public final void testGetVersionAutoReleaseNoBranch ( ) throws IOException { m_TmpProps . put ( ThoseVersionProvider . BUILD_TYPE_PROP_NAME , ThoseVersionProvider . AUTOMATED_BUILD_TYPE ) ; m_InfoProps . put ( ThoseVersionProvider . MAJOR_NUM_PROP_NAME , 3 ) ; m_InfoProps . put ( ThoseVersionProvider . MINOR_NUM_PROP_NAME , 1 ) ; m_InfoProps . put ( ThoseVersionProvider . PATCH_NUM_PROP_NAME , 2 ) ; try { m_SUT . activate ( m_Context ) ; fail ( "Expected failure because automated build type must include branch information." ) ; } catch ( IllegalStateException e ) { } }
Test version for a automated release build no branch info.
Test version for a automated release build no branch info .
//expected