Annotation Type Grade

    • Element Detail

      • value

        double value
        Value for the test
        Default:
        1.0
      • cpuTimeout

        long cpuTimeout
        CPU timeout in ms. Does not kill the submission, but measures it the time is ok afterwards. Should be used with @Test(timeout=xxx). If timeout is not set on @Test, the default will be 3*cpuTimeout
        Default:
        0L
      • debug

        boolean debug
        Output cputime info, allow printing on stdout/stderr
        Default:
        false
      • custom

        boolean custom
        Expects a CustomGradingResult? If false, CustomGradingResult will be considered as a standard error
        Default:
        false
      • customPermissions

        Class<? extends Grade.PermissionCollectionFactory> customPermissions
        Overrides permissions. Not token into accound if PermissionCollectionFactory.get() returns null. The class should be instantiable without args. By default, tests have no particular permissions, i.e. they can't do anything fancy with the JVM. Note: if you allow modifyThreadGroup/modifyThread and setIO, you may break some components of JavaGrading, namely the proctection against stdout/stderr usage and the cpu timeout management. Reflection is also a problem, and other permissions may allow tests to jailbreak. Use with caution.
        Default:
        com.github.guillaumederval.javagrading.Grade.NullPermissionCollectionFactory.class