Author: oberhack Date: Sat Sep 4 11:47:50 2004 New Revision: 43347 Added: avalon/trunk/central/laboratory/studio/eclipse/test/lib/ avalon/trunk/central/laboratory/studio/eclipse/test/lib/metro-event-0.0.1.jar (contents, props changed) avalon/trunk/central/laboratory/studio/eclipse/test/lib/xstream-1.0.2.jar (contents, props changed) avalon/trunk/central/laboratory/studio/eclipse/test/plugin.xml avalon/trunk/central/laboratory/studio/eclipse/test/src/org/apache/metro/studio/eclipse/tests/AllTests.java avalon/trunk/central/laboratory/studio/eclipse/test/test.xml Log:
Added: avalon/trunk/central/laboratory/studio/eclipse/test/lib/metro-event-0.0.1.jar ============================================================================== Binary file. No diff available. Added: avalon/trunk/central/laboratory/studio/eclipse/test/lib/xstream-1.0.2.jar ============================================================================== Binary file. No diff available. Added: avalon/trunk/central/laboratory/studio/eclipse/test/plugin.xml ============================================================================== --- (empty file) +++ avalon/trunk/central/laboratory/studio/eclipse/test/plugin.xml Sat Sep 4 11:47:50 2004 @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin + id="org.apache.metro.studio.tests" + name="Metro Studio Tests" + version="0.1.0" + provider-name="Apache Software Foundation" + class="org.apache.metro.studio.eclipse.tests.MetroStudioTests"> + + <runtime> + <library name="MetroStudioTests.jar"> + <export name="*"/> + </library> + <library name="lib/xstream-1.0.2.jar"> + <export name="*"/> + </library> + <library name="lib/metro-event-0.0.1.jar"> + <export name="*"/> + </library> + </runtime> + + <requires> + <import plugin="org.eclipse.ui"/> + <import plugin="org.eclipse.core.runtime"/> + <import plugin="org.apache.metro.studio.core"/> + <import plugin="org.apache.metro.studio.ui"/> + <import plugin="org.apache.metro.studio.launch"/> + <import plugin="org.junit"/> + <import plugin="org.eclipse.core.resources"/> + <import plugin="org.eclipse.jdt.core"/> + </requires> + +</plugin> Added: avalon/trunk/central/laboratory/studio/eclipse/test/src/org/apache/metro/studio/eclipse/tests/AllTests.java ============================================================================== --- (empty file) +++ avalon/trunk/central/laboratory/studio/eclipse/test/src/org/apache/metro/studio/eclipse/tests/AllTests.java Sat Sep 4 11:47:50 2004 @@ -0,0 +1,48 @@ +/* + + Copyright 2004. The Apache Software Foundation. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +*/ +package org.apache.metro.studio.eclipse.tests; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.apache.metro.studio.eclipse.core.templateengine.test.AllCoreTests; + +/** + * @author <a href="mailto:[EMAIL PROTECTED]">Metro Development Team</a> + * 03.09.2004 + * last change: + * + */ +public class AllTests +{ + + public static void main(String[] args) + { + } + + public static Test suite() + { + System.out.println("test"); + TestSuite suite = new TestSuite( + "Test for org.apache.metro.studio.eclipse.tests"); + //$JUnit-BEGIN$ + suite.addTestSuite(AllCoreTests.class); + //$JUnit-END$ + return suite; + } +} Added: avalon/trunk/central/laboratory/studio/eclipse/test/test.xml ============================================================================== --- (empty file) +++ avalon/trunk/central/laboratory/studio/eclipse/test/test.xml Sat Sep 4 11:47:50 2004 @@ -0,0 +1,53 @@ +<?xml version="1.0"?> + +<project name="testsuite" default="run" basedir="."> + <!-- The property ${eclipse-home} should be passed into this script --> + <!-- Set a meaningful default value for when it is not. --> + <property name="eclipse-home" value="c:/eclipse/3.0 test"/> + + <!-- sets the properties eclipse-home, and library-file --> + <property name="plugin-name" value="org.apache.metro.studio.core"/> + <property name="library-file" + value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/> + + <!-- This target holds all initialization code that needs to be done for --> + <!-- all tests that are to be run. Initialization for individual tests --> + <!-- should be done within the body of the suite target. --> + <target name="init"> + <tstamp/> + <delete> + <fileset dir="${eclipse-home}" includes="org*.xml"/> + </delete> + </target> + + <!-- This target defines the tests that need to be run. --> + <target name="suite"> + + <property name="metro-folder" + value="${eclipse-home}/metro_test_folder"/> + <delete dir="${metro-folder}" quiet="true"/> + <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> + <property name="data-dir" value="${metro-folder}"/> + <property name="plugin-name" value="${plugin-name}"/> + <property name="classname" + value="org.apache.metro.studio.eclipse.core.AllCoreTests"/> + </ant> + </target> + + <!-- This target holds code to cleanup the testing environment after --> + <!-- after all of the tests have been run. You can use this target to --> + <!-- delete temporary files that have been created. --> + <target name="cleanup"> + </target> + + <!-- This target runs the test suite. Any actions that need to happen --> + <!-- after all the tests have been run should go here. --> + <target name="run" depends="init,suite,cleanup"> + <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> + <property name="includes" value="org*.xml"/> + <property name="output-file" value="${plugin-name}.xml"/> + </ant> + </target> + +</project> + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]