Skip to content

Commit

Permalink
Added test suite stuff for the QSAR feature
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Sep 13, 2011
1 parent 7568cc1 commit 0564437
Show file tree
Hide file tree
Showing 12 changed files with 1,132 additions and 2 deletions.
17 changes: 17 additions & 0 deletions features/net.bioclipse.qsar.test_feature/.project
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>net.bioclipse.qsar.test_feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
<setAttribute key="additional_plugins"/>
<booleanAttribute key="append.args" value="true"/>
<booleanAttribute key="askclear" value="false"/>
<booleanAttribute key="automaticAdd" value="true"/>
<booleanAttribute key="automaticValidate" value="false"/>
<stringAttribute key="bootstrap" value=""/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="clearConfig" value="true"/>
<booleanAttribute key="clearws" value="true"/>
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
<booleanAttribute key="default" value="false"/>
<stringAttribute key="featureDefaultLocation" value="workspace"/>
<stringAttribute key="featurePluginResolution" value="workspace"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/net.bioclipse.qsar.test/src/net/bioclipse/qsar/business/test/AllQsarManagerPluginTests.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.bioclipse.qsar.test.business.AllQsarManagerPluginTests"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="net.bioclipse.qsar.test"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="net.bioclipse.ui.product"/>
<booleanAttribute key="run_in_ui_thread" value="true"/>
<setAttribute key="selected_features">
<setEntry value="net.bioclipse.qsar.test_feature:default"/>
<setEntry value="net.bioclipse.qsar_feature:default"/>
<setEntry value="net.bioclipse.core_feature:default"/>
<setEntry value="org.eclipse.equinox.p2.user.ui:default"/>
<setEntry value="org.eclipse.rcp:default"/>
</setAttribute>
<booleanAttribute key="show_selected_only" value="true"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="true"/>
<booleanAttribute key="useDefaultConfig" value="true"/>
<booleanAttribute key="useDefaultConfigArea" value="false"/>
<booleanAttribute key="useProduct" value="true"/>
</launchConfiguration>
1 change: 1 addition & 0 deletions features/net.bioclipse.qsar.test_feature/build.properties
@@ -0,0 +1 @@
bin.includes = feature.xml
169 changes: 169 additions & 0 deletions features/net.bioclipse.qsar.test_feature/feature.xml
@@ -0,0 +1,169 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="net.bioclipse.qsar.test_feature"
label="QSAR Test Feature"
version="2.5.0.qualifier"
provider-name="The Bioclipse Project"
plugin="net.bioclipse.qsar.test">

<description>
QSAR (Quantitative Structure-Activity Relationship) functionality
for Bioclipse.
</description>

<copyright>
(C) 2006-2009 The Bioclipse Project contributors and others.
</copyright>

<license url="http://www.eclipse.org/org/documents/epl-v10.php">
This feature and the accompanying materials are made available
under the terms of the Eclipse Public License v1.0 + exception,
putting no constraints on choice of backend and/or license for
creating plugins for Bioclipse; it is totally open for both open
source plugins as well as commercial. The exception allows GPL
plugins to be written and run in any combination with EPL licensed
plugins, addressing incompatibility between the EPL and the GPL
v.2.
The Eclipse Public License accompanies this distribution, and
is available at http://www.eclipse.org/legal/epl-v10.html
</license>

<requires>
<import feature="net.bioclipse.rdf_feature" version="2.4.0" match="greaterOrEqual"/>
<import feature="net.bioclipse.chemoinformatics_feature" version="2.4.0" match="greaterOrEqual"/>
</requires>

<plugin
id="net.bioclipse.qsar"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.ecore"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.ecore.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.ecore.xmi"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.edit.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.databinding"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.databinding.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.common.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.cdk.qsar"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.qsar.model"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.qsar.model.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.qsar.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.bibtexml"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.bibtexml.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.ecore.change"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="net.bioclipse.cdk.qsar.rest"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>
8 changes: 6 additions & 2 deletions plugins/net.bioclipse.qsar.test/META-INF/MANIFEST.MF
Expand Up @@ -10,10 +10,14 @@ Require-Bundle: org.eclipse.ui,
net.bioclipse.core,
net.bioclipse.qsar.model;bundle-version="1.0.0",
net.bioclipse.qsar.model.edit;bundle-version="1.0.0",
net.bioclipse.qsar.ui;bundle-version="2.0.0"
net.bioclipse.qsar.ui;bundle-version="2.0.0",
net.bioclipse.core.tests;bundle-version="2.5.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: org.apache.log4j, org.junit
Import-Package: org.apache.log4j,
org.junit,
org.junit.runner,
org.junit.runners
Export-Package: net.bioclipse.qsar.test,
net.bioclipse.qsar.test.business
Bundle-ClassPath: .
@@ -0,0 +1,37 @@
/*******************************************************************************
* Copyright (c) 2011 Egon Willighagen <egon.willighagen@ki.se>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contact: Bioclipse Project <http://www.bioclipse.net>
******************************************************************************/
package net.bioclipse.qsar.test.business;

import net.bioclipse.core.tests.AbstractManagerTest;
import net.bioclipse.managers.business.IBioclipseManager;
import net.bioclipse.qsar.business.IQsarManager;
import net.bioclipse.qsar.business.QsarManager;

/**
* JUnit tests for checking if the tested Manager is properly tested.
*
* @author egonw
*/
public class APITest extends AbstractManagerTest {

private static QsarManager manager = new QsarManager();

@Override
public IBioclipseManager getManager() {
return manager;
}

@Override
public Class<? extends IBioclipseManager> getManagerInterface() {
return IQsarManager.class;
}

}

0 comments on commit 0564437

Please sign in to comment.