mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-19 17:28:48 +00:00
docs: update dependency injection
This commit is contained in:
+1
-1
@@ -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(),
|
||||
|
||||
+1
-1
@@ -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.
|
||||
*/
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user