From 907d773cd92f1adc8494cefaebb6fe36fd490d7c Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Thu, 2 May 2024 18:38:57 -0300 Subject: [PATCH] drop testutil customization --- generators/server/generator.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/generators/server/generator.js b/generators/server/generator.js index 44ecaed..ffadab2 100644 --- a/generators/server/generator.js +++ b/generators/server/generator.js @@ -445,28 +445,6 @@ class `, ); }, - testUtil({ application: { srcTestJava, packageFolder, packageName, reactive } }) { - if (reactive) return; - this.editFile(`${srcTestJava}${packageFolder}/web/rest/TestUtil.java`, { assertModified: true }, contents => - contents.includes('JacksonNativeConfiguration') - ? contents - : contents - .replace( - 'import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;', - `import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; - import ${packageName}.config.JacksonNativeConfiguration; - import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;`, - ) - .replace( - 'mapper.registerModule(new JavaTimeModule());', - `mapper.registerModule(new JavaTimeModule()); - Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder(); - new JacksonNativeConfiguration().customizeJackson().customize(builder); - builder.configure(mapper);`, - ), - ); - }, - // workaround for arch error in backend:unit:test caused by gradle's org.graalvm.buildtools.native plugin technicalStructureTest({ application: { buildToolGradle, srcTestJava, packageFolder } }) { if (!buildToolGradle) return;