mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-10-07 04:41:23 +00:00
Improve Maven build robustness
* UURIFactoryTest.java
specify stirng literal with escape-encoding, rather than as raw UTF-8
* **/pom.xml
include 'project.build.sourceEncoding' property to suppress platform-encoding warnings
(unfortunately, neither this nor similar 'maven.compile.encoding' property actually casues maven build to interpret Java source as UTF-8)
This commit is contained in:
1 parent
aa3bfc7f4c
commit
ed2061560e
6 files changed
+26
-7
No files matched your search
@@ -905,6 +905,11 @@ public class UURIFactoryTest extends TestCase {
|
||||
String puny2 = "http://www.xn--plse-gra.dk/";
|
||||
assertEquals("encoding of " + idn2, puny2, UURIFactory
|
||||
.getInstance(idn2).toString());
|
||||
// http://例子.測試
|
||||
String idn3 = "http://\u4F8B\u5B50.\u6E2C\u8A66";
|
||||
String puny3 = "http://xn--fsqu00a.xn--g6w251d/";
|
||||
assertEquals("encoding of " + idn3, puny3, UURIFactory
|
||||
.getInstance(idn3).toString());
|
||||
}
|
||||
|
||||
public void testNewLineInURL() throws URIException {
|
||||
|
||||
Reference in new issue
Block a user