Skip to content
Success

Console Output

Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
[INFO] ------------------------------------------------------------------------
[INFO] Building Aptina Unit
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target
[INFO] [resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [compiler:compile]
[INFO] Compiling 6 source files to /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/classes
[INFO] [resources:testResources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:testCompile]
[INFO] Compiling 12 source files to /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.seasar.aptina.unit.TestProcessor
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.seasar.aptina.unit.TestDiagnosticsProcessor
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.seasar.aptina.unit.InMemoryJavaFileObjectTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running org.seasar.aptina.unit.PrintingProcessorTest
/**
 *  コンパイル対象の {@link Element} 階層をコンソールに出力する {@link Processor} です.
 *  <p>
 *  {@link AptinaTestCase} のサブクラスで,
 *  {@link AptinaTestCase#addProcessor(Processor...)} にこのクラスを加えることで, コンパイル対象の
 *  {@link Element} 階層を確認することができます.
 *  </p>
 *  
 *  <p>
 *  次のサンプルは, {@code src/test/java} フォルダにある {@code TestSource.java} をコンパイルし,
 *  {@code PrintingProcessor} で {@link Element} 階層をコンソールに出力するテストクラスです.
 *  </p>
 *  
 *  <pre>
 *  public class XxxProcessorTest extends AptinaTestCase {
 * 
 *      &#x40;Override
 *      protected void setUp() throws Exception {
 *          super.setUp();
 *          // ソースパスを追加
 *          addSourcePath("src/test/java");
 *      }
 * 
 *      public void test() throws Exception {
 *          // PrintingProcessor を生成して追加
 *          addProcessor(new PrintingProcessor());
 * 
 *          // コンパイル対象を追加
 *          addCompilationUnit(TestSource.class);
 * 
 *          // コンパイル実行
 *          compile();
 *      }
 *  }
 *  </pre>
 *  
 *  @author koichik
 */
CLASS org.seasar.aptina.unit.PrintingProcessor {
  /**
   *  {@link Element} の階層をトラバースしてコンソールに出力する {@link ElementVisitor} です.
   *  
   *  @author koichik
   */
  CLASS org.seasar.aptina.unit.PrintingProcessor.PrintingVisitor {
    CONSTRUCTOR PrintingVisitor() {
    }
    METHOD visitPackage(javax.lang.model.element.PackageElement,java.lang.Void) {
      PARAMETER e {
      }
      PARAMETER p {
      }
    }
    METHOD visitType(javax.lang.model.element.TypeElement,java.lang.Void) {
      PARAMETER e {
      }
      PARAMETER p {
      }
    }
    METHOD visitVariable(javax.lang.model.element.VariableElement,java.lang.Void) {
      PARAMETER e {
      }
      PARAMETER p {
      }
    }
    METHOD visitExecutable(javax.lang.model.element.ExecutableElement,java.lang.Void) {
      PARAMETER e {
      }
      PARAMETER p {
      }
    }
    METHOD visitTypeParameter(javax.lang.model.element.TypeParameterElement,java.lang.Void) {
      PARAMETER e {
      }
      PARAMETER p {
      }
    }
    METHOD enter(javax.lang.model.element.Element) {
      PARAMETER e {
      }
    }
    METHOD leave(javax.lang.model.element.Element) {
      PARAMETER e {
      }
    }
  }
  /**
   * インデント用の空白 (100 文字) 
   */
  FIELD SPACES {
  }
  /**
   * 出力先 
   */
  FIELD out {
  }
  /**
   * 階層の深さ 
   */
  FIELD depth {
  }
  /**
   *  インスタンスを構築します.
   */
  CONSTRUCTOR PrintingProcessor() {
  }
  /**
   *  インスタンスを構築します.
   *  
   *  @param out
   *             出力先
   */
  CONSTRUCTOR PrintingProcessor(java.io.PrintWriter) {
    PARAMETER out {
    }
  }
  METHOD process(java.util.Set<? extends javax.lang.model.element.TypeElement>,javax.annotation.processing.RoundEnvironment) {
    PARAMETER annotations {
    }
    PARAMETER roundEnv {
    }
  }
  /**
   *  {@link Element}が開始されたことを出力します.
   *  
   *  @param e
   *             {@link Element}
   */
  METHOD printEnterMessage(javax.lang.model.element.Element) {
    PARAMETER e {
    }
  }
  /**
   *  {@link Element}が終了したことを出力します.
   *  
   *  @param e
   *             {@link Element}
   */
  METHOD printLeaveMessage(javax.lang.model.element.Element) {
    PARAMETER e {
    }
  }
  /**
   *  インデントを出力します.
   *  
   *  @param depth
   *             インデントの深さ
   */
  METHOD indent(int) {
    PARAMETER depth {
    }
  }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.408 sec
Running org.seasar.aptina.commons.util.ElementUtilsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.089 sec
Running org.seasar.aptina.unit.AptinaTestCaseTest
注:hoge
注:hoge
注:hoge
src/test/java/org/seasar/aptina/unit/TestSource.java:26: foo
src/test/java/org/seasar/aptina/unit/TestSource.java:26: 警告:bar
注:hoge
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.163 sec
Running org.seasar.aptina.commons.util.TypeMirrorUtilsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.seasar.aptina.unit.TestingJavaFileManagerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec

Results :

Tests run: 18, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] テスト結果の記録
[INFO] [jar:jar]
[INFO] Building jar: /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/aptina-unit-1.0.0.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: source-jar}]
[INFO] Building jar: /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/aptina-unit-1.0.0-sources.jar
[INFO] [shade:shade {execution: default}]
[INFO] Including org.seasar.aptina:aptina-commons:jar:1.0.0 in the shaded jar.
[INFO] Excluding junit:junit:jar:3.8.2 from the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/aptina-unit-1.0.0.jar with /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/aptina-unit-1.0.0-shaded.jar
[INFO] [install:install]
[INFO] Installing /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/aptina-unit-1.0.0.jar to /home/services/jenkins/.m2/repository/org/seasar/aptina/aptina-unit/1.0.0/aptina-unit-1.0.0.jar
[INFO] Installing /home/services/jenkins/jobs/aptina/workspace/aptina/aptina-unit/target/aptina-unit-1.0.0-sources.jar to /home/services/jenkins/.m2/repository/org/seasar/aptina/aptina-unit/1.0.0/aptina-unit-1.0.0-sources.jar
ERROR: Could not find local repository for 2.0.11