Skip to content

Commit 3a50761

Browse files
committed
Update hello-exercise
* rename test, so it corresponds to the class name * update javadoc to make the task clearer
1 parent 23d1f4a commit 3a50761

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

1-0-java-basics/1-5-0-hello-annotations/src/main/java/com/bobocode/basics/HelloAnnotationsExercise.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package com.bobocode.basics;
22

33
/**
4-
* {@link HelloAnnotationsExercise} is an exercise class that should be annotation with appropriate @{@link Exercise}
5-
* annotation. With that annotation it should specify exercise name "hello-annotation-basic" and the default complexity
6-
* level.
4+
* {@link HelloAnnotationsExercise} is an exercise class that is marked with be corresponding @{@link Exercise}
5+
* annotation. The annotation value specifies exercise name "hello-annotation-basic". It does not specify any custom
6+
* complexity level, because this exercise is a basic, which correspond to the default value provided by annotation.
77
* <p>
88
* todo: Create an annotation @{@link Exercise}.
9+
* todo: Set its retention policy so it is visible at runtime
10+
* todo: Set its target so it can only be applied to a class
911
* todo: Add String value that will store exercise name
1012
* todo: Add complexityLevel with a default {@link Level} basic
1113
*

1-0-java-basics/1-5-0-hello-annotations/src/test/java/com/bobocode/basics/HelloAnnotationsTest.java renamed to 1-0-java-basics/1-5-0-hello-annotations/src/test/java/com/bobocode/basics/HelloAnnotationsExerciseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import static org.assertj.core.api.AssertionsForClassTypes.assertThatCode;
1111

1212
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
13-
public class HelloAnnotationsTest {
13+
public class HelloAnnotationsExerciseTest {
1414

1515
@Test
1616
@Order(1)

0 commit comments

Comments
 (0)