Skip to content

Commit

Permalink
Fix unit test to handle encoding changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Feb 3, 2020
1 parent e2dc447 commit 4ba4808
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -248,10 +248,10 @@ public void comparingUserAgentFields() {

@Test
public void fullToString() {
UserAgent userAgent = new UserAgent("Some Agent");
UserAgent userAgent = new UserAgent("Some'Agent");

assertEquals(
" - user_agent_string: '\"Some Agent\"'\n" +
" - user_agent_string: 'Some''Agent'\n" +
" DeviceClass : 'Unknown'\n" +
" DeviceName : 'Unknown'\n" +
" DeviceBrand : 'Unknown'\n" +
Expand Down Expand Up @@ -285,7 +285,7 @@ public void limitedToString() {
UserAgent userAgent = new UserAgent("Some Agent", wanted);

assertEquals(
" - user_agent_string: '\"Some Agent\"'\n" +
" - user_agent_string: 'Some Agent'\n" +
" DeviceClass : 'Unknown'\n" +
" AgentVersion : '??'\n",
userAgent.toString());
Expand Down

0 comments on commit 4ba4808

Please sign in to comment.