Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
---|---|---|
3,900 |
void () { String file1 = createFile("dir/a.txt", "aaa"); createFile("dir/b.txt", "bbb"); final JpsArtifact a = addArtifact(root().parentDirCopy(file1)); buildAll(); assertOutput(a, fs().file("a.txt", "aaa").file("b.txt", "bbb")); buildAllAndAssertUpToDate(); change(file1, "xxx"); buildAll(); assertDeletedAndCopied("out/artifacts/a/a.txt", "dir/a.txt"); assertOutput(a, fs().file("a.txt", "xxx").file("b.txt", "bbb")); buildAllAndAssertUpToDate(); }
|
testCopyChangedFile
|
3,901 |
void () { String file1 = createFile("dir/a.txt"); createFile("dir/b.txt"); final JpsArtifact a = addArtifact("a", root().parentDirCopy(file1)); buildAll(); assertOutput(a, fs().file("a.txt").file("b.txt")); delete(file1); buildAll(); assertDeleted("out/artifacts/a/a.txt"); assertOutput(a, fs().file("b.txt")); buildAllAndAssertUpToDate(); }
|
testRemoveDeletedFile
|
3,902 |
void () { String file1 = createFile("dir/a.txt"); String file2 = createFile("dir/b.txt"); final JpsArtifact a = addArtifact("a", archive("a.jar").parentDirCopy(file1)); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt").file("b.txt")); delete(file1); delete(file2); buildAll(); assertDeleted("out/artifacts/a/a.jar"); assertEmptyOutput(a); buildAllAndAssertUpToDate(); }
|
testRemoveAllFilesFromArchive
|
3,903 |
void () { String file1 = createFile("dir/a.txt", "aaa"); createFile("dir/b.txt", "bbb"); final JpsArtifact a = addArtifact(archive("a.jar").parentDirCopy(file1)); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt", "aaa").file("b.txt", "bbb")); buildAllAndAssertUpToDate(); change(file1, "xxx"); buildAll(); assertDeletedAndCopied("out/artifacts/a/a.jar", "dir/a.txt", "dir/b.txt"); assertOutput(a, fs().archive("a.jar").file("a.txt", "xxx").file("b.txt", "bbb")); buildAllAndAssertUpToDate(); }
|
testPackChangedFile
|
3,904 |
void () { String file1 = createFile("dir/a.txt"); createFile("dir/b.txt"); final JpsArtifact a = addArtifact("a", root().archive("a.jar").parentDirCopy(file1)); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt").file("b.txt")); delete(file1); buildAll(); assertDeletedAndCopied("out/artifacts/a/a.jar", "dir/b.txt"); assertOutput(a, fs().archive("a.jar").file("b.txt")); buildAllAndAssertUpToDate(); }
|
testRemoveDeletedFileFromArchive
|
3,905 |
void () { String file = createFile("dir/a.txt"); JpsArtifact a = addArtifact("a", archive("a.jar").parentDirCopy(file)); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt")); createFile("dir/b.txt"); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt").file("b.txt")); assertCopied("dir/a.txt", "dir/b.txt"); buildAllAndAssertUpToDate(); }
|
testAddFileToArchive
|
3,906 |
void () { String file = getAbsolutePath("a.txt"); JpsArtifact a = addArtifact(root().fileCopy(file)); buildArtifacts(a); assertEmptyOutput(a); buildAllAndAssertUpToDate(); FileUtil.createIfDoesntExist(new File(file)); buildArtifacts(a); assertOutput(a, fs().file("a.txt")); buildAllAndAssertUpToDate(); delete(file); buildArtifacts(a); assertEmptyOutput(a); buildAllAndAssertUpToDate(); }
|
testNonExistentFileRoot
|
3,907 |
void () { String dir = getAbsolutePath("d"); JpsArtifact a = addArtifact(root().dirCopy(dir)); buildArtifacts(a); assertEmptyOutput(a); buildAllAndAssertUpToDate(); FileUtil.createIfDoesntExist(new File(dir, "a.txt")); buildArtifacts(a); assertOutput(a, fs().file("a.txt")); buildAllAndAssertUpToDate(); delete(dir); buildArtifacts(a); assertEmptyOutput(a); buildAllAndAssertUpToDate(); }
|
testNonExistentDirectoryRoot
|
3,908 |
void () { final String file = createFile("file.txt"); final JpsArtifact a1 = addArtifact("a1", root().dir("dir").fileCopy(file)); final JpsArtifact a2 = addArtifact("a2", root().dir("dir2").fileCopy(file)); buildAll(); buildArtifacts(a1); assertUpToDate(); buildArtifacts(a2); assertUpToDate(); buildAllAndAssertUpToDate(); change(file); buildArtifacts(a1); assertDeletedAndCopied("out/artifacts/a1/dir/file.txt", "file.txt"); buildArtifacts(a1); assertUpToDate(); buildArtifacts(a2); assertDeletedAndCopied("out/artifacts/a2/dir2/file.txt", "file.txt"); buildArtifacts(a2); assertUpToDate(); buildArtifacts(a1); assertUpToDate(); buildAllAndAssertUpToDate(); }
|
testOneFileInTwoArtifacts
|
3,909 |
void () { String root = PathUtil.getParentPath(createFile("d/1.txt")); JpsArtifact a = addArtifact(root().dirCopy(root)); a.setOutputPath(root); buildArtifacts(a); assertOutput(a, fs().file("1.txt")); String file2 = createFile("d/2.txt"); buildArtifacts(a); assertOutput(a, fs().file("1.txt").file("2.txt")); a.getRootElement().addChild(JpsPackagingElementFactory.getInstance().createFileCopy(createFile("d2/3.txt"), null)); buildArtifacts(a); assertOutput(a, fs().file("1.txt").file("2.txt").file("3.txt")); buildAllAndAssertUpToDate(); assertOutput(a, fs().file("1.txt").file("2.txt").file("3.txt")); delete(file2); buildAllAndAssertUpToDate(); assertOutput(a, fs().file("1.txt").file("3.txt")); }
|
testArtifactWithOutputPathEqualToSourcePath
|
3,910 |
void () { String file1 = createFile("d/1.txt"); createFile("d/2.txt"); JpsArtifact included = addArtifact("i", root().parentDirCopy(file1)); JpsArtifact a = addArtifact(root().artifact(included)); buildAllModulesAndArtifacts(); assertOutput(included, fs().file("1.txt").file("2.txt")); assertOutput(a, fs().file("1.txt").file("2.txt")); delete(file1); delete(included.getOutputPath());//to trigger rebuild only for 'i' //doBuild(CompileScopeTestBuilder.rebuild().artifact(included)).assertSuccessful(); doBuild(CompileScopeTestBuilder.make().artifact(included)).assertSuccessful(); assertOutput(included, fs().file("2.txt")); assertOutput(a, fs().file("1.txt").file("2.txt")); buildAllModulesAndArtifacts(); assertOutput(a, fs().file("2.txt")); }
|
testDeleteFileAndRebuildIncludedArtifact
|
3,911 |
void () { String file = createFile("src1/A.java", "class A{}"); JpsModule m1 = addModule("m1", PathUtil.getParentPath(file)); JpsModule m2 = addModule("m2", PathUtil.getParentPath(createFile("src2/B.java", "class B{}"))); JpsArtifact a = addArtifact(root().module(m1).module(m2)); buildAll(); assertOutput(a, fs().file("A.class").file("B.class")); delete(file); createFile("src2/A.java", "class A{}"); buildAll(); assertOutput(a, fs().file("A.class").file("B.class")); assertDeletedAndCopied(new String[] {"out/artifacts/a/A.class", "out/production/m1/A.class"}, "out/production/m2/A.class"); buildAllAndAssertUpToDate(); }
|
testMoveClassFromOneModuleToAnother
|
3,912 |
void () { final String file1 = createFile("a/a.txt", "a"); final String file2 = createFile("b/a.txt", "b"); addArtifact(root() .archive("x.jar") .fileCopy(file1) .fileCopy(file2)); buildAll(); change(file1); buildAll(); assertDeletedAndCopied("out/artifacts/a/x.jar", "a/a.txt"); }
|
testOverwriteFileInArchive
|
3,913 |
void () { final String file = createFile("a/a.txt"); final JpsArtifact a = addArtifact(root().parentDirCopy(file)); buildAll(); assertOutput(a, fs().file("a.txt")); rename(file, "b.txt"); buildAll(); assertOutput(a, fs().file("b.txt")); }
|
testRenameFile
|
3,914 |
void () { final String file = createFile("a/a.txt"); final JpsArtifact a = addArtifact("a", root().parentDirCopy(file)); buildAll(); assertOutput(a, fs().file("a.txt")); rename(file, "A.txt"); buildAll(); assertOutput(a, fs().file("A.txt")); }
|
testUpdateFileIfCaseOfLetterInNameChanged
|
3,915 |
void () { final String file = createFile("a/a.txt"); final JpsArtifact a1 = addArtifact("a1", root().parentDirCopy(file)); final JpsArtifact a2 = addArtifact("a2", root().parentDirCopy(file)); buildAll(); assertOutput(a1, fs().file("a.txt")); assertOutput(a2, fs().file("a.txt")); delete(file); buildArtifacts(a1); assertDeleted("out/artifacts/a1/a.txt"); assertEmptyOutput(a1); assertOutput(a2, fs().file("a.txt")); buildArtifacts(a2); assertDeleted("out/artifacts/a2/a.txt"); assertEmptyOutput(a1); assertEmptyOutput(a2); }
|
testDeleteFilesFromSelectedArtifactsOnly
|
3,916 |
void () { final String res1 = PathUtil.getParentPath(createFile("res1/a.txt", "1")); final String res2 = PathUtil.getParentPath(createFile("res2/a.txt", "2")); final JpsArtifact a1 = addArtifact("a1", root().dirCopy(res1)); final JpsArtifact a2 = addArtifact("a2", root().dirCopy(res2)); a2.setOutputPath(a1.getOutputPath()); assertEquals(a1.getOutputPath(), a2.getOutputPath()); buildArtifacts(a1); assertOutput(a1, fs().file("a.txt", "1")); assertOutput(a2, fs().file("a.txt", "1")); buildArtifacts(a1); assertUpToDate(); buildArtifacts(a2); assertOutput(a2, fs().file("a.txt", "2")); }
|
testTwoArtifactsWithSameOutput
|
3,917 |
void () { final String fileA = createFile("res/a.txt", "0"); final String fileB = createFile("res/b.txt", "0"); String dir = PathUtil.getParentPath(fileA); JpsArtifact a = addArtifact("a", root() .dir("d").dirCopy(dir).end() .archive("a.zip").dirCopy(dir)); buildAll(); change(fileA, "1"); buildAll(); assertOutput(a, fs() .dir("d").file("a.txt", "1").file("b.txt", "0").end() .archive("a.zip").file("a.txt", "1").file("b.txt", "0")); change(fileB, "1"); buildAll(); assertOutput(a, fs() .dir("d").file("a.txt", "1").file("b.txt", "1").end() .archive("a.zip").file("a.txt", "1").file("b.txt", "1")); }
|
testFilesCopiedToTwoDifferentPlacesInArtifact
|
3,918 |
void () { final String file = createFile("a/a.txt", "a"); JpsArtifact a = addArtifact(root() .archive("x.jar") .fileCopy(file)); var createdJar = "out/artifacts/a/x.jar"; buildAll(); assertOutput(a, fs().file("x.jar")); deleteFile(createdJar); assertOutput(a, fs()); buildAll(); assertOutput(a, fs().file("x.jar")); }
|
testCreateJarIfMissing
|
3,919 |
void () { final String file = createFile("a/a.txt", "a"); JpsArtifact a = addArtifact(root().fileCopy(file)); buildAll(); assertOutput(a, fs().file("a.txt")); deleteFile("out/artifacts/a/a.txt"); assertOutput(a, fs()); buildAll(); assertOutput(a, fs().file("a.txt")); }
|
testCopyFileIfMissing
|
3,920 |
LayoutElementCreator () { return new LayoutElementCreator(JpsPackagingElementFactory.getInstance().createArtifactRoot(), null); }
|
root
|
3,921 |
LayoutElementCreator (String name) { return new LayoutElementCreator(JpsPackagingElementFactory.getInstance().createArchive(name), null); }
|
archive
|
3,922 |
void (JpsArtifact main, JpsArtifact included) { main.getRootElement().addChild(JpsPackagingElementFactory.getInstance().createArtifactOutput(included.createReference())); }
|
addArtifactToLayout
|
3,923 |
LayoutElementCreator (String name) { JpsDirectoryPackagingElement dir = myFactory.createDirectory(name); myElement.addChild(dir); return new LayoutElementCreator(dir, this); }
|
dir
|
3,924 |
LayoutElementCreator (String name) { JpsArchivePackagingElement archive = myFactory.createArchive(name); myElement.addChild(archive); return new LayoutElementCreator(archive, this); }
|
archive
|
3,925 |
LayoutElementCreator (String filePath) { return fileCopy(filePath, null); }
|
fileCopy
|
3,926 |
LayoutElementCreator (String filePath, @Nullable String outputFileName) { return element(myFactory.createFileCopy(filePath, outputFileName)); }
|
fileCopy
|
3,927 |
LayoutElementCreator (String dirPath) { return element(myFactory.createDirectoryCopy(dirPath)); }
|
dirCopy
|
3,928 |
LayoutElementCreator (String filePath) { return dirCopy(PathUtil.getParentPath(filePath)); }
|
parentDirCopy
|
3,929 |
LayoutElementCreator (JpsModule module) { return element(JpsJavaExtensionService.getInstance().createProductionModuleOutput(module.createReference())); }
|
module
|
3,930 |
LayoutElementCreator (JpsModule module) { return element(JpsJavaExtensionService.getInstance().createProductionModuleSource(module.createReference())); }
|
moduleSource
|
3,931 |
LayoutElementCreator (JpsPackagingElement element) { myElement.addChild(element); return this; }
|
element
|
3,932 |
LayoutElementCreator (JpsLibrary library) { return element(myFactory.createLibraryElement(library.createReference())); }
|
lib
|
3,933 |
LayoutElementCreator (String jarPath, String pathInJar) { return element(myFactory.createExtractedDirectory(jarPath, pathInJar)); }
|
extractedDir
|
3,934 |
LayoutElementCreator (JpsArtifact included) { return element(myFactory.createArtifactOutput(included.createReference())); }
|
artifact
|
3,935 |
LayoutElementCreator () { return myParent; }
|
end
|
3,936 |
JpsCompositePackagingElement () { if (myParent != null) { return myParent.buildElement(); } return myElement; }
|
buildElement
|
3,937 |
void (JpsArtifact a, final String relativePath) { createFileInOutputDir(a.getOutputPath(), relativePath); }
|
createFileInArtifactOutput
|
3,938 |
void (JpsModule m, final String relativePath) { File outputDirectory = JpsJavaExtensionService.getInstance().getOutputDirectory(m, false); assertNotNull(outputDirectory); createFileInOutputDir(outputDirectory.getAbsolutePath(), relativePath); }
|
createFileInModuleOutput
|
3,939 |
void (final String outputPath, final String relativePath) { try { boolean created = new File(outputPath, relativePath).createNewFile(); assertTrue(created); } catch (IOException e) { throw new RuntimeException(e); } }
|
createFileInOutputDir
|
3,940 |
JpsArtifact (LayoutElementTestUtil.LayoutElementCreator root) { Set<String> usedNames = getArtifactNames(); final String name = UniqueNameGenerator.generateUniqueName("a", usedNames); return addArtifact(name, root); }
|
addArtifact
|
3,941 |
Set<String> () { Set<String> usedNames = new HashSet<>(); for (JpsArtifact artifact : JpsArtifactService.getInstance().getArtifacts(myProject)) { usedNames.add(artifact.getName()); } return usedNames; }
|
getArtifactNames
|
3,942 |
JpsArtifact (String name, LayoutElementTestUtil.LayoutElementCreator root) { return addArtifact(name, root, DirectoryArtifactType.INSTANCE); }
|
addArtifact
|
3,943 |
JpsArtifact (String name, LayoutElementTestUtil.LayoutElementCreator root, JpsArtifactType<JpsDummyElement> artifactType) { assertFalse("JpsArtifact " + name + " already exists", getArtifactNames().contains(name)); JpsArtifact artifact = JpsArtifactService.getInstance().addArtifact(myProject, name, root.buildElement(), artifactType, JpsElementFactory.getInstance().createDummyElement()); artifact.setOutputPath(getAbsolutePath("out/artifacts/" + name)); return artifact; }
|
addArtifact
|
3,944 |
JpsLibrary (String name, String jarPath) { final JpsLibrary library = myProject.getLibraryCollection().addLibrary(name, JpsJavaLibraryType.INSTANCE); library.addRoot(JpsPathUtil.pathToUrl(jarPath), JpsOrderRootType.COMPILED); return library; }
|
addProjectLibrary
|
3,945 |
void () { Collection<JpsArtifact> artifacts = JpsArtifactService.getInstance().getArtifacts(myProject); buildArtifacts(artifacts.toArray(new JpsArtifact[0])); }
|
buildAll
|
3,946 |
void (JpsArtifact... artifacts) { doBuild(CompileScopeTestBuilder.make().allModules().artifacts(artifacts)).assertSuccessful(); }
|
buildArtifacts
|
3,947 |
void () { doBuild(CompileScopeTestBuilder.rebuild().allModules().allArtifacts()).assertSuccessful(); }
|
rebuildAllModulesAndArtifacts
|
3,948 |
BuildResult () { return doBuild(make().allModules().allArtifacts()); }
|
buildAllModulesAndArtifacts
|
3,949 |
String () { final File file = new File(assertOneElement(IntelliJProjectConfiguration.getProjectLibraryClassesRootPaths("JUnit3"))); assertTrue("File " + file.getAbsolutePath() + " doesn't exist", file.exists()); return FileUtil.toSystemIndependentName(file.getAbsolutePath()); }
|
getJUnitJarPath
|
3,950 |
void (JpsArtifact a) { assertOutput(a, fs()); }
|
assertEmptyOutput
|
3,951 |
void (JpsArtifact a) { doBuild(CompileScopeTestBuilder.make().allModules().artifact(a)).assertFailed(); }
|
assertBuildFailed
|
3,952 |
void (String... filePaths) { assertDeletedAndCopied(ArrayUtilRt.EMPTY_STRING_ARRAY, filePaths); }
|
assertCopied
|
3,953 |
void (String deletedPath, String... copiedPaths) { assertDeletedAndCopied(new String[]{deletedPath}, copiedPaths); }
|
assertDeletedAndCopied
|
3,954 |
void (String[] deletedPaths, String... copiedPaths) { assertCompiled(IncArtifactBuilder.BUILDER_ID, copiedPaths); super.assertDeleted(deletedPaths); }
|
assertDeletedAndCopied
|
3,955 |
void (String... paths) { assertDeletedAndCopied(paths); }
|
assertDeleted
|
3,956 |
void (JpsArtifact a, TestFileSystemBuilder expected) { assertOutput(a.getOutputPath(), expected); }
|
assertOutput
|
3,957 |
void (JpsArtifact a, DirectoryContentSpec expected) { assertOutput(a.getOutputPath(), expected); }
|
assertOutput
|
3,958 |
void () { buildAll(); assertUpToDate(); }
|
buildAllAndAssertUpToDate
|
3,959 |
void () { assertDeletedAndCopied(ArrayUtilRt.EMPTY_STRING_ARRAY); }
|
assertUpToDate
|
3,960 |
void () { String dir1 = PathUtil.getParentPath(createFile("dir1/a.txt", "a")); String dir2 = PathUtil.getParentPath(createFile("dir2/b.txt", "b")); JpsArtifact a = addArtifact(root().dirCopy(dir1)); buildAll(); assertOutput(a, fs().file("a.txt", "a")); a.getRootElement().addChild(JpsPackagingElementFactory.getInstance().createDirectoryCopy(dir2)); buildAll(); assertOutput(a, fs().file("a.txt", "a").file("b.txt", "b")); assertDeletedAndCopied("out/artifacts/a/a.txt", "dir1/a.txt", "dir2/b.txt"); buildAllAndAssertUpToDate(); }
|
testAddRoot
|
3,961 |
void () { String file1 = createFile("dir1/a.txt", "a"); String file2 = createFile("dir2/b.txt", "b"); JpsArtifact a = addArtifact(root().parentDirCopy(file1).parentDirCopy(file2)); buildAll(); assertOutput(a, fs().file("a.txt", "a").file("b.txt", "b")); a.getRootElement().removeChild(a.getRootElement().getChildren().get(0)); buildAll(); assertOutput(a, fs().file("b.txt", "b")); buildAllAndAssertUpToDate(); }
|
testRemoveRoot
|
3,962 |
void () { String file = createFile("dir/a.txt"); JpsArtifact a = addArtifact(root().parentDirCopy(file)); buildAll(); String oldOutput = a.getOutputPath(); assertNotNull(oldOutput); assertOutput(oldOutput, fs().file("a.txt")); String newOutput = PathUtil.getParentPath(oldOutput) + "/a2"; a.setOutputPath(newOutput); buildAll(); assertOutput(newOutput, fs().file("a.txt")); assertOutput(oldOutput, fs()); buildAllAndAssertUpToDate(); }
|
testChangeOutput
|
3,963 |
void () { String file = createFile("d/a.txt", "a"); JpsArtifact a = addArtifact(root().parentDirCopy(file)); buildAll(); assertOutput(a, fs().file("a.txt", "a")); a.setRootElement(root().dir("dir").parentDirCopy(file).buildElement()); buildAll(); assertOutput(a, fs().dir("dir").file("a.txt", "a")); buildAllAndAssertUpToDate(); }
|
testChangeConfiguration
|
3,964 |
void () { String file1 = createFile("d1/a/b/1.txt"); String file2 = createFile("d2/x/y/2.txt"); JpsArtifact a = addArtifact(root().fileCopy(file1).fileCopy(file2)); buildAll(); assertOutput(a, fs().file("1.txt").file("2.txt")); JpsCompositePackagingElement root = a.getRootElement(); assertEquals(2, root.getChildren().size()); JpsPackagingElement last = root.getChildren().get(1); root.removeChild(last); String file3 = createFile("d3/1/2/3.txt"); root.addChild(JpsPackagingElementFactory.getInstance().createFileCopy(file3, null)); root.addChild(last); buildAll(); assertOutput(a, fs().file("1.txt").file("2.txt").file("3.txt")); }
|
testAddRootChangingRootIndices
|
3,965 |
void () { loadProject("/jps/jps-builders/testData/compilerEncoding/compilerEncoding.ipr"); JpsEncodingProjectConfiguration projectConfig = JpsEncodingConfigurationService.getInstance().getEncodingConfiguration(myProject); assertNotNull(projectConfig); assertEncoding("UTF-8", "moduleA/src/dir/with-encoding.xml", projectConfig); // overridden by file's internal encoding assertEncoding("windows-1251", "moduleA/src/dir/with-encoding.txt", projectConfig); assertEncoding("UTF-8", "moduleA/src/dir/without-encoding.xml", projectConfig); assertEncoding("UTF-8", "moduleA/src/dir/without-encoding.txt", projectConfig); assertEncoding("UTF-8", "moduleA/src/dir/non-existent.xml", projectConfig); assertEncoding("windows-1252", "moduleB/src/non-existent.xml", projectConfig); final CompilerEncodingConfiguration compilerEncodingConfiguration = new CompilerEncodingConfiguration(myModel, myRootIndex); for (JpsModule module : myProject.getModules()) { final String moduleEncoding = compilerEncodingConfiguration.getPreferredModuleEncoding(module); if ("moduleA".equals(module.getName())) { assertEquals("UTF-8", moduleEncoding); } else if ("moduleB".equals(module.getName())) { assertNull(moduleEncoding); } else if ("moduleC".equals(module.getName())) { assertEquals("windows-1252", moduleEncoding); } else { fail("Unexpected module in project: " + module.getName()); } } }
|
test
|
3,966 |
void () { checkMethodSignatures(APIWrappers.ProcessingEnvironmentWrapper.class, ProcessingEnvironment.class); checkMethodSignatures(APIWrappers.ProcessorWrapper.class, Processor.class); checkMethodSignatures(APIWrappers.FilerWrapper.class, Filer.class); checkMethodSignatures(APIWrappers.DiagnosticWrapper.class, Diagnostic.class); checkMethodSignatures(APIWrappers.DiagnosticListenerWrapper.class, DiagnosticOutputConsumer.class); }
|
testWrapperMethodsMatchAPIMethods
|
3,967 |
void () { String firstModuleDescriptor = createFile("first/src/module-info.java", "module first { requires second; }"); String firstModuleName = "first"; JpsModule firstModule = addModule(firstModuleName, PathUtil.getParentPath(firstModuleDescriptor)); createFile("first/src/pack1/Foo.java", "package pack1; import pack2.Bar; public class Foo { public void foo() { System.out.println(new Bar().bar()); } }"); String secondModuleDescriptor = createFile("second/src/module-info.java", "module second { exports pack2; }"); String secondModuleName = "second"; JpsModule second = addModule(secondModuleName, PathUtil.getParentPath(secondModuleDescriptor)); createFile("second/src/pack2/Bar.java", "package pack2; public class Bar { public String bar() { return \"bar\"; } }"); firstModule.getDependenciesList().addModuleDependency(second); LayoutElementCreator root = root() .dir(firstModuleName).module(firstModule).end() .dir(secondModuleName).module(second).end(); String artifactName = "jlink"; JpsArtifact artifact = JpsArtifactService.getInstance().addArtifact(myProject, artifactName, root.buildElement(), JpsJLinkArtifactType.INSTANCE, new JpsJLinkProperties(CompressionLevel.SECOND, true)); artifact.setOutputPath(getAbsolutePath("out/artifacts/" + artifactName)); buildArtifacts(artifact); String artifactOutputPath = artifact.getOutputFilePath(); assertTrue(Files.exists(Paths.get(artifactOutputPath, firstModuleName))); assertTrue(Files.exists(Paths.get(artifactOutputPath, secondModuleName))); assertTrue(Files.exists(Paths.get(artifactOutputPath, JLinkArtifactBuildTaskProvider.IMAGE_DIR_NAME))); }
|
testImageBuild
|
3,968 |
JpsSdk<JpsDummyElement> (String name) { // reused JDK_11 property on TC server to get JDK as default JDK doesn't contains jlink tool in home directory String jdkPath = EnvironmentUtil.getValue("JDK_11"); if (jdkPath == null) return super.addJdk(name); JpsTypedLibrary<JpsSdk<JpsDummyElement>> newJdk = myModel.getGlobal().addSdk(name, jdkPath, "11", JpsJavaSdkType.INSTANCE); return newJdk.getProperties(); }
|
addJdk
|
3,969 |
void () { doTest(); }
|
testAddAnnotationTarget
|
3,970 |
void () { doTest(); }
|
testAddAnnotationTargetTypeUse
|
3,971 |
void () { doTest(); }
|
testAddTypeUseAnnotationTarget
|
3,972 |
void () { doTest(); }
|
testAddRecordComponentAnnotationTarget
|
3,973 |
void () { doTest(); }
|
testAddAnnotationTypeMemberWithDefaultValue
|
3,974 |
void () { doTest(); }
|
testAddAnnotationTypeMemberWithDefaultValue2
|
3,975 |
void () { doTest(); }
|
testAddAnnotationTypeMemberWithoutDefaultValue
|
3,976 |
void () { doTest(); }
|
testAddDefaultToAnnotationMember
|
3,977 |
void () { doTest(); }
|
testChangeAnnotationRetentionPolicy
|
3,978 |
void () { doTest(); }
|
testChangeAnnotationRetentionPolicy1
|
3,979 |
void () { doTest(); }
|
testChangeAnnotationRetentionPolicy2
|
3,980 |
void () { doTest(); }
|
testChangeAnnotationRetentionPolicy3
|
3,981 |
void () { doTest(); }
|
testChangeAnnotationRetentionPolicy4
|
3,982 |
void () { doTest(); }
|
testChangeAnnotationTypeMemberType
|
3,983 |
void () { doTest(); }
|
testChangeAnnotationTypeMemberTypeArray
|
3,984 |
void () { doTest(); }
|
testChangeAnnotationTypeMemberTypeEnumArray
|
3,985 |
void () { doTest(); }
|
testClassAsArgument
|
3,986 |
void () { doTest(); }
|
testRemoveAnnotationTarget
|
3,987 |
void () { doTest(); }
|
testRemoveTypeUseAnnotationTarget
|
3,988 |
void () { doTest(); }
|
testRemoveAnnotationTypeMember
|
3,989 |
void () { doTest(); }
|
testRemoveAnnotationTypeMember1
|
3,990 |
void () { doTest(); }
|
testRemoveDefaultFromAnnotationMember
|
3,991 |
void () { doTest(); }
|
testConservativeNonIncremental
|
3,992 |
void () { doTest(); }
|
testConservativeNonIncremental1
|
3,993 |
void () { doTest(); }
|
testAnnotationsTracker
|
3,994 |
void () { doTest(); }
|
testDecConstructorAccess
|
3,995 |
void () { doTest(); }
|
testIncAccess
|
3,996 |
void () { doTest().assertFailed(); }
|
testChangePrivateToPackagePrivate
|
3,997 |
void () { doTest().assertFailed(); }
|
testChangePrivateToProtected
|
3,998 |
void () { doTest().assertFailed(); }
|
testChangePrivateToPublic
|
3,999 |
void () { doTest().assertFailed(); }
|
testChangePackagePrivateToProtected
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.