mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/util/TestRemotePropertyConverter.java
@Test
    public void testComplexTypesMapToMap_UnsupportedTypes() throws Exception
    {
        List<ComplexTypesMapEntry> entries = new ArrayList<ComplexTypesMapEntry>();

        entries.add(ComplexTypesMapEntry.newBuilder()
                .setKey("prop7") // don't set the value to simulate an unknown type
                .build());
        
        try
        {
            m_SUT.complexTypesMapToMap(entries);
            fail("Expecting exception");
        }
        catch (UnsupportedOperationException e) 
        {
            
        }
    }
/**
     * Verify if a type cannot be converted an exception is thrown.
     */
Verify if a type cannot be converted an exception is thrown.
Verify if a type cannot be converted an exception is thrown .
@Test
    public void testComplexTypesMapToMap_UnsupportedTypes() throws Exception
    {
        List<ComplexTypesMapEntry> entries = new ArrayList<ComplexTypesMapEntry>();
        entries.add(ComplexTypesMapEntry.newBuilder()
                .setKey("prop7") 
                .build());
        try
        {
            m_SUT.complexTypesMapToMap(entries);
            fail("Expecting exception");
        }
        catch (UnsupportedOperationException e) 
        {
        }
    }
@ Test public void testComplexTypesMapToMap_UnsupportedTypes ( ) throws Exception { List < ComplexTypesMapEntry > entries = new ArrayList < ComplexTypesMapEntry > ( ) ; entries . add ( ComplexTypesMapEntry . newBuilder ( ) . setKey ( "prop7" ) . build ( ) ) ; try { m_SUT . complexTypesMapToMap ( entries ) ; fail ( "Expecting exception" ) ; } catch ( UnsupportedOperationException e ) { } }
Verify if a type cannot be converted an exception is thrown.
Verify if a type cannot be converted an exception is thrown .
// don't set the value to simulate an unknown type