Examples of toAvailableInMethodName()


Examples of org.junithelper.core.extractor.TypeNameConverter.toAvailableInMethodName()

    @Test
    public void toAvailableInMethodName_A$String_StringIsNull() throws Exception {
        TypeNameConverter target = new TypeNameConverter(config);
        String typeName = null;
        try {
            target.toAvailableInMethodName(typeName);
            fail();
        } catch (JUnitHelperCoreException e) {
        }
    }
View Full Code Here

Examples of org.junithelper.core.extractor.TypeNameConverter.toAvailableInMethodName()

    @Test
    public void toAvailableInMethodName_A$String_StringIsEmpty() throws Exception {
        TypeNameConverter target = new TypeNameConverter(config);
        String typeName = "";
        try {
            target.toAvailableInMethodName(typeName);
            fail();
        } catch (JUnitHelperCoreException e) {
        }
    }
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

          .replaceAll(RegExp.Generics, StringValue.Empty)
          .split("\\s+")[0].trim();
      if (argTypeName != null && !"".equals(argTypeName)) {
        argTypeMeta.name = typeNameConverter.toCompilableType(
            argTypeName, argTypeMeta.generics, classMeta.importedList, classMeta.packageName);
        argTypeMeta.nameInMethodName = typeNameConverter.toAvailableInMethodName(argTypeMeta.name);
        extractedMetaList.add(argTypeMeta);
      }
      // -----------------
      // arg name string
      Matcher argNameMatcher = RegExp.PatternObject.MethodArg_Group.matcher(argTypeFull);
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

          while (mat.find()) {
            arrayPart += "[]";
          }
          argName = argName.replaceAll("\\[\\s*\\]", StringValue.Empty);
          argTypeMeta.name = argTypeMeta.name + arrayPart;
          argTypeMeta.nameInMethodName = typeNameConverter.toAvailableInMethodName(argTypeMeta.name);
        }
        extractedNameList.add(argName);
      } else if (extractedMetaList.size() > 0) {
        extractedNameList.add("arg" + i);
      }
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

      }
      String returnTypeName = returnTypeFull.replace(RegExp.Generics, StringValue.Empty);
      if (!returnTypeName.equals("void")) {
        meta.returnType.name = typeNameConverter.toCompilableType(returnTypeName,
            meta.returnType.generics, classMeta.importedList, classMeta.packageName).trim();
        meta.returnType.nameInMethodName = typeNameConverter.toAvailableInMethodName(meta.returnType.name);
      }
      // -----------------
      // method name
      meta.name = matcherGrouping.group(2);
      // -----------------
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

            StringValue.Empty).split(StringValue.Comma);
        for (String exception : exceptions) {
          exception = exception.trim();
          ExceptionMeta exceptionMeta = new ExceptionMeta();
          exceptionMeta.name = exception;
          exceptionMeta.nameInMethodName = typeNameConverter.toAvailableInMethodName(exception);
          meta.throwsExceptions.add(exceptionMeta);
        }
      }
      dest.add(meta);
    }
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

          argTypeMeta.name = typeNameConverter.toCompilableType(
              argTypeName,
              argTypeMeta.generics,
              classMeta.importedList,
              classMeta.packageName);
          argTypeMeta.nameInMethodName = typeNameConverter.toAvailableInMethodName(argTypeMeta.name);
          meta.argTypes.add(argTypeMeta);
          Matcher nameMatcher = RegExp.PatternObject.MethodArg_Group.matcher(argTypeFull);
          if (nameMatcher.find()) {
            String argName = nameMatcher.group(1);
            if (argName.matches(".+\\[\\s*\\]")) {
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

                arrayPart += "[]";
              }
              argName = argName.replaceAll("\\[\\s*\\]", StringValue.Empty);
              argTypeMeta.name = argTypeMeta.name + arrayPart;
              argTypeMeta.nameInMethodName
                  = typeNameConverter.toAvailableInMethodName(argTypeMeta.name);
            }
            meta.argNames.add(argName);
          } else {
            meta.argNames.add("constructorArg" + i);
          }
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

          .replaceAll(RegExp.Generics, StringValue.Empty)
          .split("\\s+")[0].trim();
      if (argTypeName != null && !"".equals(argTypeName)) {
        argTypeMeta.name = typeNameConverter.toCompilableType(
            argTypeName, argTypeMeta.generics, classMeta.importedList, classMeta.packageName);
        argTypeMeta.nameInMethodName = typeNameConverter.toAvailableInMethodName(argTypeMeta.name);
        extractedMetaList.add(argTypeMeta);
      }
      // -----------------
      // arg name string
      Matcher argNameMatcher = RegExp.PatternObject.MethodArg_Group.matcher(argTypeFull);
View Full Code Here

Examples of org.junithelper.core.parser.convert.TypeNameConverter.toAvailableInMethodName()

          while (mat.find()) {
            arrayPart += "[]";
          }
          argName = argName.replaceAll("\\[\\s*\\]", StringValue.Empty);
          argTypeMeta.name = argTypeMeta.name + arrayPart;
          argTypeMeta.nameInMethodName = typeNameConverter.toAvailableInMethodName(argTypeMeta.name);
        }
        extractedNameList.add(argName);
      } else if (extractedMetaList.size() > 0) {
        extractedNameList.add("arg" + i);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.