Skip to content

Commit 92ace1e

Browse files
authored
Merge pull request #172 from fnproject/add-java11-boilerplate-test-remove-9
Add java11 boilerplate test
2 parents 8be6ffa + 656786d commit 92ace1e

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

integration-tests/src/test/java/com/fnproject/fn/integrationtest/FunctionsTest.java

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,18 @@ public void shouldCallExistingFn() throws Exception {
4545

4646
@Test()
4747
public void checkBoilerPlate() throws Exception {
48-
for (String format : new String[]{"http-stream"}) {
49-
for (String runtime : new String[]{"java9", "java8"}) {
50-
IntegrationTestRule.TestContext tc = testRule.newTest();
51-
52-
String fnName = "bp" + format + runtime;
53-
tc.runFn("init", "--runtime", runtime, "--name", fnName, "--format", format);
54-
tc.rewritePOM();
55-
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
56-
CmdResult rs = tc.runFnWithInput("wibble", "invoke", tc.appName(), fnName);
57-
assertThat(rs.getStdout()).contains("Hello, wibble!");
58-
}
48+
for (String runtime : new String[]{"java8", "java9", "java11"}) {
49+
IntegrationTestRule.TestContext tc = testRule.newTest();
50+
51+
String fnName = "bp" + runtime;
52+
tc.runFn("init", "--runtime", runtime, "--name", fnName);
53+
tc.rewritePOM();
54+
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
55+
CmdResult rs = tc.runFnWithInput("wibble", "invoke", tc.appName(), fnName);
56+
assertThat(rs.getStdout()).contains("Hello, wibble!");
5957
}
6058
}
6159

62-
6360
@JsonIgnoreProperties(ignoreUnknown = true)
6461
public static class InspectResponse {
6562

0 commit comments

Comments
 (0)