mil.dod.th.ose.shared/test/mil/dod/th/ose/shared/TestProgramWrappedExceptionExtractor.java
@Test
    public void testGetRootMessage()
    {
        PrivilegedActionException e = new PrivilegedActionException(new CommandExecutionException("Unsupported!"));
        
        final String message = WrappedExceptionExtractor.getRootCauseMessage(e);
        
        assertThat(message, is("Unsupported!"));
    }
/**
     * Test extracting the original message of an exception.
     * Verify expected message is returned.
     */
Test extracting the original message of an exception.
Verify expected message is returned.
Test extracting the original message of an exception . Verify expected message is returned .
@Test
    public void testGetRootMessage()
    {
        PrivilegedActionException e = new PrivilegedActionException(new CommandExecutionException("Unsupported!"));
        final String message = WrappedExceptionExtractor.getRootCauseMessage(e);
        assertThat(message, is("Unsupported!"));
    }
@ Test public void testGetRootMessage ( ) { PrivilegedActionException e = new PrivilegedActionException ( new CommandExecutionException ( "Unsupported!" ) ) ; final String message = WrappedExceptionExtractor . getRootCauseMessage ( e ) ; assertThat ( message , is ( "Unsupported!" ) ) ; }
Test extracting the original message of an exception.
Test extracting the original message of an exception .