alef 0.25.2

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{#- Java HTTP test method header for server-pattern e2e tests

   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("SUT_URL");
        if (baseUrl == null) baseUrl = "http://localhost:8000";
{%- endif %}