- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 81 for SetAnnotation (0.28 sec)
-
pkg/registry/flowcontrol/ensurer/flowschema_test.go
func (b *fsBuilder) WithGeneration(value int64) *fsBuilder { b.object.SetGeneration(value) return b } func (b *fsBuilder) WithAutoUpdateAnnotation(value string) *fsBuilder { setAnnotation(b.object, value) return b } func setAnnotation(accessor metav1.Object, value string) { if accessor.GetAnnotations() == nil { accessor.SetAnnotations(map[string]string{}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.2K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go
return b.object } func (b *plBuilder) WithGeneration(value int64) *plBuilder { b.object.SetGeneration(value) return b } func (b *plBuilder) WithAutoUpdateAnnotation(value string) *plBuilder { setAnnotation(b.object, value) return b } func (b *plBuilder) WithLimited(nominalConcurrencyShares int32) *plBuilder { b.object.Spec.Type = flowcontrolv1.PriorityLevelEnablementLimited
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 19.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy
} def "get annotation"() { expect: getAnnotation(Root, InheritedAnnotation).value() == "default" getAnnotation(Subclass, InheritedAnnotation).value() == "default" getAnnotation(RootInterface, InheritedAnnotation).value() == "default" getAnnotation(SubInterface, InheritedAnnotation).value() == "default" getAnnotation(Root, NotInheritedAnnotation).value() == "default"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/SoftwareTypeRegistrationPluginTargetTest.groovy
and: // returns multiple properties with annotation present 1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(Stub(SoftwareType)) 1 * anotherPropertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(Stub(SoftwareType)) and: def e = thrown(DefaultMultiCauseException) e.hasCause(InvalidUserDataException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:29 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/extensibility/test-kit/src/testFixtures/groovy/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.groovy
} if (testDetails.getAnnotation(InspectsExecutedTasks) && gradleVersion < MINIMUM_VERSIONS_BY_ANNOTATIONS[InspectsExecutedTasks]) { return false } if (testDetails.getAnnotation(NoDebug) && debug) { return false } if (testDetails.getAnnotation(Debug) && !debug) { return false
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 18:29:03 UTC 2024 - 18.7K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/test/groovy/org/gradle/api/internal/tasks/compile/GroovyCompileTransformingClassLoaderTest.groovy
def annotation = cl.getAnnotation(classAnnotation) annotation.value() == ['some-type'] as String[] annotation.classes() == [] as Class[] } def "loads class annotated with transformer names"() { expect: def cl = loader.loadClass(WithNamesSpecified.name) def annotation = cl.getAnnotation(classAnnotation)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/listeners/ConstantsCollectorTest.groovy
public static final int CONSTANT2 = A.CONSTANT; @Annotation(A.CONSTANT) public final int field = A.CONSTANT; } """ when: compiler.compile(toSourceFile(clazz) + getAnnotation("int")) then: privateDependentToConstants["A"] == null accessibleDependentToConstants["A"] == null } def "collect all constants from annotations on class"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:06:26 UTC 2023 - 22.4K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/test/groovy/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistryTest.groovy
1 * propertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType) 1 * duplicatePropertyMetadata.getPropertyType() >> SoftwareType.class 1 * duplicatePropertyMetadata.getDeclaredType() >> TypeToken.of(TestModel.class) 1 * duplicatePropertyMetadata.getAnnotation(SoftwareType.class) >> Optional.of(softwareType) 4 * softwareType.name() >> "test"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:29 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java
public static <A extends Annotation> A getAnnotation(Class<?> type, Class<A> annotationType) { return getAnnotation(type, annotationType, true); } @Nullable private static <A extends Annotation> A getAnnotation(Class<?> type, Class<A> annotationType, boolean checkType) { A annotation; if (checkType) { annotation = type.getAnnotation(annotationType);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/DefaultMethodRuleDefinition.java
} @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return getAnnotation(annotationType) != null; } @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { return method.getMethod().getAnnotation(annotationType); } @Override public ModelRuleDescriptor getDescriptor() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5K bytes - Viewed (0)