mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestConfigPropModelImpl.java
@Test
    public void testGetType()
    {
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)String.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Long.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Integer.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Short.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Character.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Byte.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Double.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Float.class));
        
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Boolean.class));
    }
/**
     * Test the get type method.
     * Verify that all class types are appropriately returned.
     */
Test the get type method.
Verify that all class types are appropriately returned.
Test the get type method . Verify that all class types are appropriately returned .
@Test
    public void testGetType()
    {
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)String.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Long.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Integer.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Short.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Character.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Byte.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Double.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Float.class));
        when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);
        m_SUT = new ConfigPropModelImpl(m_AttributeModel);
        assertThat(m_SUT.getType(), is((Object)Boolean.class));
    }
@ Test public void testGetType ( ) { when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . STRING ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) String . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . LONG ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Long . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . INTEGER ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Integer . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . SHORT ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Short . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . CHARACTER ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Character . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . BYTE ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Byte . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . DOUBLE ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Double . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . FLOAT ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Float . class ) ) ; when ( m_AttributeModel . getType ( ) ) . thenReturn ( AttributeDefinition . BOOLEAN ) ; m_SUT = new ConfigPropModelImpl ( m_AttributeModel ) ; assertThat ( m_SUT . getType ( ) , is ( ( Object ) Boolean . class ) ) ; }
Test the get type method.
Test the get type method .