docs: update dependency injection

This commit is contained in:
Ilkka Seppälä
2024-04-08 21:20:50 +03:00
parent c1466eb66e
commit 0b850aa764
6 changed files with 68 additions and 38 deletions
@@ -58,7 +58,7 @@ class AdvancedSorceressTest {
* her through the setter's parameter
*/
@Test
void testSmokeEveryThing() throws Exception {
void testSmokeEveryThing() {
List<Tobacco> tobaccos = List.of(
new OldTobyTobacco(),
@@ -57,7 +57,7 @@ class AdvancedWizardTest {
* through the constructor parameter
*/
@Test
void testSmokeEveryThing() throws Exception {
void testSmokeEveryThing() {
List<Tobacco> tobaccos = List.of(
new OldTobyTobacco(),
@@ -35,7 +35,6 @@ class AppTest {
/**
* Issue: Add at least one assertion to this test case.
*
* Solution: Inserted assertion to check whether the execution of the main method in {@link App#main(String[])}
* throws an exception.
*/
@@ -58,7 +58,7 @@ class GuiceWizardTest {
* through the constructor parameter
*/
@Test
void testSmokeEveryThingThroughConstructor() throws Exception {
void testSmokeEveryThingThroughConstructor() {
List<Tobacco> tobaccos = List.of(
new OldTobyTobacco(),
@@ -83,7 +83,7 @@ class GuiceWizardTest {
* through the Guice google inject framework
*/
@Test
void testSmokeEveryThingThroughInjectionFramework() throws Exception {
void testSmokeEveryThingThroughInjectionFramework() {
List<Class<? extends Tobacco>> tobaccos = List.of(
OldTobyTobacco.class,