From the course: Gradle for Java-Based Applications and Libraries
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Fix a failed test suite
From the course: Gradle for Java-Based Applications and Libraries
Solution: Fix a failed test suite
(upbeat music) - [Instructor] Let's have a look at the existing project code first. You can see here that it's the build.gradle file. Nothing too surprising. We apply the java plugin, version is 1.0.0. We are building this with Java 11 and repositories has already been set up to point to mavenCentral. So once we declare dependencies, we would be able to resolve it from there. If we look at the production source code, not too complicated. We have a class called Messenger and within this class, we have a single method. It takes in the word and the language and then spits out a string that concatenates the given word and adds a prefix, depending on the language. So for example, for English, the prefix would be Hello and then the word. For Spanish, it would be Hola. So that is pretty straightforward. Having a look at the test case, you can see that we already have a bunch of test cases in place. So we'll not…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.