Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–84 unchanged (84 lines)
85 } else {
86 error = null;
87 }
88 } catch (MockitoAssertionError e) {
89 error = handleVerifyException(e);
90 }
91 catch (org.mockito.exceptions.verification.junit.ArgumentsAreDifferent e) {
92 error = handleVerifyException(e);
93 }
94 }
95
96 if (error != null) {
97 throw error;
…lines 98–135 unchanged (38 lines)

After

…lines 1–84 unchanged (84 lines)
85 } else {
86 error = null;
87 }
88 } catch (MockitoAssertionError e) {
89 error = handleVerifyException(e);
90 }
91 catch (AssertionError e) {
92 error = handleVerifyException(e);
93 }
94 }
95
96 if (error != null) {
97 throw error;
…lines 98–135 unchanged (38 lines)

Before

program
block_comment "/*\n * Copyright (c) 2007 Mockito contributors\n * This progra"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "verification"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "exceptions"
. "."
identifier "base"
. "."
identifier "MockitoAssertionError"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "util"
. "."
identifier "Timer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "verification"
. "."
identifier "api"
. "."
identifier "VerificationData"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "verification"
. "."
identifier "VerificationMode"
; ";"
block_comment "/**\n * Verifies that another verification mode (the delegate"...
class_declaration
modifiers
public "public"
class "class"
identifier "VerificationOverTimeImpl"
super_interfaces
implements "implements"
type_list
type_identifier "VerificationMode"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
integral_type
long "long"
variable_declarator
identifier "pollingPeriodMillis"
; ";"
field_declaration
modifiers
private "private"
final "final"
integral_type
long "long"
variable_declarator
identifier "durationMillis"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "VerificationMode"
variable_declarator
identifier "delegate"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "returnOnSuccess"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Timer"
variable_declarator
identifier "timer"
; ";"
block_comment "/**\n * Create this verification mode, to be used to veri"...
constructor_declaration (+48 nodes collapsed)
block_comment "/**\n * Create this verification mode, to be used to veri"...
constructor_declaration (+76 nodes collapsed)
block_comment "/**\n * Verify the given ongoing verification data, and c"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "verify"
formal_parameters
( "("
formal_parameter
type_identifier "VerificationData"
identifier "data"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "AssertionError"
variable_declarator
identifier "error"
= "="
null_literal "null"
; ";"
expression_statement
method_invocation
identifier "timer"
. "."
identifier "start"
argument_list
( "("
) ")"
; ";"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "timer"
. "."
identifier "isCounting"
argument_list
( "("
) ")"
) ")"
block
{ "{"
try_statement
try "try"
block (+35 nodes collapsed)
catch_clause (+22 nodes collapsed)
catch_clause
catch "catch"
( "("
catch_formal_parameter
catch_type
scoped_type_identifier
scoped_type_identifier
scoped_type_identifier
scoped_type_identifier
scoped_type_identifier
type_identifier "org"
. "."
type_identifier "mockito"
. "."
type_identifier "exceptions"
. "."
type_identifier "verification"
. "."
type_identifier "junit"
. "."
type_identifier "ArgumentsAreDifferent"
identifier "e"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "error"
= "="
method_invocation
identifier "handleVerifyException"
argument_list
( "("
identifier "e"
) ")"
; ";"
} "}"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "error"
!= "!="
null_literal "null"
) ")"
block
{ "{"
throw_statement
throw "throw"
identifier "error"
; ";"
} "}"
} "}"
method_declaration (+48 nodes collapsed)
method_declaration (+32 nodes collapsed)
method_declaration (+42 nodes collapsed)
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getPollingPeriod"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "pollingPeriodMillis"
; ";"
} "}"
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getDuration"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "durationMillis"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "VerificationMode"
identifier "getDelegate"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "delegate"
; ";"
} "}"
} "}"

After

program
block_comment "/*\n * Copyright (c) 2007 Mockito contributors\n * This progra"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "verification"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "exceptions"
. "."
identifier "base"
. "."
identifier "MockitoAssertionError"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "util"
. "."
identifier "Timer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "verification"
. "."
identifier "api"
. "."
identifier "VerificationData"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "verification"
. "."
identifier "VerificationMode"
; ";"
block_comment "/**\n * Verifies that another verification mode (the delegate"...
class_declaration
modifiers
public "public"
class "class"
identifier "VerificationOverTimeImpl"
super_interfaces
implements "implements"
type_list
type_identifier "VerificationMode"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
integral_type
long "long"
variable_declarator
identifier "pollingPeriodMillis"
; ";"
field_declaration
modifiers
private "private"
final "final"
integral_type
long "long"
variable_declarator
identifier "durationMillis"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "VerificationMode"
variable_declarator
identifier "delegate"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "returnOnSuccess"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Timer"
variable_declarator
identifier "timer"
; ";"
block_comment "/**\n * Create this verification mode, to be used to veri"...
constructor_declaration (+48 nodes collapsed)
block_comment "/**\n * Create this verification mode, to be used to veri"...
constructor_declaration (+76 nodes collapsed)
block_comment "/**\n * Verify the given ongoing verification data, and c"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "verify"
formal_parameters
( "("
formal_parameter
type_identifier "VerificationData"
identifier "data"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "AssertionError"
variable_declarator
identifier "error"
= "="
null_literal "null"
; ";"
expression_statement
method_invocation
identifier "timer"
. "."
identifier "start"
argument_list
( "("
) ")"
; ";"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "timer"
. "."
identifier "isCounting"
argument_list
( "("
) ")"
) ")"
block
{ "{"
try_statement
try "try"
block (+35 nodes collapsed)
catch_clause (+22 nodes collapsed)
catch_clause
catch "catch"
( "("
catch_formal_parameter
catch_type
type_identifier "AssertionError"
identifier "e"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "error"
= "="
method_invocation
identifier "handleVerifyException"
argument_list
( "("
identifier "e"
) ")"
; ";"
} "}"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "error"
!= "!="
null_literal "null"
) ")"
block
{ "{"
throw_statement
throw "throw"
identifier "error"
; ";"
} "}"
} "}"
method_declaration (+48 nodes collapsed)
method_declaration (+32 nodes collapsed)
method_declaration (+42 nodes collapsed)
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getPollingPeriod"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "pollingPeriodMillis"
; ";"
} "}"
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getDuration"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "durationMillis"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "VerificationMode"
identifier "getDelegate"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "delegate"
; ";"
} "}"
} "}"