MCPcopy Create free account
hub / github.com/apache/tomcat / getPath

Method getPath

test/org/apache/tomcat/util/net/jsse/TestPEMFile.java:132–141  ·  view source on GitHub ↗
(String file)

Source from the content-addressed store, hash-verified

130
131
132 private String getPath(String file) throws IOException {
133 if (file == null) {
134 return null;
135 }
136 String packageName = this.getClass().getPackageName();
137 String path = packageName.replace(".", File.separator);
138 File f = new File("test" + File.separator + path + File.separator + file);
139
140 return f.getCanonicalPath();
141 }
142}

Callers 1

testKeyMethod · 0.95

Calls 3

getPackageNameMethod · 0.80
getCanonicalPathMethod · 0.65
replaceMethod · 0.45

Tested by

no test coverage detected