language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | spring-projects | spring-framework | 100ce9642afb14b806e42ae9277f77171a7bc04c.json | Use TypeReference consistently in hints writer
Closes gh-28606 | spring-core/src/test/java/org/springframework/aot/nativex/ReflectionHintsWriterTests.java | @@ -158,6 +158,27 @@ void methods() throws JSONException {
""", hints);
}
+ @Test
+ void methodWithInnerClassParameter() throws JSONException {
+ ReflectionHints hints = new ReflectionHints();
+ hints.registerType(Integer.class, builder -> builder.withMethod("test", List.of(TypeReference.of(Inner.class)),
+ ... | true |
Other | spring-projects | spring-framework | 27738cc20fc6d640b175a9fc7ff36f766fe3a3d2.json | Fix code samples for nested router functions
Closes gh-28603 | src/docs/asciidoc/web/webflux-functional.adoc | @@ -590,10 +590,10 @@ RouterFunction<ServerResponse> route = route()
.path("/person", builder -> builder // <1>
.GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
.GET(accept(APPLICATION_JSON), handler::listPeople)
- .POST("/person", handler::createPerson))
+ .POST(handler::createPerson))
.build();... | true |
Other | spring-projects | spring-framework | 27738cc20fc6d640b175a9fc7ff36f766fe3a3d2.json | Fix code samples for nested router functions
Closes gh-28603 | src/docs/asciidoc/web/webmvc-functional.adoc | @@ -612,7 +612,7 @@ RouterFunction<ServerResponse> route = route()
.path("/person", builder -> builder // <1>
.GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
.GET(accept(APPLICATION_JSON), handler::listPeople)
- .POST("/person", handler::createPerson))
+ .POST(handler::createPerson))
.build();
... | true |
Other | spring-projects | spring-framework | 74d1be9bd83eb5a3a1b1362e75b0fae511356375.json | Remove obsolete references to @Required
Since the @Required annotation was removed in a previous 6.0 milestone,
this commit removes all remaining references to it.
Closes gh-28600 | spring-web/src/main/java/org/springframework/web/context/support/AnnotationConfigWebApplicationContext.java | @@ -195,7 +195,7 @@ public void scan(String... basePackages) {
* and if class loading fails (i.e. a {@code ClassNotFoundException} is raised),
* assume the value is a package and attempt to scan it for component classes.
* <p>Enables the default set of annotation configuration post processors, such that
- * {... | true |
Other | spring-projects | spring-framework | 74d1be9bd83eb5a3a1b1362e75b0fae511356375.json | Remove obsolete references to @Required
Since the @Required annotation was removed in a previous 6.0 milestone,
this commit removes all remaining references to it.
Closes gh-28600 | src/docs/asciidoc/core/core-beans.adoc | @@ -1168,7 +1168,7 @@ load an entire Spring IoC container instance.
****
Since you can mix constructor-based and setter-based DI, it is a good rule of thumb to
use constructors for mandatory dependencies and setter methods or configuration methods
-for optional dependencies. Note that use of the <<beans-required-ann... | true |
Other | spring-projects | spring-framework | 74d1be9bd83eb5a3a1b1362e75b0fae511356375.json | Remove obsolete references to @Required
Since the @Required annotation was removed in a previous 6.0 milestone,
this commit removes all remaining references to it.
Closes gh-28600 | src/docs/asciidoc/testing.adoc | @@ -1482,7 +1482,6 @@ and can be used anywhere in the Spring Framework.
* `@Named` (jakarta.inject) if JSR-330 is present
* `@PersistenceContext` (jakarta.persistence) if JPA is present
* `@PersistenceUnit` (jakarta.persistence) if JPA is present
-* `@Required`
* `@Transactional` (org.springframework.transaction.an... | true |
Other | spring-projects | spring-framework | b9f85627a17a55270d5ba3d3b6e7b7d267ba8817.json | Improve ResourcePatternHint documentation
Closes gh-28598 | spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java | @@ -83,7 +83,7 @@ public ResourceHints registerPattern(@Nullable Consumer<ResourcePatternHints.Bui
/**
* Register that the resources matching the specified pattern should be
* made available at runtime.
- * @param include a pattern of the resources to include
+ * @param include a pattern of the resources to i... | true |
Other | spring-projects | spring-framework | b9f85627a17a55270d5ba3d3b6e7b7d267ba8817.json | Improve ResourcePatternHint documentation
Closes gh-28598 | spring-core/src/main/java/org/springframework/aot/hint/ResourcePatternHint.java | @@ -22,12 +22,26 @@
/**
* A hint that describes resources that should be made available at runtime.
+ *
* <p>The patterns may be a simple path which has a one-to-one mapping to a
* resource on the classpath, or alternatively may contain the special
- * {@code *} character to indicate a wildcard search.
+ * {@c... | true |
Other | spring-projects | spring-framework | b9f85627a17a55270d5ba3d3b6e7b7d267ba8817.json | Improve ResourcePatternHint documentation
Closes gh-28598 | spring-core/src/main/java/org/springframework/aot/hint/ResourcePatternHints.java | @@ -72,7 +72,7 @@ public static class Builder {
/**
* Includes the resources matching the specified pattern.
* @param reachableType the type that should be reachable for this hint to apply
- * @param includes the include patterns
+ * @param includes the include patterns (see {@link ResourcePatternHint} d... | true |
Other | spring-projects | spring-framework | aa8be28a01051797d36ad4361fc0a46a4b9dd03e.json | Upgrade Java 17 version in CI image | ci/images/get-jdk-url.sh | @@ -9,7 +9,7 @@ case "$1" in
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15.1+2/bellsoft-jdk11.0.15.1+2-linux-amd64.tar.gz"
;;
java17)
- echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.3%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz"
+ echo "https://... | false |
Other | spring-projects | spring-framework | 7eebc48a6e200043aa9d4a0f63b8cb229135338c.json | Upgrade Ubuntu version in CI image | ci/images/ci-image/Dockerfile | @@ -1,4 +1,4 @@
-FROM ubuntu:focal-20220415
+FROM ubuntu:focal-20220531
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh | false |
Other | spring-projects | spring-framework | 5b1bda5c7cc1b28a559ead633121f67eea149acd.json | Add test case on nested RouterFunction attributes | spring-webflux/src/test/java/org/springframework/web/reactive/function/server/AttributesTestVisitor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,43 +16,60 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 5b1bda5c7cc1b28a559ead633121f67eea149acd.json | Add test case on nested RouterFunction attributes | spring-webflux/src/test/java/org/springframework/web/reactive/function/server/RouterFunctionBuilderTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,8 @@
import java.io.IOException... | true |
Other | spring-projects | spring-framework | 5b1bda5c7cc1b28a559ead633121f67eea149acd.json | Add test case on nested RouterFunction attributes | spring-webflux/src/test/java/org/springframework/web/reactive/function/server/RouterFunctionTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,8 @@
package org.springframework.... | true |
Other | spring-projects | spring-framework | 5b1bda5c7cc1b28a559ead633121f67eea149acd.json | Add test case on nested RouterFunction attributes | spring-webmvc/src/test/java/org/springframework/web/servlet/function/AttributesTestVisitor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,42 +16,58 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 5b1bda5c7cc1b28a559ead633121f67eea149acd.json | Add test case on nested RouterFunction attributes | spring-webmvc/src/test/java/org/springframework/web/servlet/function/RouterFunctionBuilderTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,8 @@
package org.springframework.... | true |
Other | spring-projects | spring-framework | 5b1bda5c7cc1b28a559ead633121f67eea149acd.json | Add test case on nested RouterFunction attributes | spring-webmvc/src/test/java/org/springframework/web/servlet/function/RouterFunctionTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,14 +17,19 @@
package org.springframewor... | true |
Other | spring-projects | spring-framework | 16eff6835748be5316520b313e08a8a481b900d1.json | Fix package tangle between o.s.core and o.s.aot
Closes gh-28496 | spring-core/src/main/java/org/springframework/aot/hint/support/CoreAnnotationsRuntimeHintsRegistrar.java | @@ -14,13 +14,14 @@
* limitations under the License.
*/
-package org.springframework.core.annotation;
+package org.springframework.aot.hint.support;
import java.util.stream.Stream;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
-import org.sprin... | true |
Other | spring-projects | spring-framework | 16eff6835748be5316520b313e08a8a481b900d1.json | Fix package tangle between o.s.core and o.s.aot
Closes gh-28496 | spring-core/src/main/java/org/springframework/aot/hint/support/SpringFactoriesLoaderRuntimeHintsRegistrar.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.core.io.support;
+package org.springframework.aot.hint.support;
import java.util.List;
import java.util.Map;
@@ -27,6 +27,7 @@
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHints... | true |
Other | spring-projects | spring-framework | 16eff6835748be5316520b313e08a8a481b900d1.json | Fix package tangle between o.s.core and o.s.aot
Closes gh-28496 | spring-core/src/main/java/org/springframework/core/io/support/SpringFactoriesLoader.java | @@ -327,7 +327,7 @@ public static SpringFactoriesLoader forResourceLocation(@Nullable ClassLoader cl
new SpringFactoriesLoader(classLoader, loadFactoriesResource(resourceClassLoader, resourceLocation)));
}
- static Map<String, List<String>> loadFactoriesResource(ClassLoader classLoader, String resourceLocation... | true |
Other | spring-projects | spring-framework | 16eff6835748be5316520b313e08a8a481b900d1.json | Fix package tangle between o.s.core and o.s.aot
Closes gh-28496 | spring-core/src/main/resources/META-INF/spring/aot.factories | @@ -1,3 +1,3 @@
org.springframework.aot.hint.RuntimeHintsRegistrar=\
-org.springframework.core.annotation.CoreAnnotationsRuntimeHintsRegistrar,\
-org.springframework.core.io.support.SpringFactoriesLoaderRuntimeHintsRegistrar
+org.springframework.aot.hint.support.CoreAnnotationsRuntimeHintsRegistrar,\
+org.springframew... | true |
Other | spring-projects | spring-framework | 16eff6835748be5316520b313e08a8a481b900d1.json | Fix package tangle between o.s.core and o.s.aot
Closes gh-28496 | spring-core/src/test/java/org/springframework/aot/hint/support/CoreAnnotationsRuntimeHintsRegistrarTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.core.annotation;
+package org.springframework.aot.hint.support;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -23,6 +23,8 @@
import org.springframework.aot.hint.RuntimeHints;
import org.spring... | true |
Other | spring-projects | spring-framework | 16eff6835748be5316520b313e08a8a481b900d1.json | Fix package tangle between o.s.core and o.s.aot
Closes gh-28496 | spring-core/src/test/java/org/springframework/aot/hint/support/SpringFactoriesLoaderRuntimeHintsRegistrarTests.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.core.io.support;
+package org.springframework.aot.hint.support;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -25,6 +25,9 @@
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import o... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | build.gradle | @@ -74,6 +74,7 @@ configure(allprojects) { project ->
dependency "com.google.code.gson:gson:2.8.9"
dependency "com.google.protobuf:protobuf-java-util:3.19.3"
dependency "com.googlecode.protobuf-java-format:protobuf-java-format:1.4"
+ dependency "com.thoughtworks.qdox:qdox:2.0.1"
dependency("com.though... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | framework-bom/framework-bom.gradle | @@ -7,7 +7,7 @@ group = "org.springframework"
dependencies {
constraints {
- parent.moduleProjects.sort { "$it.name" }.each {
+ parent.moduleProjects.findAll{ it.name != 'spring-core-test' }.sort{ "$it.name" }.each {
api it
}
} | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | settings.gradle | @@ -18,6 +18,7 @@ include "spring-context"
include "spring-context-indexer"
include "spring-context-support"
include "spring-core"
+include "spring-core-test"
include "spring-expression"
include "spring-instrument"
include "spring-jcl" | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/spring-core-test.gradle | @@ -0,0 +1,11 @@
+description = "Spring Core Test"
+
+dependencies {
+ api(project(":spring-core"))
+ api("org.assertj:assertj-core")
+ api("com.thoughtworks.qdox:qdox")
+}
+
+tasks.withType(PublishToMavenRepository).configureEach {
+ it.enabled = false
+} | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompilationException.java | @@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/Compiled.java | @@ -0,0 +1,170 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicClassFileObject.java | @@ -0,0 +1,62 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicClassLoader.java | @@ -0,0 +1,209 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicJavaFileManager.java | @@ -0,0 +1,70 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicJavaFileObject.java | @@ -0,0 +1,49 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/TestCompiler.java | @@ -0,0 +1,244 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/package-info.java | @@ -0,0 +1,9 @@
+/**
+ * Support classes for compiling and testing generated code.
+ */
+@NonNullApi
+@NonNullFields
+package org.springframework.aot.test.generator.compile;
+
+import org.springframework.lang.NonNullApi;
+import org.springframework.lang.NonNullFields; | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/DynamicFile.java | @@ -0,0 +1,98 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/DynamicFileAssert.java | @@ -0,0 +1,56 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/DynamicFiles.java | @@ -0,0 +1,114 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/MethodAssert.java | @@ -0,0 +1,63 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/ResourceFile.java | @@ -0,0 +1,72 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/ResourceFileAssert.java | @@ -0,0 +1,34 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/ResourceFiles.java | @@ -0,0 +1,144 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFile.java | @@ -0,0 +1,161 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFileAssert.java | @@ -0,0 +1,130 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFiles.java | @@ -0,0 +1,144 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/WritableContent.java | @@ -0,0 +1,39 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/package-info.java | @@ -0,0 +1,11 @@
+/**
+ * Support classes for running assertions on generated files.
+ *
+ * @author Stephane Nicoll
+ */
+@NonNullApi
+@NonNullFields
+package org.springframework.aot.test.generator.file;
+
+import org.springframework.lang.NonNullApi;
+import org.springframework.lang.NonNullFields; | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/com/example/PackagePrivate.java | @@ -0,0 +1,26 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/com/example/PublicInterface.java | @@ -0,0 +1,23 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/CompilationExceptionTests.java | @@ -0,0 +1,38 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/CompiledTests.java | @@ -0,0 +1,194 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/DynamicClassFileObjectTests.java | @@ -0,0 +1,60 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/DynamicJavaFileManagerTests.java | @@ -0,0 +1,101 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/DynamicJavaFileObjectTests.java | @@ -0,0 +1,47 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/TestCompilerTests.java | @@ -0,0 +1,199 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/MethodAssertTests.java | @@ -0,0 +1,73 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/ResourceFileTests.java | @@ -0,0 +1,52 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/ResourceFilesTests.java | @@ -0,0 +1,131 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/SourceFileAssertTests.java | @@ -0,0 +1,128 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/SourceFileTests.java | @@ -0,0 +1,130 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 30cd14d61ddeb6851b4e4b30f8824465975dfe79.json | Add module to support testing of generated code
Closes gh-28120 | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/SourceFilesTests.java | @@ -0,0 +1,135 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-beans/src/main/java/org/springframework/beans/factory/generator/AotContributingBeanFactoryPostProcessor.java | @@ -0,0 +1,49 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassPostProcessor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,17 +18,22 @@
import java.util.ArrayLi... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-context/src/main/java/org/springframework/context/annotation/ImportAwareAotBeanPostProcessor.java | @@ -0,0 +1,75 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-context/src/test/java/org/springframework/context/annotation/ImportAwareAotBeanPostProcessorTests.java | @@ -0,0 +1,90 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-context/src/test/java/org/springframework/context/annotation/ImportAwareBeanFactoryContributionTests.java | @@ -0,0 +1,115 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/ImportAwareConfiguration.java | @@ -0,0 +1,41 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 9ba927215edc7b8f936d6205d8f1c0c10b2202a2.json | Add support for ImportAware callback
This commit adds a way for a BeanFactoryPostProcessor to participate to
AOT optimizations by contributing code that replaces its runtime
behaviour.
ConfigurationClassPostProcessor does implement this new interface and
computes a mapping of the ImportAware configuration classes. Th... | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/ImportConfiguration.java | @@ -0,0 +1,25 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | build.gradle | @@ -74,6 +74,7 @@ configure(allprojects) { project ->
dependency "com.google.code.gson:gson:2.8.9"
dependency "com.google.protobuf:protobuf-java-util:3.19.3"
dependency "com.googlecode.protobuf-java-format:protobuf-java-format:1.4"
+ dependency "com.thoughtworks.qdox:qdox:2.0.1"
dependency("com.though... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | framework-bom/framework-bom.gradle | @@ -7,7 +7,7 @@ group = "org.springframework"
dependencies {
constraints {
- parent.moduleProjects.sort { "$it.name" }.each {
+ parent.moduleProjects.findAll{ it.name != 'spring-core-test' }.sort{ "$it.name" }.each {
api it
}
} | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | settings.gradle | @@ -18,6 +18,7 @@ include "spring-context"
include "spring-context-indexer"
include "spring-context-support"
include "spring-core"
+include "spring-core-test"
include "spring-expression"
include "spring-instrument"
include "spring-jcl" | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/spring-core-test.gradle | @@ -0,0 +1,13 @@
+import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
+
+description = "Spring Core Test"
+
+dependencies {
+ api(project(":spring-core"))
+ api("org.assertj:assertj-core")
+ api("com.thoughtworks.qdox:qdox")
+}
+
+tasks.withType(PublishToMavenRepository).configureEach {
+ it.enabled = fal... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompilationException.java | @@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/Compiled.java | @@ -0,0 +1,169 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicClassFileObject.java | @@ -0,0 +1,63 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicClassLoader.java | @@ -0,0 +1,186 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicJavaFileManager.java | @@ -0,0 +1,71 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/DynamicJavaFileObject.java | @@ -0,0 +1,50 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/TestCompiler.java | @@ -0,0 +1,242 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/DynamicFile.java | @@ -0,0 +1,105 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/DynamicFileAssert.java | @@ -0,0 +1,54 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/DynamicFiles.java | @@ -0,0 +1,114 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/MethodAssert.java | @@ -0,0 +1,63 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/ResourceFile.java | @@ -0,0 +1,72 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/ResourceFileAssert.java | @@ -0,0 +1,34 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/ResourceFiles.java | @@ -0,0 +1,144 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFile.java | @@ -0,0 +1,161 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFileAssert.java | @@ -0,0 +1,128 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFiles.java | @@ -0,0 +1,144 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/main/java/org/springframework/aot/test/generator/file/WritableContent.java | @@ -0,0 +1,39 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/CompilationExceptionTests.java | @@ -0,0 +1,38 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/CompiledTests.java | @@ -0,0 +1,194 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/DynamicClassFileObjectTests.java | @@ -0,0 +1,60 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/DynamicJavaFileManagerTests.java | @@ -0,0 +1,101 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/DynamicJavaFileObjectTests.java | @@ -0,0 +1,47 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/TestCompilerTests.java | @@ -0,0 +1,179 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/MethodAssertTests.java | @@ -0,0 +1,73 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/ResourceFileTests.java | @@ -0,0 +1,52 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/ResourceFilesTests.java | @@ -0,0 +1,131 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | 653dc5951d24fc2c5560cb38314f536a67c3bbbf.json | Add module to support testing of generated code
Add a new unpublished `spring-core-test` module to support testing of
generated code. The module include a `TestCompiler` class which can be
used to dynamically compile generated Java code. It also include an
AssertJ friendly `SourceFile` class which uses qdox to provide... | spring-core-test/src/test/java/org/springframework/aot/test/generator/file/SourceFileAssertTests.java | @@ -0,0 +1,128 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.