Finished the example.
This commit is contained in:
parent
190894936f
commit
ebcf46af86
18
dependency-injection/pom.xml
Normal file
18
dependency-injection/pom.xml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.iluwatar</groupId>
|
||||||
|
<artifactId>java-design-patterns</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>dependency-injection</artifactId>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
7
dependency-injection/src/main/java/com/iluwatar/App.java
Normal file
7
dependency-injection/src/main/java/com/iluwatar/App.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package com.iluwatar;
|
||||||
|
|
||||||
|
public class App {
|
||||||
|
|
||||||
|
public static void main( String[] args ) {
|
||||||
|
}
|
||||||
|
}
|
12
dependency-injection/src/test/java/com/iluwatar/AppTest.java
Normal file
12
dependency-injection/src/test/java/com/iluwatar/AppTest.java
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package com.iluwatar;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class AppTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
String[] args = {};
|
||||||
|
App.main(args);
|
||||||
|
}
|
||||||
|
}
|
3
pom.xml
3
pom.xml
@ -62,6 +62,7 @@
|
|||||||
<module>thread-pool</module>
|
<module>thread-pool</module>
|
||||||
<module>private-class-data</module>
|
<module>private-class-data</module>
|
||||||
<module>object-pool</module>
|
<module>object-pool</module>
|
||||||
|
<module>dependency-injection</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
@ -100,4 +101,4 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user