piątek, 20 marca 2015

Using files from resources in your tests

import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;


URL infoFileURL = ProjectServiceImplTest.class.getResource("/log4jINFO.properties");
testLogFileWithINFOLevel = new File(infoFileURL.toURI());

Brak komentarzy:

Prześlij komentarz