mil.dod.th.ose.controller/test/mil/dod/th/ose/controller/impl/TestThoseVersionProviderImpl.java
@Test
    public final void testGetVersionInvalidType() throws IOException
    {
        m_TmpProps.put(ThoseVersionProvider.BUILD_TYPE_PROP_NAME, "invalid-type");
        m_TmpProps.put(ThoseVersionProvider.BUILD_BRANCH_PROP_NAME, "origin/feature/TH-2343-this-is-a-branch");
        
        //activate, sets build type and branch name, the latter of which only matters if an automated build
        m_SUT.activate(m_Context);
        
        try
        {
            m_SUT.getVersion();
            fail("Expecting exception due to invalid type");
        }
        catch (IllegalStateException e)
        {
            
        }
    }
/**
     * Test version throws exception if invalid type.
     */
Test version throws exception if invalid type.
Test version throws exception if invalid type .
@Test
    public final void testGetVersionInvalidType() throws IOException
    {
        m_TmpProps.put(ThoseVersionProvider.BUILD_TYPE_PROP_NAME, "invalid-type");
        m_TmpProps.put(ThoseVersionProvider.BUILD_BRANCH_PROP_NAME, "origin/feature/TH-2343-this-is-a-branch");
        m_SUT.activate(m_Context);
        try
        {
            m_SUT.getVersion();
            fail("Expecting exception due to invalid type");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public final void testGetVersionInvalidType ( ) throws IOException { m_TmpProps . put ( ThoseVersionProvider . BUILD_TYPE_PROP_NAME , "invalid-type" ) ; m_TmpProps . put ( ThoseVersionProvider . BUILD_BRANCH_PROP_NAME , "origin/feature/TH-2343-this-is-a-branch" ) ; m_SUT . activate ( m_Context ) ; try { m_SUT . getVersion ( ) ; fail ( "Expecting exception due to invalid type" ) ; } catch ( IllegalStateException e ) { } }
Test version throws exception if invalid type.
Test version throws exception if invalid type .
//activate, sets build type and branch name, the latter of which only matters if an automated build