- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,952 for When (0.15 sec)
-
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocConverterTest.groovy
when: def result = parser.parse(classMetaData, listener) then: format(result.docbook) == '''<para><>& /></para>''' } def ignoresHtmlComments() { _ * classMetaData.rawCommentText >> '<!-- <p>ignore me</p> --><p>para 1' when: def result = parser.parse(classMetaData, listener) then:
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 14.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
// ...and then putIfAbsent. Simulate failure on both when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing); // next map.get() when(backingMap.get(KEY)).thenReturn(existingZero); // since get returned zero, try a replace; that fails due to a simulated race when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14.2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
def annotations = [] jApiType.annotations >> annotations when: annotations.clear() then: rule.maybeViolation(jApiType).humanExplanation =~ 'Is not annotated with @Incubating' when: annotations.add(incubatingAnnotation) then: rule.maybeViolation(jApiType) == null where: apiElement | jApiTypeName
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Fri Dec 01 20:12:19 GMT 2023 - 16K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy
def hasNoOverriddenMethodWhenNoSuperClass() { when: def m = method.overriddenMethod then: m == null _ * owner.superClass >> null _ * owner.interfaces >> [] } def hasNoOverriddenMethodWhenMethodDoesNotOverrideMethodInSuperClass() { ClassMetaData superClassMetaData = Mock() when: def m = method.overriddenMethod
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 5.6K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexerTest.groovy
when: lexer.pushText("<P></End>") lexer.visit(visitor) then: 1 * visitor.onStartHtmlElement('p') 1 * visitor.onStartHtmlElementComplete('p') 1 * visitor.onEndHtmlElement('end') 1 * visitor.onEnd() 0 * visitor._ } def parsesHtmlEntities() { when: lexer.pushText("before & after")
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 6K bytes - Viewed (0) -
cmd/typed-errors.go
// error returned in IAM subsystem when user doesn't exist. var errNoSuchUser = errors.New("Specified user does not exist") // error returned by IAM when a use a builtin IDP command when they could mean // to use a LDAP command. var errNoSuchUserLDAPWarn = errors.New("Specified user does not exist. If you meant a user in LDAP please use command under `mc idp ldap`") // error returned when service account is not found
Go - Registered: Sun Apr 14 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.3K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/classrealm/DefaultClassRealmManagerTest.java
Artifact artifact = mock(Artifact.class); when(artifact.getFile()).thenReturn(new File(new File("local/repository"), "some/path")); when(artifact.getGroupId()).thenReturn("group1"); when(artifact.getArtifactId()).thenReturn("artifact1"); when(artifact.getExtension()).thenReturn("ext"); when(artifact.getClassifier()).thenReturn("classifier1"); when(artifact.getVersion()).thenReturn("1");
Java - Registered: Sun Apr 14 03:35:08 GMT 2024 - Last Modified: Wed Jan 10 12:53:42 GMT 2024 - 7.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
// ...and then putIfAbsent. Simulate failure on both when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing); // next map.get() when(backingMap.get(KEY)).thenReturn(existingZero); // since get returned zero, try a replace; that fails due to a simulated race when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14.2K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/TypeMetaDataTest.groovy
expect: type.rawType.signature == 'org.gradle.SomeType[][]' } def rawTypeForVarargsType() { when: type.setVarargs() then: type.rawType.signature == 'org.gradle.SomeType[]' when: type.arrayDimensions = 1 then: type.rawType.signature == 'org.gradle.SomeType[][]' } def rawTypeForParameterizedArrayType() {
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.6K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt
currentExpression == ifExpression.then || currentExpression == ifExpression.`else` } ?: return null getExpectedType(ifExpression)?.let { return it } // if `KtIfExpression` doesn't have an expected type, get the expected type of the current branch from the other branch val otherBranch = (if (expression == ifExpression.then) ifExpression.`else` else ifExpression.then) ?: return null
Plain Text - Registered: Fri Apr 19 08:18:09 GMT 2024 - Last Modified: Tue Mar 26 18:13:17 GMT 2024 - 24.4K bytes - Viewed (0)