4.0.0 MavenIntegrationTest MavenIntegrationTest 0.0.1-SNAPSHOT UTF-8 UTF-8 org.codehaus.mojo build-helper-maven-plugin 1.9.1 add-it-source pre-integration-test add-test-source src/it/java org.apache.maven.plugins maven-resources-plugin 2.7 add-it-resources pre-integration-test copy-resources ${project.build.directory}/it-classes src/it/resources org.apache.maven.plugins maven-compiler-plugin 3.2 1.7 1.7 compile-integration-test pre-integration-test testCompile **/*IT.java ${project.build.directory}/it-classes org.apache.maven.plugins maven-surefire-plugin 2.15 org.apache.maven.plugins maven-failsafe-plugin 2.15 src/it/java ${project.build.directory}/it-classes integration-test integration-test verify verify junit junit 4.11 org.apache.maven.surefire surefire-junit47 2.12
2015년 1월 20일 화요일
maven build 시 integration test 추가하기
2015년 1월 6일 화요일
클래스 이름으로 instance 생성하기
String className = "mocktest.Calculator"; Class<?> myClass = Class.forName(className); Constructor constructor = myClass.getConstructor(); Calculator cal = (Calculator) constructor.newInstance(); System.out.println(cal.add(1, 1));
피드 구독하기:
글 (Atom)