diff --git a/abstract-factory/pom.xml b/abstract-factory/pom.xml index e30df4e0d..75dfd6539 100644 --- a/abstract-factory/pom.xml +++ b/abstract-factory/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT abstract-factory + + + junit + junit + test + + diff --git a/abstract-factory/src/test/java/com/iluwatar/AppTest.java b/abstract-factory/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..58c74fe79 --- /dev/null +++ b/abstract-factory/src/test/java/com/iluwatar/AppTest.java @@ -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); + } +} diff --git a/adapter/pom.xml b/adapter/pom.xml index 5413dc167..fd99061a6 100644 --- a/adapter/pom.xml +++ b/adapter/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT adapter + + + junit + junit + test + + diff --git a/adapter/src/test/java/com/iluwatar/AppTest.java b/adapter/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/adapter/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/bridge/pom.xml b/bridge/pom.xml index 25edd4ab0..efbc2c900 100644 --- a/bridge/pom.xml +++ b/bridge/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT bridge + + + junit + junit + test + + diff --git a/bridge/src/test/java/com/iluwatar/AppTest.java b/bridge/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/bridge/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/builder/pom.xml b/builder/pom.xml index 724036ceb..7d735d9cb 100644 --- a/builder/pom.xml +++ b/builder/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT builder + + + junit + junit + test + + diff --git a/builder/src/test/java/com/iluwatar/AppTest.java b/builder/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/builder/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/chain/pom.xml b/chain/pom.xml index 619e0449b..042cfc082 100644 --- a/chain/pom.xml +++ b/chain/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT chain + + + junit + junit + test + + diff --git a/chain/src/test/java/com/iluwatar/AppTest.java b/chain/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/chain/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/command/pom.xml b/command/pom.xml index a72eb702c..e596c921e 100644 --- a/command/pom.xml +++ b/command/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT command + + + junit + junit + test + + diff --git a/command/src/test/java/com/iluwatar/AppTest.java b/command/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/command/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/composite/pom.xml b/composite/pom.xml index 2f474f17a..a7a7bdbd1 100644 --- a/composite/pom.xml +++ b/composite/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT composite + + + junit + junit + test + + diff --git a/composite/src/test/java/com/iluwatar/AppTest.java b/composite/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/composite/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/decorator/pom.xml b/decorator/pom.xml index 086fb5e40..0272a488f 100644 --- a/decorator/pom.xml +++ b/decorator/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT decorator + + + junit + junit + test + + diff --git a/decorator/src/test/java/com/iluwatar/AppTest.java b/decorator/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/decorator/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/double-checked-locking/pom.xml b/double-checked-locking/pom.xml index ed0d80b35..f55698012 100644 --- a/double-checked-locking/pom.xml +++ b/double-checked-locking/pom.xml @@ -6,4 +6,11 @@ 1.0-SNAPSHOT double-checked-locking + + + junit + junit + test + + diff --git a/double-checked-locking/src/test/java/com/iluwatar/AppTest.java b/double-checked-locking/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/double-checked-locking/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/facade/pom.xml b/facade/pom.xml index 400fcdc35..622cf5fb3 100644 --- a/facade/pom.xml +++ b/facade/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT facade + + + junit + junit + test + + diff --git a/facade/src/test/java/com/iluwatar/AppTest.java b/facade/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/facade/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/factory-method/pom.xml b/factory-method/pom.xml index 8d912da1e..fb48aed9d 100644 --- a/factory-method/pom.xml +++ b/factory-method/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT factory-method + + + junit + junit + test + + diff --git a/factory-method/src/test/java/com/iluwatar/AppTest.java b/factory-method/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/factory-method/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/flyweight/pom.xml b/flyweight/pom.xml index 625aa95db..12f463794 100644 --- a/flyweight/pom.xml +++ b/flyweight/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT flyweight + + + junit + junit + test + + diff --git a/flyweight/src/test/java/com/iluwatar/AppTest.java b/flyweight/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/flyweight/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/interpreter/pom.xml b/interpreter/pom.xml index 0e3bdb73a..e259fefd1 100644 --- a/interpreter/pom.xml +++ b/interpreter/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT interpreter + + + junit + junit + test + + diff --git a/interpreter/src/test/java/com/iluwatar/AppTest.java b/interpreter/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/interpreter/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/iterator/pom.xml b/iterator/pom.xml index c0cca4f85..316fff461 100644 --- a/iterator/pom.xml +++ b/iterator/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT iterator + + + junit + junit + test + + diff --git a/iterator/src/test/java/com/iluwatar/AppTest.java b/iterator/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/iterator/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/mediator/pom.xml b/mediator/pom.xml index bfe75b370..e39d20aed 100644 --- a/mediator/pom.xml +++ b/mediator/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT mediator + + + junit + junit + test + + diff --git a/mediator/src/test/java/com/iluwatar/AppTest.java b/mediator/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/mediator/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/memento/pom.xml b/memento/pom.xml index 1466c63f8..b13504f08 100644 --- a/memento/pom.xml +++ b/memento/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT memento + + + junit + junit + test + + diff --git a/memento/src/test/java/com/iluwatar/AppTest.java b/memento/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/memento/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/model-view-presenter/pom.xml b/model-view-presenter/pom.xml index 6bb17b767..251e823cd 100644 --- a/model-view-presenter/pom.xml +++ b/model-view-presenter/pom.xml @@ -14,7 +14,6 @@ junit junit - 4.11 test diff --git a/observer/pom.xml b/observer/pom.xml index 3edb90a72..df7d3c188 100644 --- a/observer/pom.xml +++ b/observer/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT observer + + + junit + junit + test + + diff --git a/observer/src/test/java/com/iluwatar/AppTest.java b/observer/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/observer/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/pom.xml b/pom.xml index a16d23382..da149fdf8 100644 --- a/pom.xml +++ b/pom.xml @@ -1,58 +1,70 @@ - - 4.0.0 + + 4.0.0 - com.iluwatar - java-design-patterns - 1.0-SNAPSHOT - pom + com.iluwatar + java-design-patterns + 1.0-SNAPSHOT + pom + + + UTF-8 + + + abstract-factory + builder + factory-method + prototype + singleton + adapter + bridge + composite + decorator + facade + flyweight + proxy + chain + command + interpreter + iterator + mediator + memento + model-view-presenter + observer + state + strategy + template-method + visitor + double-checked-locking + servant + service-locator + + + + + + junit + junit + 4.11 + test + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.0 + + 1.7 + 1.7 + + + + - - UTF-8 - - - abstract-factory - builder - factory-method - prototype - singleton - adapter - bridge - composite - decorator - facade - flyweight - proxy - chain - command - interpreter - iterator - mediator - memento - model-view-presenter - observer - state - strategy - template-method - visitor - double-checked-locking - servant - service-locator - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.0 - - 1.7 - 1.7 - - - - - diff --git a/prototype/pom.xml b/prototype/pom.xml index aae9f06b1..efb6dbd40 100644 --- a/prototype/pom.xml +++ b/prototype/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT prototype + + + junit + junit + test + + diff --git a/prototype/src/test/java/com/iluwatar/AppTest.java b/prototype/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/prototype/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/proxy/pom.xml b/proxy/pom.xml index 04c2da248..911836393 100644 --- a/proxy/pom.xml +++ b/proxy/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT proxy + + + junit + junit + test + + diff --git a/proxy/src/test/java/com/iluwatar/AppTest.java b/proxy/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/proxy/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/servant/pom.xml b/servant/pom.xml index 1694984d0..6f0b224a3 100644 --- a/servant/pom.xml +++ b/servant/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT servant + + + junit + junit + test + + diff --git a/servant/src/test/java/com/iluwatar/AppTest.java b/servant/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/servant/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/service-locator/pom.xml b/service-locator/pom.xml index bdeb432b7..1d33281e5 100644 --- a/service-locator/pom.xml +++ b/service-locator/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT service-locator + + + junit + junit + test + + diff --git a/service-locator/src/test/java/com/iluwatar/AppTest.java b/service-locator/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/service-locator/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/singleton/pom.xml b/singleton/pom.xml index 7fe51aa50..4fb005395 100644 --- a/singleton/pom.xml +++ b/singleton/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT singleton + + + junit + junit + test + + diff --git a/singleton/src/test/java/com/iluwatar/AppTest.java b/singleton/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/singleton/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/state/pom.xml b/state/pom.xml index 208559a5a..e20cf5c7f 100644 --- a/state/pom.xml +++ b/state/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT state + + + junit + junit + test + + diff --git a/state/src/test/java/com/iluwatar/AppTest.java b/state/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/state/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/strategy/pom.xml b/strategy/pom.xml index a0bb697f2..7b1d970c8 100644 --- a/strategy/pom.xml +++ b/strategy/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT strategy + + + junit + junit + test + + diff --git a/strategy/src/test/java/com/iluwatar/AppTest.java b/strategy/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/strategy/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/template-method/pom.xml b/template-method/pom.xml index 4fff52170..393532ee2 100644 --- a/template-method/pom.xml +++ b/template-method/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT template-method + + + junit + junit + test + + diff --git a/template-method/src/test/java/com/iluwatar/AppTest.java b/template-method/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/template-method/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +} diff --git a/visitor/pom.xml b/visitor/pom.xml index 03e9b4339..757f62553 100644 --- a/visitor/pom.xml +++ b/visitor/pom.xml @@ -8,4 +8,11 @@ 1.0-SNAPSHOT visitor + + + junit + junit + test + + diff --git a/visitor/src/test/java/com/iluwatar/AppTest.java b/visitor/src/test/java/com/iluwatar/AppTest.java new file mode 100644 index 000000000..89b9e61d8 --- /dev/null +++ b/visitor/src/test/java/com/iluwatar/AppTest.java @@ -0,0 +1,12 @@ +package com.iluwatar; + +import org.junit.Test; + +public class AppTest { + + @Test + public void test() { + String[] args = {}; + App.main(args); + } +}