1. Micha Kops
  2. junit-rule-chaining-samples

Commits

Micha Kops  committed e2efba7

test scope added and annotations optimized.

  • Participants
  • Parent commits 07c63bc
  • Branches default

Comments (0)

Files changed (3)

File pom.xml

View file
  • Ignore whitespace
   		<groupId>junit</groupId>
   		<artifactId>junit</artifactId>
   		<version>4.10</version>
+  		<scope>test</scope>
   	</dependency>
   </dependencies>
 </project>

File src/test/java/com/hascode/tutorial/ConsoleOut.java

View file
  • Ignore whitespace
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ ElementType.METHOD })
 public @interface ConsoleOut {
-	boolean value() default true;
 }

File src/test/java/com/hascode/tutorial/ConsoleOutRule.java

View file
  • Ignore whitespace
 		System.out.println("rule applied. note: " + note);
 		return base;
 	}
-
 }