Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import org.apache.commons.lang3.tuple.Pair;
import org.assertj.core.api.Assertions;
import org.hamcrest.CoreMatchers;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
Expand Down Expand Up @@ -307,8 +308,8 @@ public void testInlineScriptClientError() throws Exception
"mothership", rowMap.get("PageflowName"));
checker().verifyEquals("Expect confirmation that the action is app",
"clientException", rowMap.get("PageflowAction"));
checker().verifyEquals("Unexpected exception message",
"TypeError: x is undefined", rowMap.get("ExceptionMessage"));
checker().verifyThat("Unexpected exception message",
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("x is undefined"));
checker().verifyEquals("Expect confirmation that the user is correct",
getCurrentUser(), rowMap.get("Username"));
checker().verifyEquals("expext the referring URL to be the page from which we caused this",
Expand Down Expand Up @@ -340,8 +341,8 @@ public void testResourceScriptClientError() throws Exception
"mothership", rowMap.get("PageflowName"));
checker().verifyEquals("Expect confirmation that the action is app",
"clientException", rowMap.get("PageflowAction"));
checker().verifyEquals("Unexpected exception message",
"TypeError: x is undefined", rowMap.get("ExceptionMessage"));
checker().verifyThat("Unexpected exception message",
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("x is undefined"));
checker().verifyEquals("Expect confirmation that the user is correct",
getCurrentUser(), rowMap.get("Username"));
checker().verifyEquals("expext the referring URL to be the page from which we caused this",
Expand Down Expand Up @@ -373,8 +374,8 @@ public void testNestedResourceScriptClientError() throws Exception
"mothership", rowMap.get("PageflowName"));
checker().verifyEquals("Expect confirmation that the action is app",
"clientException", rowMap.get("PageflowAction"));
checker().verifyEquals("Unexpected exception message",
"TypeError: x is undefined", rowMap.get("ExceptionMessage"));
checker().verifyThat("Unexpected exception message",
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("x is undefined"));
checker().verifyEquals("Expect confirmation that the user is correct",
getCurrentUser(), rowMap.get("Username"));
checker().verifyEquals("expext the referring URL to be the page from which we caused this",
Expand Down Expand Up @@ -406,8 +407,8 @@ public void testAsyncScriptClientError() throws Exception
"mothership", rowMap.get("PageflowName"));
checker().verifyEquals("Expect confirmation that the action is clientException",
"clientException", rowMap.get("PageflowAction"));
checker().verifyEquals("Unexpected exception message",
"TypeError: result.does is undefined", rowMap.get("ExceptionMessage"));
checker().verifyThat("Unexpected exception message",
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("result.does is undefined"));
checker().verifyEquals("Expect confirmation that the user is correct",
getCurrentUser(), rowMap.get("Username"));
checker().verifyEquals("expect the referring URL to be the page from which we caused this",
Expand Down