/*
 * AllTests2.java
 * 2008/12/11
 * 
 * Copyright (c) 2008 Potkuri-group
 */

package test;

import junit.framework.Test;
import junit.framework.TestSuite;

/**
 * Runs unit tests of this program that class AllTests don't run.
 * This suite contains also integration tests.
 * 
 * @author Potkuri-group
 * @version 1
 */
public class AllTests2 {

	/**
	 * Runs tests.
	 * 
	 * @return Test
	 */
	public static Test suite() {
		TestSuite suite = new TestSuite("All tests version 2");
		Runtime runtimeObject = Runtime.getRuntime();
		
		// Integration tests
		suite.addTest(test.integration.IntegrationTests.suite());
		
		runtimeObject.gc();	// Free resources

		// Graphics tests
		suite.addTest(test.graphics.GraphicsTests.suite());
		
		runtimeObject.gc();	// Free resources
		
		return suite;
	}
}
