@Test public void createsClassWithChangingParameter() { BapiMapping bapiMapping = mapper.mapBapi(BapiTest.class); Map<String, String> classes = formatter.createClasses(bapiMapping, "org.hibersap.generated.test"); String bapiTestSource = classes.get("BapiTest"); assertThat(bapiTestSource).contains("@org.hibersap.annotations.Changing\n" + "\t@org.hibersap.annotations.Parameter(\"TEST_CHANGING\")\n" + "\tprivate java.util.Date date;"); }
public Map<String, String> createClasses(final BapiMapping mapping, final String packagePath) { checkPackagePath(packagePath); Map<String, String> result = new HashMap<>(); String bapiClassName = BapiFormatHelper.getCamelCaseBig(mapping.getBapiName()); String bapiClass = formatBapiClass(mapping, packagePath); result.put(bapiClassName, bapiClass); result.putAll(formatStructureClasses(mapping, packagePath)); return result; }
BapiClassFormatter { public Map<String, String> createClasses(final BapiMapping mapping, final String packagePath) { checkPackagePath(packagePath); Map<String, String> result = new HashMap<>(); String bapiClassName = BapiFormatHelper.getCamelCaseBig(mapping.getBapiName()); String bapiClass = formatBapiClass(mapping, packagePath); result.put(bapiClassName, bapiClass); result.putAll(formatStructureClasses(mapping, packagePath)); return result; } }
BapiClassFormatter { public Map<String, String> createClasses(final BapiMapping mapping, final String packagePath) { checkPackagePath(packagePath); Map<String, String> result = new HashMap<>(); String bapiClassName = BapiFormatHelper.getCamelCaseBig(mapping.getBapiName()); String bapiClass = formatBapiClass(mapping, packagePath); result.put(bapiClassName, bapiClass); result.putAll(formatStructureClasses(mapping, packagePath)); return result; }  }
BapiClassFormatter { public Map<String, String> createClasses(final BapiMapping mapping, final String packagePath) { checkPackagePath(packagePath); Map<String, String> result = new HashMap<>(); String bapiClassName = BapiFormatHelper.getCamelCaseBig(mapping.getBapiName()); String bapiClass = formatBapiClass(mapping, packagePath); result.put(bapiClassName, bapiClass); result.putAll(formatStructureClasses(mapping, packagePath)); return result; }  Map<String, String> createClasses(final BapiMapping mapping, final String packagePath); }
BapiClassFormatter { public Map<String, String> createClasses(final BapiMapping mapping, final String packagePath) { checkPackagePath(packagePath); Map<String, String> result = new HashMap<>(); String bapiClassName = BapiFormatHelper.getCamelCaseBig(mapping.getBapiName()); String bapiClass = formatBapiClass(mapping, packagePath); result.put(bapiClassName, bapiClass); result.putAll(formatStructureClasses(mapping, packagePath)); return result; }  Map<String, String> createClasses(final BapiMapping mapping, final String packagePath);  }