Skip to content

Commit

Permalink
#8 Destination bug reproduced, params are lost
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Apr 17, 2016
1 parent 85bcebb commit 52754ec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/io/jare/tk/DestinationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,16 @@ public void buildsEmptyPath() throws Exception {
);
}

/**
* Destination can build path with params.
* @throws Exception If some problem inside
*/
@Test
public void buildsPathWithParams() throws Exception {
MatcherAssert.assertThat(
new Destination(new URI("http://www.google.com?a=1")).path(),
Matchers.equalTo("/?a=1")
);
}

}

0 comments on commit 52754ec

Please sign in to comment.