Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
4,100
|
void () { doTest(); }
|
testChangeDefinitionToClass2
|
4,101
|
void () { doTest(); }
|
testDeleteClass
|
4,102
|
void () { doTest(); }
|
testDeleteClass1
|
4,103
|
void () { doTest(); }
|
testDeleteClass2
|
4,104
|
void () { setupInitialProject(); doTestBuild(2); }
|
testDeleteClassAfterCompileErrors
|
4,105
|
void () { setupInitialProject(); doTestBuild(2); }
|
testDontMarkDependentsAfterCompileErrors
|
4,106
|
void () { doTest(); }
|
testDeleteClassPackageDoesntMatchRoot
|
4,107
|
void () { doTest(); }
|
testInner
|
4,108
|
void () { doTest(); }
|
testNoResourceDelete
|
4,109
|
void () { doTest(); }
|
testNoSecondFileCompile
|
4,110
|
void () { doTest(); }
|
testNoSecondFileCompile1
|
4,111
|
void () { doTest(); }
|
testDependencyUpdate
|
4,112
|
void () { doTest(); }
|
testClass2Interface1
|
4,113
|
void () { doTest(); }
|
testClass2Interface2
|
4,114
|
void () { doTest(); }
|
testClass2Interface3
|
4,115
|
void () { doTest(); }
|
testDeleteClass3
|
4,116
|
void () { doTest(); }
|
testDeleteClass4
|
4,117
|
void () { doTest(); }
|
testDeleteInnerClass
|
4,118
|
void () { doTest(); }
|
testDeleteInnerClass1
|
4,119
|
void () { doTest(); }
|
testAddClass
|
4,120
|
void () { doTest(); }
|
testAddDuplicateClass
|
4,121
|
void () { doTest(); }
|
testAddClassHidingImportedClass
|
4,122
|
void () { doTest(); }
|
testAddClassHidingImportedClass2
|
4,123
|
void () { JpsModule moduleA = addModule("moduleA", "moduleA/src"); JpsModule moduleB = addModule("moduleB", "moduleB/src"); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); doTestBuild(1).assertSuccessful(); }
|
testMoveClassToDependentModule
|
4,124
|
void () { final JpsSdk<JpsDummyElement> sdk = getOrCreateJdk(); final String commonOutput = getAbsolutePath("out"); JpsModule moduleA = addModule("moduleA", new String[]{getAbsolutePath("moduleA/src")}, commonOutput, commonOutput, sdk); JpsModule moduleB = addModule("moduleB", new String[]{getAbsolutePath("moduleB/src")}, commonOutput, commonOutput, sdk); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); doTestBuild(1).assertSuccessful(); }
|
testMoveClassToDependentModuleWithSameOutput
|
4,125
|
void () { JpsModule moduleA = addModule("moduleA", "moduleA/src"); JpsModule moduleB = addModule("moduleB", "moduleB/src"); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); doTestBuild(1).assertSuccessful(); }
|
testMoveClassFromJavaFileToDependentModule
|
4,126
|
void () { JpsModule moduleA = addModule("moduleA", "moduleA/src"); JpsModule moduleB = addModule("moduleB", "moduleB/src"); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); // ensure compilation sequence doTestBuild(1).assertSuccessful(); }
|
testSameClassesInDifferentModules
|
4,127
|
void () { doTest().assertSuccessful(); }
|
testCompileDependenciesOnMovedClassesInFirstRound
|
4,128
|
void () { setupInitialProject(); doTestBuild(2); }
|
testIntegrateOnSuperclassRemovedAndRestored
|
4,129
|
void () { doTest(); }
|
testMoveToplevelClassToAnotherFile
|
4,130
|
void () { doTest(); }
|
testMoveClassToAnotherRoot
|
4,131
|
void () { PlatformTestUtil.withSystemProperty(BuildDataManager.PROCESS_CONSTANTS_NON_INCREMENTAL_PROPERTY, String.valueOf(true), () -> doTest()); }
|
testIntegrateOnNonIncrementalMake
|
4,132
|
void () { if (!ProjectStamps.PORTABLE_CACHES) return; doTest(); }
|
testNothingChanged
|
4,133
|
void () { JpsModule module1 = addModule("module1", "module1/src"); JpsModule module2 = addModule("module2", "module2/src"); JpsModuleRootModificationUtil.addDependency(module2, module1); doTestBuild(1).assertSuccessful(); }
|
testConflictingClasses
|
4,134
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedClassImport
|
4,135
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticWildcardImport
|
4,136
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportClassDeleted
|
4,137
|
void () { setupInitialProject(); setupModules(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportFieldDeleted
|
4,138
|
void () { setupInitialProject(); doTestBuild(1).assertSuccessful(); }
|
testStaticImportConstantFieldChanged
|
4,139
|
void () { setupInitialProject(); setupModules(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportFieldBecameNonstatic
|
4,140
|
void () { setupInitialProject(); setupModules(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportMethodDeleted
|
4,141
|
void () { setupInitialProject(); setupModules(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportMethodBecameNonstatic
|
4,142
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportInheritedFieldDeleted
|
4,143
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportInheritedFieldBecameNonstatic
|
4,144
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportInheritedMethodDeleted
|
4,145
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testUnusedStaticImportInheritedMethodBecameNonstatic
|
4,146
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testWildcardStaticImportFieldAdded
|
4,147
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testWildcardStaticImportMethodAdded
|
4,148
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testWildcardStaticImportFieldBecameStatic
|
4,149
|
void () { setupInitialProject(); doTestBuild(1).assertFailed(); }
|
testWildcardStaticImportMethodBecameStatic
|
4,150
|
void () { doTest(); }
|
testAddExtends
|
4,151
|
void () { doTest(); }
|
testAddImplements
|
4,152
|
void () { doTest(); }
|
testChangeExtends
|
4,153
|
void () { doTest(); }
|
testRemoveExtends
|
4,154
|
void () { doTest(); }
|
testRemoveExtendsAffectsFieldAccess
|
4,155
|
void () { doTest(); }
|
testRemoveExtendsAffectsMethodAccess
|
4,156
|
void () { doTest(); }
|
testRemoveImplements
|
4,157
|
void () { doTest(); }
|
testRemoveImplements2
|
4,158
|
void () { doTest(); }
|
testRemoveImplements3
|
4,159
|
void () { doTest(); }
|
testChangeExtends2
|
4,160
|
void () { doTest(); }
|
testConvertToCheckedException
|
4,161
|
void () { JpsModule module1 = addModule("module1", "module1/src"); JpsModule module2 = addModule("module2", "module2/src"); JpsModuleRootModificationUtil.addDependency(module2, module1); doTestBuild(1).assertSuccessful(); }
|
testConvertToCheckedExceptionMultiModule
|
4,162
|
void (int stage) { if (stage == 0) { final JpsModule toRename = myModuleToRename; if (toRename != null) { myModuleToRename = null; final String name = toRename.getName(); toRename.setName(name + "_renamed"); } } super.modify(stage); }
|
modify
|
4,163
|
boolean () { return false; }
|
useCachedProjectDescriptorOnEachMake
|
4,164
|
void () { myModuleToRename = addModule("moduleA", "moduleA/src"); doTestBuild(1).assertSuccessful(); }
|
testDeleteClassSameModule
|
4,165
|
void () { JpsModule moduleA = addModule("moduleA", "moduleA/src"); JpsModule moduleB = addModule("moduleB", "moduleB/src"); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); myModuleToRename = moduleB; doTestBuild(2).assertSuccessful(); }
|
testDeleteClassDependentModule
|
4,166
|
void () { doTest(); }
|
testRecompileDependent
|
4,167
|
void () { JpsModule module = addModule(); addTestRoot(module, "testSrc"); JpsLibrary library = addLibrary("lib/a.jar"); JpsModuleRootModificationUtil.addDependency(module, library, JpsJavaDependencyScope.TEST, false); doTestBuild(1).assertSuccessful(); }
|
testRecompileDependentTests
|
4,168
|
boolean () { return !"recompileTargetOnExportedLibraryChange".equals(getTestName(true)); }
|
useCachedProjectDescriptorOnEachMake
|
4,169
|
void (int stage) { if (stage == 0 && "recompileTargetOnExportedLibraryChange".equals(getTestName(true))) { final JpsTypedLibrary<JpsDummyElement> library = myProject.getLibraryCollection().findLibrary("l", JpsJavaLibraryType.INSTANCE); assertNotNull(library); for (String url : library.getRootUrls(JpsOrderRootType.COMPILED)) { library.removeUrl(url, JpsOrderRootType.COMPILED); } library.addRoot(new File(getAbsolutePath("moduleA/lib/util_new.jar")), JpsOrderRootType.COMPILED); } else { super.modify(stage); } }
|
modify
|
4,170
|
CompileScopeTestBuilder (int stage) { if ("cleanTimestampsWithOutputOnModuleRebuild".equals(getTestName(true))) { if (stage == 0) { return CompileScopeTestBuilder.recompile().targetTypes(JavaModuleBuildTargetType.PRODUCTION); } } return super.createCompileScope(stage); }
|
createCompileScope
|
4,171
|
void () { setupInitialProject(); setupModules(); doTestBuild(2).assertSuccessful(); }
|
testCleanTimestampsWithOutputOnModuleRebuild
|
4,172
|
void () { setupInitialProject(); final Map<String, JpsModule> modules = setupModules(); final JpsModule moduleA = modules.get("A"); assertNotNull(moduleA); JpsLibrary library = addLibrary("moduleA/lib/util.jar"); JpsModuleRootModificationUtil.addDependency(moduleA, library, JpsJavaDependencyScope.COMPILE, true); doTestBuild(1).assertSuccessful(); }
|
testRecompileTargetOnExportedLibraryChange
|
4,173
|
void () { JpsModule module = addModule(); addTestRoot(module, "testSrc"); JpsModule util = addModule("util", "util/src"); addTestRoot(util, "util/testSrc"); JpsModuleRootModificationUtil.addDependency(module, util); JpsModule lib = addModule("lib", "lib/src"); addTestRoot(lib, "lib/testSrc"); JpsModuleRootModificationUtil.addDependency(util, lib); PlatformTestUtil.withSystemProperty(BuildDataManager.PROCESS_CONSTANTS_NON_INCREMENTAL_PROPERTY, String.valueOf(true), () -> doTestBuild(1).assertSuccessful()); }
|
testTransitiveRecompile
|
4,174
|
void () { doTest().assertSuccessful(); }
|
testRecompileTwinDependencies
|
4,175
|
void () { //'b.Client' from production sources of 'b' cannot depend on 'a.ShortName' from module 'a' so it shouldn't be marked as dirty. //Otherwise we can get 'dirty' sources after full make if production of 'b' was compiled before 'a' JpsModule b = addModule("b", "moduleB/src"); addTestRoot(b, "moduleB/testSrc"); JpsModule a = addModule("a", "moduleA/src"); addTestRoot(a, "moduleA/testSrc"); JpsModuleRootModificationUtil.addDependency(b, a, JpsJavaDependencyScope.TEST, false); doTestBuild(2).assertSuccessful(); }
|
testDoNotMarkDirtyCompiledChunks
|
4,176
|
void () { doTest(); }
|
testPackageInfoNoRecompile
|
4,177
|
void () { doTest(); }
|
testPackageInfoNoRecompile2
|
4,178
|
void () { doTest(); }
|
testPackageInfoRecompileOnConstantChange
|
4,179
|
long (String line) { final int hours = Integer.parseInt(line.substring(HOURS_START, HOURS_START + 2)); final int minutes = Integer.parseInt(line.substring(MINUTES_START, MINUTES_START + 2)); final int seconds = Integer.parseInt(line.substring(SECONDS_START, SECONDS_START + 2)); final int millis = Integer.parseInt(line.substring(MILLIS_START, MILLIS_START + 3)); return millis + seconds * 1000L + minutes * 60000L + hours * 3600000L; }
|
getTime
|
4,180
|
void () { doTest(); }
|
testAddThrows
|
4,181
|
void () { doTest(); }
|
testChangeReturnType
|
4,182
|
void () { doTest(); }
|
testChangeMethodRefReturnType
|
4,183
|
void () { doTest(); }
|
testChangeLambdaTargetReturnType
|
4,184
|
void () { doTest(); }
|
testChangeSAMMethodSignature
|
4,185
|
void () { doTest(); }
|
testChangeLambdaSAMMethodSignature
|
4,186
|
void () { doTest(); }
|
testChangeReturnType1
|
4,187
|
void () { doTest(); }
|
testChangeSignature
|
4,188
|
void () { doTest(); }
|
testChangeSignature1
|
4,189
|
void () { doTest(); }
|
testConstantChain
|
4,190
|
void () { doTest(); }
|
testConstantChain1
|
4,191
|
void () { doTest(); }
|
testConstantChain2
|
4,192
|
void () { JpsModule moduleA = addModule("moduleA", "moduleA/src"); JpsModule moduleB = addModule("moduleB", "moduleB/src"); JpsModule moduleC = addModule("moduleC", "moduleC/src"); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); JpsModuleRootModificationUtil.addDependency(moduleC, moduleB); doTestBuild(1).assertSuccessful(); }
|
testConstantChainMultiModule
|
4,193
|
void () { doTest(); }
|
testConstantRemove
|
4,194
|
void () { doTest(); }
|
testConstantRemove1
|
4,195
|
void () { doTest(); }
|
testDoubleConstantChange
|
4,196
|
void () { doTest(); }
|
testFloatConstantChange
|
4,197
|
void () { doTest(); }
|
testInnerConstantChange
|
4,198
|
void () { doTest(); }
|
testIntConstantChange
|
4,199
|
void () { doTest(); }
|
testIntNonStaticConstantChange
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.