package com.example; import org.apache.commons.io.IOUtils; public class FooTest { @Test public void shouldWork() throws Exception { String xml = IOUtils.toString( this.getClass().getResourceAsStream("abc.xml"), "UTF-8" ); } }
Created
October 13, 2019 21:32
-
-
Save jrichardsz/f97473ca2b424826b477e5c9978344d8 to your computer and use it in GitHub Desktop.
read file in maven test uni junit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment