+doc add more detailed PathDirectives documentation

This commit is contained in:
Johannes Rudolph 2015-07-14 19:00:32 +02:00
parent 7291d0ccab
commit ed76b14447
9 changed files with 284 additions and 20 deletions

View file

@ -216,7 +216,7 @@ public class PathDirectivesTest extends JUnitRouteTest {
@Test
public void testIntegerMatcher() {
PathMatcher<Integer> age = PathMatchers.integerNumber();
PathMatcher<Integer> age = PathMatchers.intValue();
TestRoute route =
testRoute(
@ -233,8 +233,8 @@ public class PathDirectivesTest extends JUnitRouteTest {
public void testTwoVals() {
// tests that `x` and `y` have different identities which is important for
// retrieving the values
PathMatcher<Integer> x = PathMatchers.integerNumber();
PathMatcher<Integer> y = PathMatchers.integerNumber();
PathMatcher<Integer> x = PathMatchers.intValue();
PathMatcher<Integer> y = PathMatchers.intValue();
TestRoute route =
testRoute(
@ -254,7 +254,7 @@ public class PathDirectivesTest extends JUnitRouteTest {
@Test
public void testHexIntegerMatcher() {
PathMatcher<Integer> color = PathMatchers.hexIntegerNumber();
PathMatcher<Integer> color = PathMatchers.hexIntValue();
TestRoute route =
testRoute(
@ -267,7 +267,7 @@ public class PathDirectivesTest extends JUnitRouteTest {
@Test
public void testLongMatcher() {
PathMatcher<Long> bigAge = PathMatchers.longNumber();
PathMatcher<Long> bigAge = PathMatchers.longValue();
TestRoute route =
testRoute(
@ -280,7 +280,7 @@ public class PathDirectivesTest extends JUnitRouteTest {
@Test
public void testHexLongMatcher() {
PathMatcher<Long> code = PathMatchers.hexLongNumber();
PathMatcher<Long> code = PathMatchers.hexLongValue();
TestRoute route =
testRoute(