Added unit tests for each of the patterns.
This commit is contained in:
		| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>abstract-factory</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										13
									
								
								abstract-factory/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								abstract-factory/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| package com.iluwatar; | ||||
| import org.junit.Test; | ||||
|  | ||||
| import com.iluwatar.App; | ||||
|  | ||||
| public class AppTest { | ||||
|  | ||||
| 	@Test | ||||
| 	public void test() { | ||||
| 		String[] args = {}; | ||||
| 		App.main(args); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>adapter</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								adapter/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								adapter/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>bridge</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								bridge/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								bridge/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>builder</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								builder/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								builder/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>chain</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								chain/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								chain/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>command</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								command/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								command/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>composite</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								composite/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								composite/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>decorator</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								decorator/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								decorator/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); | ||||
| 	} | ||||
| } | ||||
| @@ -6,4 +6,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>double-checked-locking</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
| @@ -0,0 +1,12 @@ | ||||
| package com.iluwatar; | ||||
|  | ||||
| import org.junit.Test; | ||||
|  | ||||
| public class AppTest { | ||||
|  | ||||
| 	@Test | ||||
| 	public void test() { | ||||
| 		String[] args = {}; | ||||
| 		App.main(args); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>facade</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								facade/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								facade/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>factory-method</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								factory-method/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								factory-method/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>flyweight</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								flyweight/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								flyweight/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>interpreter</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								interpreter/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								interpreter/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>iterator</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								iterator/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								iterator/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>mediator</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								mediator/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								mediator/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>memento</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								memento/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								memento/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); | ||||
| 	} | ||||
| } | ||||
| @@ -14,7 +14,6 @@ | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <version>4.11</version> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|   | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>observer</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								observer/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								observer/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); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										120
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										120
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -1,58 +1,70 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||
|   <modelVersion>4.0.0</modelVersion> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||
| 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||
| 	<modelVersion>4.0.0</modelVersion> | ||||
|  | ||||
|   <groupId>com.iluwatar</groupId> | ||||
|   <artifactId>java-design-patterns</artifactId> | ||||
|   <version>1.0-SNAPSHOT</version> | ||||
|   <packaging>pom</packaging> | ||||
| 	<groupId>com.iluwatar</groupId> | ||||
| 	<artifactId>java-design-patterns</artifactId> | ||||
| 	<version>1.0-SNAPSHOT</version> | ||||
| 	<packaging>pom</packaging> | ||||
|  | ||||
| 	<properties> | ||||
| 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
| 	</properties> | ||||
| 	<modules> | ||||
| 		<module>abstract-factory</module> | ||||
| 		<module>builder</module> | ||||
| 		<module>factory-method</module> | ||||
| 		<module>prototype</module> | ||||
| 		<module>singleton</module> | ||||
| 		<module>adapter</module> | ||||
| 		<module>bridge</module> | ||||
| 		<module>composite</module> | ||||
| 		<module>decorator</module> | ||||
| 		<module>facade</module> | ||||
| 		<module>flyweight</module> | ||||
| 		<module>proxy</module> | ||||
| 		<module>chain</module> | ||||
| 		<module>command</module> | ||||
| 		<module>interpreter</module> | ||||
| 		<module>iterator</module> | ||||
| 		<module>mediator</module> | ||||
| 		<module>memento</module> | ||||
| 		<module>model-view-presenter</module> | ||||
| 		<module>observer</module> | ||||
| 		<module>state</module> | ||||
| 		<module>strategy</module> | ||||
| 		<module>template-method</module> | ||||
| 		<module>visitor</module> | ||||
| 		<module>double-checked-locking</module> | ||||
| 		<module>servant</module> | ||||
| 		<module>service-locator</module> | ||||
| 	</modules> | ||||
|  | ||||
| 	<dependencyManagement> | ||||
| 		<dependencies> | ||||
| 			<dependency> | ||||
| 				<groupId>junit</groupId> | ||||
| 				<artifactId>junit</artifactId> | ||||
| 				<version>4.11</version> | ||||
| 				<scope>test</scope> | ||||
| 			</dependency> | ||||
| 		</dependencies> | ||||
| 	</dependencyManagement> | ||||
|  | ||||
| 	<build> | ||||
| 		<plugins> | ||||
| 			<!-- Tell maven to compile using Java 1.7 --> | ||||
| 			<plugin> | ||||
| 				<groupId>org.apache.maven.plugins</groupId> | ||||
| 				<artifactId>maven-compiler-plugin</artifactId> | ||||
| 				<version>3.0</version> | ||||
| 				<configuration> | ||||
| 					<source>1.7</source> | ||||
| 					<target>1.7</target> | ||||
| 				</configuration> | ||||
| 			</plugin> | ||||
| 		</plugins> | ||||
| 	</build> | ||||
|  | ||||
|   <properties> | ||||
|     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
|   </properties> | ||||
|   <modules> | ||||
|     <module>abstract-factory</module> | ||||
|     <module>builder</module> | ||||
|     <module>factory-method</module> | ||||
|     <module>prototype</module> | ||||
|     <module>singleton</module> | ||||
|     <module>adapter</module> | ||||
|     <module>bridge</module> | ||||
|     <module>composite</module> | ||||
|     <module>decorator</module> | ||||
|     <module>facade</module> | ||||
|     <module>flyweight</module> | ||||
|     <module>proxy</module> | ||||
|     <module>chain</module> | ||||
|     <module>command</module> | ||||
|     <module>interpreter</module> | ||||
|     <module>iterator</module> | ||||
|     <module>mediator</module> | ||||
|     <module>memento</module> | ||||
|     <module>model-view-presenter</module> | ||||
|     <module>observer</module> | ||||
|     <module>state</module> | ||||
|     <module>strategy</module> | ||||
|     <module>template-method</module> | ||||
|     <module>visitor</module> | ||||
|     <module>double-checked-locking</module> | ||||
|     <module>servant</module> | ||||
|     <module>service-locator</module> | ||||
|   </modules> | ||||
|    | ||||
| <build> | ||||
| 	<plugins> | ||||
| 		<!-- Tell maven to compile using Java 1.7 --> | ||||
| 		<plugin> | ||||
| 			<groupId>org.apache.maven.plugins</groupId> | ||||
| 			<artifactId>maven-compiler-plugin</artifactId> | ||||
| 			<version>3.0</version> | ||||
| 			<configuration> | ||||
| 				<source>1.7</source> | ||||
| 				<target>1.7</target> | ||||
| 			</configuration> | ||||
| 		</plugin> | ||||
| 	</plugins> | ||||
| </build> | ||||
|    | ||||
| </project> | ||||
|   | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>prototype</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								prototype/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								prototype/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>proxy</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								proxy/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								proxy/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>servant</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								servant/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								servant/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>service-locator</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								service-locator/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								service-locator/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>singleton</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								singleton/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								singleton/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>state</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								state/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								state/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>strategy</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								strategy/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								strategy/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>template-method</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								template-method/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								template-method/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); | ||||
| 	} | ||||
| } | ||||
| @@ -8,4 +8,11 @@ | ||||
|     <version>1.0-SNAPSHOT</version> | ||||
|   </parent> | ||||
|   <artifactId>visitor</artifactId> | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
| </project> | ||||
|   | ||||
							
								
								
									
										12
									
								
								visitor/src/test/java/com/iluwatar/AppTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								visitor/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); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user