File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1313import com .sap .ai .sdk .prompt .registry .model .PromptTemplateSubstitutionResponse ;
1414import com .sap .ai .sdk .prompt .registry .model .SingleChatTemplate ;
1515import java .io .IOException ;
16+ import java .nio .file .Files ;
1617import java .util .List ;
1718import org .junit .jupiter .api .Test ;
1819import org .springframework .core .io .ClassPathResource ;
@@ -69,6 +70,7 @@ void importExportTemplate() throws IOException {
6970 final var resource = new ClassPathResource ("prompt-template.yaml" );
7071 final JsonNode expectedYaml = YAML_MAPPER .readTree (resource .getContentAsString (UTF_8 ));
7172 assertThat (YAML_MAPPER .readTree (exportedTemplate )).isEqualTo (expectedYaml );
73+ Files .deleteIfExists (exportedTemplate .toPath ());
7274
7375 // cleanup
7476 List <PromptTemplateDeleteResponse > deletedTemplate = controller .deleteTemplate ();
You can’t perform that action at this time.
0 commit comments