File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
src/test/java/com/codedifferently/lesson16 Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,12 @@ repositories {
17
17
18
18
dependencies {
19
19
// Use JUnit Jupiter for testing.
20
- testImplementation(" com.codedifferently.instructional:instructional-lib" )
21
20
testImplementation(" org.junit.jupiter:junit-jupiter:5.9.1" )
22
21
testImplementation(" org.springframework.boot:spring-boot-starter-test" )
23
22
testImplementation(" org.assertj:assertj-core:3.25.1" )
24
23
testImplementation(" at.favre.lib:bcrypt:0.10.2" )
25
24
26
25
// This dependency is used by the application.
27
- implementation(" com.codedifferently.instructional:instructional-lib" )
28
26
implementation(" com.google.guava:guava:31.1-jre" )
29
27
implementation(" com.google.code.gson:gson:2.10.1" )
30
28
implementation(" org.projectlombok:lombok:1.18.30" )
Original file line number Diff line number Diff line change 3
3
import static org .assertj .core .api .Assertions .assertThat ;
4
4
5
5
import org .junit .jupiter .api .Test ;
6
+ import org .springframework .boot .test .context .SpringBootTest ;
6
7
8
+ @ SpringBootTest (useMainMethod = SpringBootTest .UseMainMethod .WHEN_AVAILABLE )
7
9
class Lesson16Test {
8
10
9
11
@ Test
10
- void testCanVote () {
12
+ void testMain () {
11
13
assertThat (new Lesson16 ()).isNotNull ();
12
14
}
13
15
}
Original file line number Diff line number Diff line change 7
7
* in the user manual at https://docs.gradle.org/8.0.2/userguide/multi_project_builds.html
8
8
*/
9
9
10
- includeBuild(" ../../lib/java/codedifferently-instructional" )
11
-
12
10
rootProject.name = " lesson_16"
13
11
include(" objects_app" )
You can’t perform that action at this time.
0 commit comments