mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestMetaTypeModel.java
@Test
    public void testGetAttributes()
    {
        AttributeModel attribute = new AttributeModel(AttributeDefinitionType.newBuilder()
                .setId("key")
                .setName("name")
                .setCardinality(1)
                .setAttributeType(AttributeDefinition.STRING)
                .setRequired(true)
                .build());
        
        m_SUT.getAttributes().add(attribute);
        
        assertThat(m_SUT.getAttributes().size(), is(1));
        assertThat(m_SUT.getAttributes().get(0), is(attribute));
    }
/**
     * Test the get attributes method.
     * Verify that the get attributes method returns a list containing the correct attribute.
     */
Test the get attributes method.
Verify that the get attributes method returns a list containing the correct attribute.
Test the get attributes method . Verify that the get attributes method returns a list containing the correct attribute .
@Test
    public void testGetAttributes()
    {
        AttributeModel attribute = new AttributeModel(AttributeDefinitionType.newBuilder()
                .setId("key")
                .setName("name")
                .setCardinality(1)
                .setAttributeType(AttributeDefinition.STRING)
                .setRequired(true)
                .build());
        m_SUT.getAttributes().add(attribute);
        assertThat(m_SUT.getAttributes().size(), is(1));
        assertThat(m_SUT.getAttributes().get(0), is(attribute));
    }
@ Test public void testGetAttributes ( ) { AttributeModel attribute = new AttributeModel ( AttributeDefinitionType . newBuilder ( ) . setId ( "key" ) . setName ( "name" ) . setCardinality ( 1 ) . setAttributeType ( AttributeDefinition . STRING ) . setRequired ( true ) . build ( ) ) ; m_SUT . getAttributes ( ) . add ( attribute ) ; assertThat ( m_SUT . getAttributes ( ) . size ( ) , is ( 1 ) ) ; assertThat ( m_SUT . getAttributes ( ) . get ( 0 ) , is ( attribute ) ) ; }
Test the get attributes method.
Test the get attributes method .