/*
 * Copyright 2002 Tryllian BV and Otto Moerbeek
 * http://www.tryllian.com
 * otto@tryllian.com
 */

package net.drijf.javaone;

/**
 * This interface defines some methods that test code should
 * implement. The <code>TestMain</code> class tries to execute the
 * methods from code that has different permissions.
 *
 * @author Otto Moerbeek
 * @see TestMain
 */
public interface TestInterface {

    /** Try to read a file */
    String tryToReadFile(String file) throws java.io.IOException;

    /** Try to create a thread */
    void tryToCreateThread();

    /** Try to exit the VM */
    void tryToExitVM();
}
