Skip to content

Commit a79258b

Browse files
committed
test: remove unused capturedOutPaths from RecordingTemplateRenderer
1 parent 4445126 commit a79258b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/test/java/io/github/blueprintplatform/codegen/adapter/out/profile/springboot/maven/java/sample/SampleCodeAdapterTest.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.github.blueprintplatform.codegen.domain.model.value.tech.stack.TechStack;
2828
import io.github.blueprintplatform.codegen.domain.port.out.artifact.GeneratedResource;
2929
import io.github.blueprintplatform.codegen.domain.port.out.artifact.GeneratedTextResource;
30+
import io.github.blueprintplatform.codegen.testsupport.templating.NoopTemplateRenderer;
3031
import java.nio.charset.StandardCharsets;
3132
import java.nio.file.Path;
3233
import java.util.ArrayList;
@@ -160,26 +161,15 @@ void generate_hexagonalBasic_shouldGenerateSampleSources() {
160161
.allMatch(model -> BASE_PACKAGE.equals(model.get("projectPackageName")));
161162
}
162163

163-
private static final class NoopTemplateRenderer implements TemplateRenderer {
164-
165-
@Override
166-
public GeneratedResource renderUtf8(
167-
Path outPath, String templateName, Map<String, Object> model) {
168-
return new GeneratedTextResource(outPath, "", StandardCharsets.UTF_8);
169-
}
170-
}
171-
172164
private static final class RecordingTemplateRenderer implements TemplateRenderer {
173165

174-
private final List<Path> capturedOutPaths = new ArrayList<>();
175166
private final List<String> capturedTemplateNames = new ArrayList<>();
176167
private final List<Map<String, Object>> capturedModels = new ArrayList<>();
177168

178169
@Override
179170
public GeneratedResource renderUtf8(
180171
Path outPath, String templateName, Map<String, Object> model) {
181172

182-
capturedOutPaths.add(outPath);
183173
capturedTemplateNames.add(templateName);
184174
capturedModels.add(model);
185175

0 commit comments

Comments
 (0)