alef 0.20.2

Opinionated polyglot binding generator for Rust libraries
Documentation
{#- 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 }}
        // MockServerListener spawns the mock-server and publishes its URL as the
        // `mockServerUrl` system property (the JVM cannot set its own env vars); prefer it,
        // then an externally exported MOCK_SERVER_URL, then the default dev port.
        String baseUrl = System.getProperty("mockServerUrl", System.getenv("MOCK_SERVER_URL"));
        if (baseUrl == null) baseUrl = "http://localhost:8080";
{%- endif %}