when( Boolean.valueOf( problem.isError() ) ).thenReturn( Boolean.TRUE );
return problem;
}
private Problem mockWarning( int line, int character, String message ) {
Problem problem = mock( Problem.class );
when( Integer.valueOf( problem.getLine() ) ).thenReturn( Integer.valueOf( line ) );
when( Integer.valueOf( problem.getCharacter() ) ).thenReturn( Integer.valueOf( character ) );
when( problem.getMessage() ).thenReturn( message );
return problem;
}