MCPcopy Create free account
hub / github.com/apache/camel-k / TestRunSimpleJavaExamples

Function TestRunSimpleJavaExamples

e2e/common/languages/java_test.go:37–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35)
36
37func TestRunSimpleJavaExamples(t *testing.T) {
38 t.Parallel()
39 WithNewTestNamespace(t, func(ctx context.Context, g *WithT, ns string) {
40 t.Run("run java", func(t *testing.T) {
41 g.Expect(KamelRun(t, ctx, ns, "files/Java.java").Execute()).To(Succeed())
42 g.Eventually(IntegrationPodPhase(t, ctx, ns, "java"), TestTimeoutLong).Should(Equal(corev1.PodRunning))
43 g.Eventually(IntegrationConditionStatus(t, ctx, ns, "java", v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue))
44 g.Eventually(IntegrationLogs(t, ctx, ns, "java"), TestTimeoutShort).Should(ContainSubstring("Magicstring!"))
45 })
46 })
47}

Callers

nothing calls this directly

Calls 5

WithNewTestNamespaceFunction · 0.85
KamelRunFunction · 0.85
IntegrationPodPhaseFunction · 0.85
IntegrationLogsFunction · 0.85

Tested by

no test coverage detected