Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
languagetool
languagetool-test-resource.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File languagetool-test-resource.patch of Package languagetool
--- languagetool-4.8/languagetool-core/src/test/java/org/languagetool/tools/StringToolsTest.java 2024-05-04 15:45:27.936860841 +0200 +++ languagetool-4.8/languagetool-core/src/test/java/org/languagetool/tools/StringToolsTest.java 2024-05-04 15:46:39.262077132 +0200 @@ -55,7 +55,7 @@ @Test public void testReadStream() throws IOException { - String content = StringTools.readStream(new FileInputStream("src/test/resources/testinput.txt"), "utf-8"); + String content = StringTools.readStream(this.getClass().getResourceAsStream("/testinput.txt"), "utf-8"); assertEquals("one\ntwo\nöäüß\nșțîâăȘȚÎÂĂ\n", content); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor