blob: 3e4cd70a352812f6534ababde25a7e1d8c8fc754 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.net;
import static org.junit.Assert.*;
import java.net.URISyntaxException;
import org.junit.Test;
/**
* Check validity of the URI helper methods.
*
* @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
*/
public class UriToolsTestCase {
private static final String SEARCH_QUERY = "/search/?query=sddocname:music#trick";
@Test
public final void testRawRequest() throws URISyntaxException {
java.net.URI uri = new java.net.URI("http://localhost:" + 8080 + SEARCH_QUERY);
assertEquals(SEARCH_QUERY, UriTools.rawRequest(uri));
}
}
|