commit 37e703343d8edc965a347e19b868cdad7b103330 Author: Dave Syer Date: Fri Jan 23 10:55:14 2015 +0000 Add one test project diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbd7b6b --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +*~ +#* +*# +.#* +.classpath +.project +.settings/ +.springBeans +target/ +_site/ +.idea +*.iml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ca129df --- /dev/null +++ b/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 1.2.1.RELEASE + + + spring-cloud-netflix-samples + 1.0.0.BUILD-SNAPSHOT + pom + Spring Cloud Netflix Samples + Spring Cloud Netflix Samples + http://projects.spring.io/spring-cloud/ + + Pivotal Software, Inc. + http://www.spring.io + + + zuul-proxy + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/*Tests.java + + + **/Abstract*.java + + + file:/dev/./urandom + true + + + + + + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/snapshot + + true + + + + spring-milestones + Spring Milestones + http://repo.spring.io/milestone + + false + + + + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/snapshot + + true + + + + spring-milestones + Spring Milestones + http://repo.spring.io/milestone + + false + + + + spring-releases + Spring Releases + http://repo.spring.io/release + + false + + + + diff --git a/zuul-proxy/pom.xml b/zuul-proxy/pom.xml new file mode 100644 index 0000000..012b011 --- /dev/null +++ b/zuul-proxy/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + + org.springframework.cloud + spring-cloud-sample-zuul-proxy + 1.0.0.BUILD-SNAPSHOT + jar + + spring-cloud-sample-zuul-proxy + Demo project for Spring Cloud + + + org.springframework.boot + spring-boot-starter-parent + 1.2.1.RELEASE + + + + + UTF-8 + demo.DemoApplication + 1.7 + + + + + + org.springframework.cloud + spring-cloud-starter-parent + 1.0.0.BUILD-SNAPSHOT + pom + import + + + + + + + org.springframework.cloud + spring-cloud-starter-zuul + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/zuul-proxy/src/main/java/demo/DemoApplication.java b/zuul-proxy/src/main/java/demo/DemoApplication.java new file mode 100644 index 0000000..da3bba4 --- /dev/null +++ b/zuul-proxy/src/main/java/demo/DemoApplication.java @@ -0,0 +1,12 @@ +package demo; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DemoApplication { + + public static void main(String[] args) { + SpringApplication.run(DemoApplication.class, args); + } +} diff --git a/zuul-proxy/src/main/resources/application.properties b/zuul-proxy/src/main/resources/application.properties new file mode 100644 index 0000000..e69de29 diff --git a/zuul-proxy/src/test/java/demo/DemoApplicationTests.java b/zuul-proxy/src/test/java/demo/DemoApplicationTests.java new file mode 100644 index 0000000..ad7230b --- /dev/null +++ b/zuul-proxy/src/test/java/demo/DemoApplicationTests.java @@ -0,0 +1,16 @@ +package demo; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.SpringApplicationConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +@RunWith(SpringJUnit4ClassRunner.class) +@SpringApplicationConfiguration(classes = DemoApplication.class) +public class DemoApplicationTests { + + @Test + public void contextLoads() { + } + +}