diff --git a/new-func/Dockerfile b/new-func/Dockerfile deleted file mode 100644 index 513158ba..00000000 --- a/new-func/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM alpine -COPY java-init.tar / -CMD ["cat", "/java-init.tar"] diff --git a/new-func/func.init.yaml b/new-func/func.init.yaml deleted file mode 100644 index c198f0d4..00000000 --- a/new-func/func.init.yaml +++ /dev/null @@ -1,5 +0,0 @@ -runtime: java -cmd: com.example.fn.HelloFunction::handleRequest -build_image: fnproject/fn-java-fdk-build:jdk9-1.0.64 -run_image: fnproject/fn-java-fdk:jdk9-1.0.64 -format: http diff --git a/new-func/func.yaml b/new-func/func.yaml deleted file mode 100644 index f4da83ca..00000000 --- a/new-func/func.yaml +++ /dev/null @@ -1,7 +0,0 @@ -name: new-func -version: 0.0.1 -runtime: java -cmd: com.example.fn.HelloFunction::handleRequest -build_image: fnproject/fn-java-fdk-build:jdk9-1.0.64 -run_image: fnproject/fn-java-fdk:jdk9-1.0.64 -format: http diff --git a/new-func/java-init.tar b/new-func/java-init.tar deleted file mode 100644 index 40a02a24..00000000 Binary files a/new-func/java-init.tar and /dev/null differ diff --git a/new-func/pom.xml b/new-func/pom.xml deleted file mode 100644 index 4a90ff2f..00000000 --- a/new-func/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - 4.0.0 - - UTF-8 - 1.0.64 - - com.example.fn - hello - 1.0.0 - - - - fn-release-repo - https://dl.bintray.com/fnproject/fnproject - - true - - - false - - - - - - - com.fnproject.fn - api - ${fdk.version} - - - com.fnproject.fn - testing-core - ${fdk.version} - test - - - com.fnproject.fn - testing-junit4 - ${fdk.version} - test - - - junit - junit - 4.12 - test - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - 9 - 9 - - - - - diff --git a/new-func/src/main/java/com/example/fn/HelloFunction.java b/new-func/src/main/java/com/example/fn/HelloFunction.java deleted file mode 100644 index 8c581e76..00000000 --- a/new-func/src/main/java/com/example/fn/HelloFunction.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.example.fn; - -public class HelloFunction { - - public String handleRequest(String input) { - String name = (input == null || input.isEmpty()) ? "world" : input; - - return "Hello, " + name + "!"; - } - -} \ No newline at end of file diff --git a/new-func/src/test/java/com/example/fn/HelloFunctionTest.java b/new-func/src/test/java/com/example/fn/HelloFunctionTest.java deleted file mode 100644 index e6b7a5e3..00000000 --- a/new-func/src/test/java/com/example/fn/HelloFunctionTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.example.fn; - -import com.fnproject.fn.testing.*; -import org.junit.*; - -import static org.junit.Assert.*; - -public class HelloFunctionTest { - - @Rule - public final FnTestingRule testing = FnTestingRule.createDefault(); - - @Test - public void shouldReturnGreeting() { - testing.givenEvent().enqueue(); - testing.thenRun(HelloFunction.class, "handleRequest"); - - FnResult result = testing.getOnlyResult(); - assertEquals("Hello, world!", result.getBodyAsString()); - } - -} \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 4a90ff2f..00000000 --- a/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - 4.0.0 - - UTF-8 - 1.0.64 - - com.example.fn - hello - 1.0.0 - - - - fn-release-repo - https://dl.bintray.com/fnproject/fnproject - - true - - - false - - - - - - - com.fnproject.fn - api - ${fdk.version} - - - com.fnproject.fn - testing-core - ${fdk.version} - test - - - com.fnproject.fn - testing-junit4 - ${fdk.version} - test - - - junit - junit - 4.12 - test - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - 9 - 9 - - - - - diff --git a/src/main/java/com/example/fn/HelloFunction.java b/src/main/java/com/example/fn/HelloFunction.java deleted file mode 100644 index 8c581e76..00000000 --- a/src/main/java/com/example/fn/HelloFunction.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.example.fn; - -public class HelloFunction { - - public String handleRequest(String input) { - String name = (input == null || input.isEmpty()) ? "world" : input; - - return "Hello, " + name + "!"; - } - -} \ No newline at end of file diff --git a/src/test/java/com/example/fn/HelloFunctionTest.java b/src/test/java/com/example/fn/HelloFunctionTest.java deleted file mode 100644 index e6b7a5e3..00000000 --- a/src/test/java/com/example/fn/HelloFunctionTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.example.fn; - -import com.fnproject.fn.testing.*; -import org.junit.*; - -import static org.junit.Assert.*; - -public class HelloFunctionTest { - - @Rule - public final FnTestingRule testing = FnTestingRule.createDefault(); - - @Test - public void shouldReturnGreeting() { - testing.givenEvent().enqueue(); - testing.thenRun(HelloFunction.class, "handleRequest"); - - FnResult result = testing.getOnlyResult(); - assertEquals("Hello, world!", result.getBodyAsString()); - } - -} \ No newline at end of file