Package org.junithelper.core.config

Examples of org.junithelper.core.config.Configuration


  @Override
  public String getUnifiedVersionTestCaseSourceCode(String currentTestCaseSourceCode, JUnitVersion version) {
    String dest = currentTestCaseSourceCode;
    ClassMeta classMeta = new ClassMetaExtractor(config).extract(currentTestCaseSourceCode);
    Configuration config = ObjectUtil.deepCopy(this.config);
    if (version == JUnitVersion.version3) {
      dest = dest.replaceAll("@Test[\\s\r\n]*public void ", "public void test"
          + config.testMethodName.basicDelimiter);
      String[] splittedArray = config.testCaseClassNameToExtend.split("\\.");
      String testCaseName = splittedArray[splittedArray.length - 1];
View Full Code Here


   * @parameter
   */
  protected String extensionConfigXML = "junithelper-extension.xml";

  protected Configuration loadConfig() {
    Configuration config = new Configuration();
    config.language = language;
    config.outputFileEncoding = outputFileEncoding;
    config.directoryPathOfProductSourceCode = directoryPathOfProductSourceCode;
    config.directoryPathOfTestSourceCode = directoryPathOfTestSourceCode;
    try {
View Full Code Here

  public String getUnifiedVersionTestCaseSourceCode(
      String currentTestCaseSourceCode, JUnitVersion version) {
    String dest = currentTestCaseSourceCode;
    ClassMeta classMeta = new ClassMetaExtractor(config)
        .extract(currentTestCaseSourceCode);
    Configuration config = ObjectUtil.deepCopy(this.config);
    if (version == JUnitVersion.version3) {
      dest = dest.replaceAll("@Test[\\s\r\n]*public void ",
          "public void test" + config.testMethodName.basicDelimiter);
      String[] splittedArray = config.testCaseClassNameToExtend
          .split("\\.");
View Full Code Here

     * @parameter
     */
    protected String testingPatternExplicitComment = "";

    protected Configuration loadConfig() {
        Configuration config = new Configuration();
        config.language = language;
        config.outputFileEncoding = outputFileEncoding;
        config.directoryPathOfProductSourceCode = directoryPathOfProductSourceCode;
        config.directoryPathOfTestSourceCode = directoryPathOfTestSourceCode;
        try {
View Full Code Here

    @Override
    public String getUnifiedVersionTestCaseSourceCode(String currentTestCaseSourceCode, JUnitVersion version) {
        String dest = currentTestCaseSourceCode;
        ClassMeta classMeta = new ClassMetaExtractor(config).extract(currentTestCaseSourceCode);
        Configuration config = ObjectUtil.deepCopy(this.config);
        if (version == JUnitVersion.version3) {
            dest = dest.replaceAll("@Test[\\s\r\n]*public void ", "public void test"
                    + config.testMethodName.basicDelimiter);
            String[] splittedArray = config.testCaseClassNameToExtend.split("\\.");
            String testCaseName = splittedArray[splittedArray.length - 1];
View Full Code Here

TOP

Related Classes of org.junithelper.core.config.Configuration

Copyright © 2018 www.massapicom. 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.