Package org.gnome.glib
Enum Class TestTrapFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TestTrapFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
@Deprecated
public enum TestTrapFlags
extends Enum<TestTrapFlags>
implements Enumeration
Deprecated.
Test traps are guards around forked tests.
These flags determine what traps to set.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Default behaviour.Deprecated.If this flag is given, stdin of the child process is shared with stdin of its parent process.Deprecated.Redirect stderr of the test child to/dev/null
so it cannot be observed on the console during test runs.Deprecated.Redirect stdout of the test child to/dev/null
so it cannot be observed on the console during test runs. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Deprecated.Get the numeric value of this enumstatic TestTrapFlags
of
(int value) Deprecated.Create a new TestTrapFlags for the provided valuestatic TestTrapFlags
Deprecated.Returns the enum constant of this class with the specified name.static TestTrapFlags[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
SILENCE_STDOUT
Deprecated.Redirect stdout of the test child to/dev/null
so it cannot be observed on the console during test runs. The actual output is still captured though to allow later tests with g_test_trap_assert_stdout(). -
SILENCE_STDERR
Deprecated.Redirect stderr of the test child to/dev/null
so it cannot be observed on the console during test runs. The actual output is still captured though to allow later tests with g_test_trap_assert_stderr(). -
INHERIT_STDIN
Deprecated.If this flag is given, stdin of the child process is shared with stdin of its parent process. It is redirected to/dev/null
otherwise.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Deprecated.Create a new TestTrapFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Deprecated.Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-