Top Description Constructors Methods
org.lwjgl.test

public Class SysTest

extends Object
Class Inheritance
Imports
org.lwjgl.LWJGLException, .LWJGLUtil, .Sys, org.lwjgl.opengl.Display


Test class for Sys
Author
Brian Matzon
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
public
SysTest()

Creates a new SysTest

Method Summary

Modifier and TypeMethod and Description
private void
busyWait(int
Priority to busy wait in
priority
,
int
Number of seconds to busy wait
seconds
,
String
Message to print to user
message
)

Busy waits for a specified number of seconds

public void
executeTest()

Runs the tests

public static void
main(String[]
ignored
args
)

Tests the Sys class, and serves as basic usage test

private void
pause(long
milliseconds to sleep
time
)

Pause current thread for a specified time

private void
testAlert()

Tests the alert

private void
testClipboard()

Tests the clipboard.

private void
testDebug()

Tests debug mode

private void
testTimer()

Tests the timer

private void
testUrl()

Tests the openUrl

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SysTestback to summary
public SysTest()

Creates a new SysTest

Method Detail

busyWaitback to summary
private void busyWait(int priority, int seconds, String message)

Busy waits for a specified number of seconds

Parameters
priority:int

Priority to busy wait in

seconds:int

Number of seconds to busy wait

message:String

Message to print to user

executeTestback to summary
public void executeTest()

Runs the tests

mainback to summary
public static void main(String[] args)

Tests the Sys class, and serves as basic usage test

Parameters
args:String[]

ignored

pauseback to summary
private void pause(long time)

Pause current thread for a specified time

Parameters
time:long

milliseconds to sleep

testAlertback to summary
private void testAlert()

Tests the alert

testClipboardback to summary
private void testClipboard()

Tests the clipboard. Helps to have something in it first...

testDebugback to summary
private void testDebug()

Tests debug mode

testTimerback to summary
private void testTimer()

Tests the timer

testUrlback to summary
private void testUrl()

Tests the openUrl