Skip to content

Commit 57e8ae3

Browse files
authored
tests: increase coverage (#507)
1 parent 2e32759 commit 57e8ae3

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lesson_16/objects/objects_app/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ repositories {
1717

1818
dependencies {
1919
// Use JUnit Jupiter for testing.
20-
testImplementation("com.codedifferently.instructional:instructional-lib")
2120
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
2221
testImplementation("org.springframework.boot:spring-boot-starter-test")
2322
testImplementation("org.assertj:assertj-core:3.25.1")
2423
testImplementation("at.favre.lib:bcrypt:0.10.2")
2524

2625
// This dependency is used by the application.
27-
implementation("com.codedifferently.instructional:instructional-lib")
2826
implementation("com.google.guava:guava:31.1-jre")
2927
implementation("com.google.code.gson:gson:2.10.1")
3028
implementation("org.projectlombok:lombok:1.18.30")

lesson_16/objects/objects_app/src/test/java/com/codedifferently/lesson16/Lesson16Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
import static org.assertj.core.api.Assertions.assertThat;
44

55
import org.junit.jupiter.api.Test;
6+
import org.springframework.boot.test.context.SpringBootTest;
67

8+
@SpringBootTest(useMainMethod = SpringBootTest.UseMainMethod.WHEN_AVAILABLE)
79
class Lesson16Test {
810

911
@Test
10-
void testCanVote() {
12+
void testMain() {
1113
assertThat(new Lesson16()).isNotNull();
1214
}
1315
}

lesson_16/objects/settings.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@
77
* in the user manual at https://docs.gradle.org/8.0.2/userguide/multi_project_builds.html
88
*/
99

10-
includeBuild("../../lib/java/codedifferently-instructional")
11-
1210
rootProject.name = "lesson_16"
1311
include("objects_app")

0 commit comments

Comments
 (0)