#!/usr/bin/env qore
# -*- mode: qore; indent-tabs-mode: nil -*-

%new-style
%enable-all-warnings
%require-types
%strict-args

%requires ../../qlib/QUnit.qm

%exec-class MyTestClass

public class MyTestClass inherits QUnit::DependencyInjectedTest {
    constructor() : DependencyInjectedTest("MyTestClass", "1.0") {
        addTestCase("Test something", \testMethod());

        # Return for compatibility with test harness that checks return value.
        set_return_value(main());
    }

    # mandatory for injected tests
    private string getScriptPathImpl() {
        return get_script_path();
    }

    private performInjectionsImpl() {
        #injectClass("_local_name", "_injected_name");

        #injectUserModule("_user_module_name_or_path");
    }

    testMethod() {
        # Same test style as in TestExample.qtest
        assertTrue(True);
    }
}
