Skip to content

Commit

Permalink
Test to show that AddressBuilder cannot handle curly braces in URLs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chkal committed Jan 20, 2015
1 parent 9b5f35f commit 491cf97
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.junit.Assert.assertEquals;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

public class AddressBuilderTest
Expand Down Expand Up @@ -283,4 +284,12 @@ public void testEmptyAnchorOnly()
assertEquals("#", AddressBuilder.create("#").toString());
}

@Test
@Ignore // see: https://github.com/ocpsoft/rewrite/issues/195
public void shouldCreateAddressFromUrlWithCurlyBrace()
{
Address address = AddressBuilder.create("http://localhost/somepath/%7Bsomething%7D");
assertEquals("/somepath/{something}", address.getPath());
}

}

0 comments on commit 491cf97

Please sign in to comment.