@Test public void testStringBetweenDots() { MsModelUtils controllerA = new MsModelUtils(); String str = "testing\\.byCorrectWay\\.OfDATA"; assertEquals(1, controllerA.stringBetweenDots(str)); str = "testing\byWrongtWay.\\OfDATA"; MsModelUtils controllerB = new MsModelUtils(); assertEquals(0, controllerB.stringBetweenDots(str)); }
public int stringBetweenDots(String str) { String stringToSearch = str; String[] ss = stringToSearch.split("\\."); if (ss != null) { int len = ss.length; if (len > 2) { uniqueKeys.add(ss[2]); } } return uniqueKeys.size(); }
MsModelUtils { public int stringBetweenDots(String str) { String stringToSearch = str; String[] ss = stringToSearch.split("\\."); if (ss != null) { int len = ss.length; if (len > 2) { uniqueKeys.add(ss[2]); } } return uniqueKeys.size(); } }
MsModelUtils { public int stringBetweenDots(String str) { String stringToSearch = str; String[] ss = stringToSearch.split("\\."); if (ss != null) { int len = ss.length; if (len > 2) { uniqueKeys.add(ss[2]); } } return uniqueKeys.size(); } MsModelUtils();  MsModelUtils(CommonClassDao commonClassDao);  MsModelUtils(String onap, String policy); }
MsModelUtils { public int stringBetweenDots(String str) { String stringToSearch = str; String[] ss = stringToSearch.split("\\."); if (ss != null) { int len = ss.length; if (len > 2) { uniqueKeys.add(ss[2]); } } return uniqueKeys.size(); } MsModelUtils();  MsModelUtils(CommonClassDao commonClassDao);  MsModelUtils(String onap, String policy); Map<String, MsAttributeObject> processEpackage(String file, ModelType model); void getAttributes(String className, String dependency, EPackage root); String checkDefultValue(String defultValue); String checkRequiredPattern(int upper, int lower); JSONObject buildJavaObject(Map<String, String> map); Map<String, String> getRefAttributeList(EPackage root, String className, String superClass); boolean isRequiredAttribute(EObject obj, String className); Map<String, String> getAttributeList(EPackage root, String className, String superClass); String arrayCheck(int upperBound); List<String> getDependencyList(EClassifier eclassifier); Map<String, String> buildSubList(Map<String, String> subClassAttributes,
                    Map<String, MsAttributeObject> classMap, String className); Map<String, Map<String, String>> recursiveReference(Map<String, MsAttributeObject> classMap,
                    String className); String createJson(Map<String, MsAttributeObject> classMap, String className); Map<String, String> getRefclass(Map<String, MsAttributeObject> classMap, String className); String createSubAttributes(List<String> dependency, Map<String, MsAttributeObject> classMap,
                    String modelName); List<String> getFullDependencyList(List<String> dependency, Map<String, MsAttributeObject> classMap); String parseTosca(String fileName); Map<String, String> load(String fileName); int stringBetweenDots(String str); void stringBetweenDotsForDataFields(String str); }
MsModelUtils { public int stringBetweenDots(String str) { String stringToSearch = str; String[] ss = stringToSearch.split("\\."); if (ss != null) { int len = ss.length; if (len > 2) { uniqueKeys.add(ss[2]); } } return uniqueKeys.size(); } MsModelUtils();  MsModelUtils(CommonClassDao commonClassDao);  MsModelUtils(String onap, String policy); Map<String, MsAttributeObject> processEpackage(String file, ModelType model); void getAttributes(String className, String dependency, EPackage root); String checkDefultValue(String defultValue); String checkRequiredPattern(int upper, int lower); JSONObject buildJavaObject(Map<String, String> map); Map<String, String> getRefAttributeList(EPackage root, String className, String superClass); boolean isRequiredAttribute(EObject obj, String className); Map<String, String> getAttributeList(EPackage root, String className, String superClass); String arrayCheck(int upperBound); List<String> getDependencyList(EClassifier eclassifier); Map<String, String> buildSubList(Map<String, String> subClassAttributes,
                    Map<String, MsAttributeObject> classMap, String className); Map<String, Map<String, String>> recursiveReference(Map<String, MsAttributeObject> classMap,
                    String className); String createJson(Map<String, MsAttributeObject> classMap, String className); Map<String, String> getRefclass(Map<String, MsAttributeObject> classMap, String className); String createSubAttributes(List<String> dependency, Map<String, MsAttributeObject> classMap,
                    String modelName); List<String> getFullDependencyList(List<String> dependency, Map<String, MsAttributeObject> classMap); String parseTosca(String fileName); Map<String, String> load(String fileName); int stringBetweenDots(String str); void stringBetweenDotsForDataFields(String str);  }