mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/osgi/TestMetatypeMessageService.java
private void verifyAttributeDefitions(final List<AttributeDefinitionType> attrDefList, String[] defaults, 
            String[] optLabels, String[] optValues)
    {
        assertThat(attrDefList.size(), is(2));
        assertThat(attrDefList.get(0).getCardinality(), is(5));
        assertThat(attrDefList.get(0).getId(), is("key1"));
        assertThat(attrDefList.get(0).getName(), is("rawr!"));
        assertThat(attrDefList.get(0).getAttributeType(), is(1));
        assertThat(attrDefList.get(0).getDefaultValueList(), is(Arrays.asList(new String[0])));
        assertThat(attrDefList.get(0).getOptionLabelList(), is(Arrays.asList(optLabels)));
        assertThat(attrDefList.get(0).getOptionValueList(), is(Arrays.asList(optValues)));
        assertThat(attrDefList.get(0).hasRequired(), is(true));
        assertThat(attrDefList.get(1).getCardinality(), is(0));
        assertThat(attrDefList.get(1).getId(), is("key2"));
        assertThat(attrDefList.get(1).getName(), is("bob"));
        assertThat(attrDefList.get(1).getDescription(), is("some description"));
        assertThat(attrDefList.get(1).getAttributeType(), is(2));
        assertThat(attrDefList.get(1).getDefaultValueList(), is(Arrays.asList(defaults)));
        assertThat(attrDefList.get(1).getOptionLabelList(), is(Arrays.asList(optLabels)));
        assertThat(attrDefList.get(1).getOptionValueList(), is(Arrays.asList(optValues)));
        assertThat(attrDefList.get(1).hasRequired(), is(true));
    }
/**
     * Used to verify a list of attribute definition types.
     */
Used to verify a list of attribute definition types.
Used to verify a list of attribute definition types .
private void verifyAttributeDefitions(final List<AttributeDefinitionType> attrDefList, String[] defaults, 
            String[] optLabels, String[] optValues)
    {
        assertThat(attrDefList.size(), is(2));
        assertThat(attrDefList.get(0).getCardinality(), is(5));
        assertThat(attrDefList.get(0).getId(), is("key1"));
        assertThat(attrDefList.get(0).getName(), is("rawr!"));
        assertThat(attrDefList.get(0).getAttributeType(), is(1));
        assertThat(attrDefList.get(0).getDefaultValueList(), is(Arrays.asList(new String[0])));
        assertThat(attrDefList.get(0).getOptionLabelList(), is(Arrays.asList(optLabels)));
        assertThat(attrDefList.get(0).getOptionValueList(), is(Arrays.asList(optValues)));
        assertThat(attrDefList.get(0).hasRequired(), is(true));
        assertThat(attrDefList.get(1).getCardinality(), is(0));
        assertThat(attrDefList.get(1).getId(), is("key2"));
        assertThat(attrDefList.get(1).getName(), is("bob"));
        assertThat(attrDefList.get(1).getDescription(), is("some description"));
        assertThat(attrDefList.get(1).getAttributeType(), is(2));
        assertThat(attrDefList.get(1).getDefaultValueList(), is(Arrays.asList(defaults)));
        assertThat(attrDefList.get(1).getOptionLabelList(), is(Arrays.asList(optLabels)));
        assertThat(attrDefList.get(1).getOptionValueList(), is(Arrays.asList(optValues)));
        assertThat(attrDefList.get(1).hasRequired(), is(true));
    }
private void verifyAttributeDefitions ( final List < AttributeDefinitionType > attrDefList , String [ ] defaults , String [ ] optLabels , String [ ] optValues ) { assertThat ( attrDefList . size ( ) , is ( 2 ) ) ; assertThat ( attrDefList . get ( 0 ) . getCardinality ( ) , is ( 5 ) ) ; assertThat ( attrDefList . get ( 0 ) . getId ( ) , is ( "key1" ) ) ; assertThat ( attrDefList . get ( 0 ) . getName ( ) , is ( "rawr!" ) ) ; assertThat ( attrDefList . get ( 0 ) . getAttributeType ( ) , is ( 1 ) ) ; assertThat ( attrDefList . get ( 0 ) . getDefaultValueList ( ) , is ( Arrays . asList ( new String [ 0 ] ) ) ) ; assertThat ( attrDefList . get ( 0 ) . getOptionLabelList ( ) , is ( Arrays . asList ( optLabels ) ) ) ; assertThat ( attrDefList . get ( 0 ) . getOptionValueList ( ) , is ( Arrays . asList ( optValues ) ) ) ; assertThat ( attrDefList . get ( 0 ) . hasRequired ( ) , is ( true ) ) ; assertThat ( attrDefList . get ( 1 ) . getCardinality ( ) , is ( 0 ) ) ; assertThat ( attrDefList . get ( 1 ) . getId ( ) , is ( "key2" ) ) ; assertThat ( attrDefList . get ( 1 ) . getName ( ) , is ( "bob" ) ) ; assertThat ( attrDefList . get ( 1 ) . getDescription ( ) , is ( "some description" ) ) ; assertThat ( attrDefList . get ( 1 ) . getAttributeType ( ) , is ( 2 ) ) ; assertThat ( attrDefList . get ( 1 ) . getDefaultValueList ( ) , is ( Arrays . asList ( defaults ) ) ) ; assertThat ( attrDefList . get ( 1 ) . getOptionLabelList ( ) , is ( Arrays . asList ( optLabels ) ) ) ; assertThat ( attrDefList . get ( 1 ) . getOptionValueList ( ) , is ( Arrays . asList ( optValues ) ) ) ; assertThat ( attrDefList . get ( 1 ) . hasRequired ( ) , is ( true ) ) ; }
Used to verify a list of attribute definition types.
Used to verify a list of attribute definition types .