diff --git a/src/main/java/com/booleanuk/core/Exercise.java b/src/main/java/com/booleanuk/core/Exercise.java index e928ba0..ea69303 100644 --- a/src/main/java/com/booleanuk/core/Exercise.java +++ b/src/main/java/com/booleanuk/core/Exercise.java @@ -11,30 +11,27 @@ public class Exercise extends ExerciseBase { // Its name can be anything as long as that name isn't already in use. public int answerToTheUltimateQuestion = 42; - // 1. Create an integer member named age with a value of 32 - + public int age = 32; // 2. Create a String member named firstName with a value of "Jane" - + public String firstName = "Jane"; // 3. Create a boolean member named isProgrammer with a value of true - + boolean isProgrammer = true; // 4. Change the value below so that the tests pass. Check the README.md file for instructions on // running and reading tests - public int firstNumber = 109; - + public int firstNumber = 9182; // 5. Change the value below so that the tests pass - public String firstString = "Ruby is to Python what car is to carpet."; - + public String firstString = "Java is to Javascript what car is to carpet."; // 6. Change the visibility below so that the tests pass - private boolean isVisible = true; -} + public boolean isVisible = true; +} \ No newline at end of file diff --git a/src/test/java/com/booleanuk/core/ExerciseTest.java b/src/test/java/com/booleanuk/core/ExerciseTest.java index 4c4c8cf..fd3a0f7 100644 --- a/src/test/java/com/booleanuk/core/ExerciseTest.java +++ b/src/test/java/com/booleanuk/core/ExerciseTest.java @@ -5,7 +5,7 @@ import java.lang.reflect.Field; -class ExerciseTest { +public class ExerciseTest { Exercise exercise; Field[] fields; @@ -13,7 +13,6 @@ public ExerciseTest() { this.exercise = new Exercise(); fields = this.exercise.getClass().getDeclaredFields(); } - @Test public void shouldAnswerTheUltimateQuestion() { Assertions.assertEquals(42, this.exercise.answerToTheUltimateQuestion);