Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 907 for testUtil (0.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopyActionExecuterTest.groovy

            def fileCollectionFactory = TestFiles.fileCollectionFactory(testDirectory)
            def copySpec = new DestinationRootCopySpec(resolver, new DefaultCopySpec(fileCollectionFactory, TestUtil.objectFactory(), TestUtil.instantiatorFactory().decorateLenient(), TestFiles.patternSetFactory))
            copySpec.with {
                into "out"
                from "a", {
                    from "b/b1", {
                        it.eachFile {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go

    */
    
    package metrics
    
    import (
    	"context"
    	"strings"
    	"testing"
    
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/component-base/metrics/legacyregistry"
    	"k8s.io/component-base/metrics/testutil"
    )
    
    func TestRecordAuthorizationDecisionsTotal(t *testing.T) {
    	prefix := `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/metrics_test.go

    	// A single fetch should aggregate and increment regeneration counter.
    	if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, formatExpectedMetrics(1), interests...); err != nil {
    		t.Fatal(err)
    	}
    	_, _, _ = fetchPath(manager, "application/json", discoveryPath, "")
    	// Subsequent fetches should not reaggregate discovery.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 17:24:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/api/internal/artifacts/DependencyManagementTestUtil.groovy

        }
    
        static PreferJavaRuntimeVariant defaultSchema() {
            return new PreferJavaRuntimeVariant(TestUtil.objectInstantiator())
        }
    
        static PlatformSupport platformSupport() {
            return new PlatformSupport(TestUtil.objectInstantiator())
        }
    
        static ComponentSelectionDescriptorFactory componentSelectionDescriptorFactory() {
            return new TestComponentDescriptorFactory()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 19:30:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/plugins/jvm/internal/PlatformDependencyModifiersTest.groovy

    import org.gradle.api.plugins.jvm.PlatformDependencyModifiers
    import org.gradle.util.AttributeTestUtil
    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    class PlatformDependencyModifiersTest extends Specification {
        def "copies given external dependency to select platform"() {
            def modifier = TestUtil.objectFactory().newInstance(PlatformDependencyModifiers.PlatformDependencyModifier)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/jvm/language-groovy/src/test/groovy/org/gradle/api/internal/tasks/compile/NormalizingGroovyCompilerTest.groovy

            spec.destinationDir = new File("destinationDir")
            spec.compileOptions = TestUtil.newInstance(CompileOptions.class, TestUtil.objectFactory())
            ServiceLookup services = new DefaultServiceRegistry().add(ObjectFactory, TestUtil.objectFactory())
            spec.groovyCompileOptions = new MinimalGroovyCompileOptions(TestUtil.instantiatorFactory().decorateLenient(services).newInstance(GroovyCompileOptions.class))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ConventionAwareHelperTest.java

        @Before public void setUp() {
            testTask = TestUtil.create(temporaryFolder).task(TestTask.class);
            conventionAware = new ConventionAwareHelper(testTask, new DefaultConvention(TestUtil.instantiatorFactory().decorateLenient()));
        }
    
        @Test
        public void canMapPropertiesUsingClosure() {
            conventionAware.map("list1", TestUtil.toClosure("{ ['a'] }"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. platforms/ide/ide-plugins/src/test/groovy/org/gradle/plugins/ide/idea/model/IdeaModuleTest.groovy

    import org.gradle.plugins.ide.idea.IdeaPlugin
    import org.gradle.test.fixtures.AbstractProjectBuilderSpec
    import org.gradle.util.TestUtil
    
    class IdeaModuleTest extends AbstractProjectBuilderSpec {
        private ProjectInternal moduleProject
    
        def setup() {
            moduleProject = TestUtil.createChildProject(project, "child", new File("."))
        }
    
        def "language level is null for non java projects"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectRegistryTest.java

        @Before
        public void setUp() {
            projectRegistry = new DefaultProjectRegistry<ProjectInternal>();
            rootMock = TestUtil.create(temporaryFolder).rootProject();
            childMock = TestUtil.createChildProject(rootMock, CHILD_NAME);
            childChildMock = TestUtil.createChildProject(childMock, CHILD_CHILD_NAME);
            projectRegistry.addProject(rootMock);
            projectRegistry.addProject(childMock);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 19 10:56:37 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  10. platforms/jvm/language-groovy/src/test/groovy/org/gradle/api/internal/tasks/compile/DefaultGroovyJavaJointCompileSpecFactoryTest.groovy

    import org.gradle.util.TestUtil
    import org.junit.Rule
    import spock.lang.Specification
    
    class DefaultGroovyJavaJointCompileSpecFactoryTest extends Specification {
    
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def "produces correct spec type" () {
            CompileOptions options = TestUtil.newInstance(CompileOptions.class, TestUtil.objectFactory())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top