|
18 | 18 | import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
|
19 | 19 | import lombok.Getter;
|
20 | 20 | import lombok.extern.slf4j.Slf4j;
|
21 |
| -import org.junit.jupiter.api.Disabled; |
22 | 21 | import org.junit.jupiter.api.Test;
|
23 | 22 | import org.openrewrite.ExecutionContext;
|
24 | 23 | import org.openrewrite.maven.MavenSettings;
|
|
33 | 32 | import org.springframework.sbm.engine.commands.ApplicableRecipeListCommand;
|
34 | 33 | import org.springframework.sbm.engine.commands.ApplyCommand;
|
35 | 34 | import org.springframework.sbm.engine.commands.ScanCommand;
|
36 |
| -import org.springframework.sbm.engine.context.*; |
| 35 | +import org.springframework.sbm.engine.context.ProjectContext; |
| 36 | +import org.springframework.sbm.engine.context.ProjectContextFactory; |
| 37 | +import org.springframework.sbm.engine.context.ProjectContextSerializer; |
| 38 | +import org.springframework.sbm.engine.context.ProjectRootPathResolver; |
37 | 39 | import org.springframework.sbm.engine.git.GitSupport;
|
38 | 40 | import org.springframework.sbm.engine.git.ProjectSyncVerifier;
|
39 | 41 | import org.springframework.sbm.engine.precondition.PreconditionVerifier;
|
|
100 | 102 | * @author Fabian Krüger
|
101 | 103 | */
|
102 | 104 | @Slf4j
|
103 |
| -@Disabled() |
104 | 105 | @SpringBootTest(classes = {
|
105 |
| -// ScanScope.class, |
106 |
| -// ExecutionScope.class, |
| 106 | + ScanScope.class, |
| 107 | + ExecutionScope.class, |
107 | 108 | ScanCommand.class,
|
108 | 109 | ProjectRootPathResolver.class,
|
109 |
| -// PathScanner.class, |
| 110 | + PathScanner.class, |
110 | 111 | SbmApplicationProperties.class,
|
111 | 112 | ResourceHelper.class,
|
112 | 113 | PreconditionVerifier.class,
|
113 | 114 | ProjectContextInitializer.class,
|
114 | 115 | ProjectContextFactory.class,
|
115 | 116 | ProjectResourceWrapperRegistry.class,
|
116 | 117 | ProjectResourceSetHolder.class,
|
117 |
| - ProjectContextHolder.class, |
118 | 118 | JavaRefactoringFactoryImpl.class,
|
119 | 119 | BasePackageCalculator.class,
|
120 | 120 | JavaParserBuilder.class,
|
121 |
| -// RewriteParserConfiguration.class, |
122 |
| -// RewriteProjectParser.class, |
123 |
| -// ResourceParser.class, |
124 |
| -// RewriteJsonParser.class, |
125 |
| -// RewriteXmlParser.class, |
126 |
| -// RewriteYamlParser.class, |
127 |
| -// RewritePropertiesParser.class, |
128 |
| -// RewritePlainTextParser.class, |
129 |
| -// RewriteMavenParser.class, |
| 121 | + RewriteParserConfiguration.class, |
| 122 | + RewriteProjectParser.class, |
| 123 | + ResourceParser.class, |
| 124 | + RewriteJsonParser.class, |
| 125 | + RewriteXmlParser.class, |
| 126 | + RewriteYamlParser.class, |
| 127 | + RewritePropertiesParser.class, |
| 128 | + RewritePlainTextParser.class, |
| 129 | + RewriteMavenParser.class, |
130 | 130 | MavenSettingsInitializer.class,
|
131 | 131 | RewriteMigrationResultMerger.class,
|
| 132 | + RewriteMavenArtifactDownloader.class, |
132 | 133 | JavaProvenanceMarkerFactory.class,
|
133 | 134 | MavenConfigHandler.class,
|
134 | 135 | RewriteSourceFileWrapper.class,
|
|
145 | 146 | ExecutionScopeArchFitTestContext.class,
|
146 | 147 | SbmSupportRewriteConfiguration.class
|
147 | 148 | },
|
148 |
| - properties = { |
149 |
| - "spring.main.allow-bean-definition-overriding=true", // required to provide custom ProjectMetadata |
150 |
| - "debug=true"} |
| 149 | + properties = "spring.main.allow-bean-definition-overriding=true" |
151 | 150 | )
|
152 | 151 | public class ExecutionScopeArchFitTest {
|
153 | 152 | public static final String TEST_RECIPE_NAME = "dummy-recipe";
|
|
0 commit comments