fix JpsArtifactSerializationTest

This commit is contained in:
Vladimir Krivosheev
2017-05-31 07:12:46 +02:00
parent 05623fb45d
commit fc52fe4b4f
2 changed files with 2 additions and 2 deletions
@@ -45,7 +45,7 @@ public class JpsArtifactSerializationTest extends JpsSerializationTestCase {
public void testSaveProject() throws IOException {
loadProject(SAMPLE_PROJECT_PATH);
List<Path> artifactFiles = Files.list(getTestDataAbsoluteFile(SAMPLE_PROJECT_PATH + ".idea/artifacts")).collect(Collectors.toList());
List<Path> artifactFiles = Files.list(getTestDataAbsoluteFile(SAMPLE_PROJECT_PATH + "/.idea/artifacts")).collect(Collectors.toList());
assertNotNull(artifactFiles);
for (Path file : artifactFiles) {
JpsArtifact artifact = getService().createReference(FileUtil.getNameWithoutExtension(file.getFileName().toString())).asExternal(myModel).resolve();
@@ -85,7 +85,7 @@ public abstract class JpsSerializationTestCase extends JpsModelTestCase {
return variables;
}
protected String getTestDataFileAbsolutePath(String relativePath) {
protected String getTestDataFileAbsolutePath(@NotNull String relativePath) {
return PathManagerEx.findFileUnderProjectHome(relativePath, getClass()).getAbsolutePath();
}