diff --git a/lesson_16/objects/objects_app/build.gradle.kts b/lesson_16/objects/objects_app/build.gradle.kts index c49fe31ff..098cd54df 100644 --- a/lesson_16/objects/objects_app/build.gradle.kts +++ b/lesson_16/objects/objects_app/build.gradle.kts @@ -17,14 +17,12 @@ repositories { dependencies { // Use JUnit Jupiter for testing. - testImplementation("com.codedifferently.instructional:instructional-lib") testImplementation("org.junit.jupiter:junit-jupiter:5.9.1") testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.assertj:assertj-core:3.25.1") testImplementation("at.favre.lib:bcrypt:0.10.2") // This dependency is used by the application. - implementation("com.codedifferently.instructional:instructional-lib") implementation("com.google.guava:guava:31.1-jre") implementation("com.google.code.gson:gson:2.10.1") implementation("org.projectlombok:lombok:1.18.30") diff --git a/lesson_16/objects/objects_app/src/test/java/com/codedifferently/lesson16/Lesson16Test.java b/lesson_16/objects/objects_app/src/test/java/com/codedifferently/lesson16/Lesson16Test.java index c1ec54548..2032de832 100644 --- a/lesson_16/objects/objects_app/src/test/java/com/codedifferently/lesson16/Lesson16Test.java +++ b/lesson_16/objects/objects_app/src/test/java/com/codedifferently/lesson16/Lesson16Test.java @@ -3,11 +3,13 @@ import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; +@SpringBootTest(useMainMethod = SpringBootTest.UseMainMethod.WHEN_AVAILABLE) class Lesson16Test { @Test - void testCanVote() { + void testMain() { assertThat(new Lesson16()).isNotNull(); } } diff --git a/lesson_16/objects/settings.gradle.kts b/lesson_16/objects/settings.gradle.kts index 3e636ca90..124a25863 100644 --- a/lesson_16/objects/settings.gradle.kts +++ b/lesson_16/objects/settings.gradle.kts @@ -7,7 +7,5 @@ * in the user manual at https://docs.gradle.org/8.0.2/userguide/multi_project_builds.html */ -includeBuild("../../lib/java/codedifferently-instructional") - rootProject.name = "lesson_16" include("objects_app")