mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestConfigPropModelImpl.java
@Test
    public void testGetOptions()
    {
        List<String> labels = new ArrayList<>();
        labels.add("option 1");
        labels.add("option 2");
        labels.add("option 3");
        when(m_AttributeModel.getOptionLabels()).thenReturn(labels);
        
        List<String> values = new ArrayList<>();
        values.add("1");
        values.add("2");
        values.add("3");
        when(m_AttributeModel.getOptionValues()).thenReturn(values);
        
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);

        assertThat(m_SUT.getOptions().size(), is(3));
        assertThat(m_SUT.getOptions().get(0).getLabel(), is("option 1"));
        assertThat(m_SUT.getOptions().get(0).getValue(), is("1"));
        assertThat(m_SUT.getOptions().get(1).getLabel(), is("option 2"));
        assertThat(m_SUT.getOptions().get(1).getValue(), is("2"));
        assertThat(m_SUT.getOptions().get(2).getLabel(), is("option 3"));
        assertThat(m_SUT.getOptions().get(2).getValue(), is("3"));
    }
/**
     * Test the get option labels method.
     * Verify that the appropriate option labels are returned.
     */
Test the get option labels method.
Verify that the appropriate option labels are returned.
Test the get option labels method . Verify that the appropriate option labels are returned .
@Test
    public void testGetOptions()
    {
        List<String> labels = new ArrayList<>();
        labels.add("option 1");
        labels.add("option 2");
        labels.add("option 3");
        when(m_AttributeModel.getOptionLabels()).thenReturn(labels);
        List<String> values = new ArrayList<>();
        values.add("1");
        values.add("2");
        values.add("3");
        when(m_AttributeModel.getOptionValues()).thenReturn(values);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getOptions().size(), is(3));
        assertThat(m_SUT.getOptions().get(0).getLabel(), is("option 1"));
        assertThat(m_SUT.getOptions().get(0).getValue(), is("1"));
        assertThat(m_SUT.getOptions().get(1).getLabel(), is("option 2"));
        assertThat(m_SUT.getOptions().get(1).getValue(), is("2"));
        assertThat(m_SUT.getOptions().get(2).getLabel(), is("option 3"));
        assertThat(m_SUT.getOptions().get(2).getValue(), is("3"));
    }
@ Test public void testGetOptions ( ) { List < String > labels = new ArrayList < > ( ) ; labels . add ( "option 1" ) ; labels . add ( "option 2" ) ; labels . add ( "option 3" ) ; when ( m_AttributeModel . getOptionLabels ( ) ) . thenReturn ( labels ) ; List < String > values = new ArrayList < > ( ) ; values . add ( "1" ) ; values . add ( "2" ) ; values . add ( "3" ) ; when ( m_AttributeModel . getOptionValues ( ) ) . thenReturn ( values ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getOptions ( ) . size ( ) , is ( 3 ) ) ; assertThat ( m_SUT . getOptions ( ) . get ( 0 ) . getLabel ( ) , is ( "option 1" ) ) ; assertThat ( m_SUT . getOptions ( ) . get ( 0 ) . getValue ( ) , is ( "1" ) ) ; assertThat ( m_SUT . getOptions ( ) . get ( 1 ) . getLabel ( ) , is ( "option 2" ) ) ; assertThat ( m_SUT . getOptions ( ) . get ( 1 ) . getValue ( ) , is ( "2" ) ) ; assertThat ( m_SUT . getOptions ( ) . get ( 2 ) . getLabel ( ) , is ( "option 3" ) ) ; assertThat ( m_SUT . getOptions ( ) . get ( 2 ) . getValue ( ) , is ( "3" ) ) ; }
Test the get option labels method.
Test the get option labels method .