@Test public void createsClasses() { BapiMapping bapiMapping = mapper.mapBapi(BapiTest.class); Map<String, String> classes = formatter.createClasses(bapiMapping, "org.hibersap.generated.test"); assertNotNull(classes); assertEquals(4, classes.size()); assertTrue(classes.containsKey("BapiTest")); assertTrue(classes.containsKey("TestStructure")); assertTrue(classes.containsKey("TestTable")); assertTrue(classes.containsKey("TestSubStructure")); }
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);  }