alef-e2e 0.15.10

Fixture-driven e2e test generator for alef
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{#- Java HTTP test method header

   Context variables:
   - fn_name: sanitized function name (UpperCamelCase)
   - description: fixture description
   - skip_reason: optional skip reason (if test is skipped)
#}
    @Test
{%- if skip_reason %}
    void test{{ fn_name }}() {
        // {{ description }}
        org.junit.jupiter.api.Assumptions.assumeTrue(false, "{{ skip_reason }}");
{%- else %}
    void test{{ fn_name }}() throws Exception {
        // {{ description }}
        String baseUrl = System.getenv("MOCK_SERVER_URL");
        if (baseUrl == null) baseUrl = "http://localhost:8080";
{%- endif %}