We're updating the issue view to help you get more done. 

MockPage should implements its own equals method

Description

Right know AEMMock uses Object.equals which leads to false negative (2 different java instances of the same page (MockPage instance + path) are declared different).
there should be something like

1 2 3 4 5 6 7 public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof MockPage)) return false; MockPage page = (MockPage) o; return getPath().equals(page.getPath()); }

Environment

None

Status

Assignee

Unassigned

Reporter

Nicolas P.

Labels

None

Components

Fix versions

Affects versions

AEM Mocks 1.2.2

Priority

Major