# See the License for the specific language governing permissions and
# limitations under the License.
+module test_example_query_string is test_suite
+
+import pop_tests
import example_query_string
-import base_tests
-class TestClient
- super ClientThread
+class TestExampleQueryString
+ super TestPopcorn
- redef fun main do
+ redef fun client_test do
system "curl -s {host}:{port}/"
system "curl -s {host}:{port}/?user=Morriar"
system "curl -s {host}:{port}/?reload"
system "curl -s {host}:{port}/?foo\\&bar=baz"
system "curl -s {host}:{port}/?items=10\\&order=asc"
- return null
end
-end
-
-var app = new App
-app.use("/", new QueryStringHandler)
-
-var host = test_host
-var port = test_port
-var server = new AppThread(host, port, app)
-server.start
-0.1.sleep
-
-var client = new TestClient(host, port)
-client.start
-client.join
-0.1.sleep
-
-exit 0
+ fun test_example_glob_route do
+ var app = new App
+ app.use("/", new QueryStringHandler)
+ run_test(app)
+ end
+end