import static org.junit.Assert.assertEquals;
-import com.google.common.base.Charsets;
import com.google.common.collect.Sets;
import com.google.common.io.Resources;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
assertEquals(obsoleteCapabilities, tested.getObsoleteCapabilities());
}
- private Set<String> readLines(String fileName) throws IOException {
- return new HashSet<>(Resources.readLines(getClass().getResource(fileName), Charsets.UTF_8));
+ private Set<String> readLines(final String fileName) throws IOException {
+ return new HashSet<>(Resources.readLines(getClass().getResource(fileName), StandardCharsets.UTF_8));
}
- private String readToString(String fileName) throws IOException {
- return Resources.toString(getClass().getResource(fileName), Charsets.UTF_8);
+ private String readToString(final String fileName) throws IOException {
+ return Resources.toString(getClass().getResource(fileName), StandardCharsets.UTF_8);
}
}