Mercurial > hg > orthanc
comparison UnitTestsSources/RestApiTests.cpp @ 975:c550e99c452b
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Jun 2014 14:53:18 +0200 |
parents | 83622b0f544c |
children | ce3106e5843f |
comparison
equal
deleted
inserted
replaced
974:83622b0f544c | 975:c550e99c452b |
---|---|
120 ASSERT_EQ("v", cookies["n"]); | 120 ASSERT_EQ("v", cookies["n"]); |
121 } | 121 } |
122 | 122 |
123 TEST(RestApi, RestApiPath) | 123 TEST(RestApi, RestApiPath) |
124 { | 124 { |
125 RestApiPath::Components args; | 125 HttpHandler::Arguments args; |
126 UriComponents trail; | 126 UriComponents trail; |
127 | 127 |
128 { | 128 { |
129 RestApiPath uri("/coucou/{abc}/d/*"); | 129 RestApiPath uri("/coucou/{abc}/d/*"); |
130 ASSERT_TRUE(uri.Match(args, trail, "/coucou/moi/d/e/f/g")); | 130 ASSERT_TRUE(uri.Match(args, trail, "/coucou/moi/d/e/f/g")); |