mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestConfigurationWrapperImpl.java
@Test
    public void testGetConfigurationDefaultsByFactoryPid()
    {
        UnmodifiableConfigMetatypeModel model = m_SUT.getConfigurationDefaultsByFactoryPidAsync(
                25, "some factory config");
        
        assertThat(model.getProperties().size(), is(1));
        
        UnmodifiablePropertyModel propModel = model.getProperties().get(0);
        
        assertThat(model, notNullValue());
        
        assertThat(propModel.getKey(), is("name"));
        assertThat(propModel.getName(), is("name"));
        assertThat(propModel.getType(), is((Object)String.class));
        assertThat(propModel.getValue(), is((Object)"Bob"));
        
        model = m_SUT.getConfigurationDefaultsByFactoryPidAsync(25, "not factory pid");
        assertThat(model, nullValue());
    }
/**
     * Verify that meta type defaults can be retrieved using 
     */
Verify that meta type defaults can be retrieved using
Verify that meta type defaults can be retrieved using
@Test
    public void testGetConfigurationDefaultsByFactoryPid()
    {
        UnmodifiableConfigMetatypeModel model = m_SUT.getConfigurationDefaultsByFactoryPidAsync(
                25, "some factory config");
        assertThat(model.getProperties().size(), is(1));
        UnmodifiablePropertyModel propModel = model.getProperties().get(0);
        assertThat(model, notNullValue());
        assertThat(propModel.getKey(), is("name"));
        assertThat(propModel.getName(), is("name"));
        assertThat(propModel.getType(), is((Object)String.class));
        assertThat(propModel.getValue(), is((Object)"Bob"));
        model = m_SUT.getConfigurationDefaultsByFactoryPidAsync(25, "not factory pid");
        assertThat(model, nullValue());
    }
@ Test public void testGetConfigurationDefaultsByFactoryPid ( ) { UnmodifiableConfigMetatypeModel model = m_SUT . getConfigurationDefaultsByFactoryPidAsync ( 25 , "some factory config" ) ; assertThat ( model . getProperties ( ) . size ( ) , is ( 1 ) ) ; UnmodifiablePropertyModel propModel = model . getProperties ( ) . get ( 0 ) ; assertThat ( model , notNullValue ( ) ) ; assertThat ( propModel . getKey ( ) , is ( "name" ) ) ; assertThat ( propModel . getName ( ) , is ( "name" ) ) ; assertThat ( propModel . getType ( ) , is ( ( Object ) String . class ) ) ; assertThat ( propModel . getValue ( ) , is ( ( Object ) "Bob" ) ) ; model = m_SUT . getConfigurationDefaultsByFactoryPidAsync ( 25 , "not factory pid" ) ; assertThat ( model , nullValue ( ) ) ; }
Verify that meta type defaults can be retrieved using
Verify that meta type defaults can be retrieved using