forked from bioclipse/bioclipse.social
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Bioclipse SDK generated template for a twitter manager (me hide…
…s so that olas does not see it)
- Loading branch information
Showing
24 changed files
with
670 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>net.bioclipse.twitter.tests</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: net.bioclipse.twitter Tests | ||
Bundle-SymbolicName: net.bioclipse.twitter.tests;singleton:=true | ||
Bundle-Version: 0.1.0 | ||
Bundle-Activator: net.bioclipse.twitter.tests.Activator | ||
Bundle-Vendor: The Bioclipse Team | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.core.runtime, | ||
org.junit4, | ||
net.bioclipse.core, | ||
org.eclipse.core.resources, | ||
net.bioclipse.core.tests, | ||
net.bioclipse.twitter, | ||
net.bioclipse.ui | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: net.bioclipse.twitter.tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
############################################################################### | ||
#Copyright (c) 2008 The Bioclipse Team and others. | ||
#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 | ||
# | ||
############################################################################### | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
. |
40 changes: 40 additions & 0 deletions
40
plugins/net.bioclipse.twitter.tests/src/net/bioclipse/twitter/tests/Activator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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: http://www.bioclipse.net/ | ||
******************************************************************************/ | ||
package net.bioclipse.twitter.tests; | ||
|
||
import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
import org.osgi.framework.BundleContext; | ||
|
||
/** | ||
* The activator class controls the plug-in life cycle. | ||
*/ | ||
public class Activator extends AbstractUIPlugin { | ||
|
||
public static final String PLUGIN_ID = "net.bioclipse.twitter.tests"; | ||
private static Activator sharedInstance; | ||
|
||
public Activator() {} | ||
|
||
public void start(BundleContext context) throws Exception { | ||
super.start(context); | ||
sharedInstance = this; | ||
} | ||
|
||
public void stop(BundleContext context) throws Exception { | ||
sharedInstance = null; | ||
super.stop(context); | ||
} | ||
|
||
public static Activator getDefault() { | ||
return sharedInstance; | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
plugins/net.bioclipse.twitter.tests/src/net/bioclipse/twitter/tests/business/APITest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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.twitter.tests.business; | ||
|
||
import net.bioclipse.core.tests.AbstractManagerTest; | ||
import net.bioclipse.managers.business.IBioclipseManager; | ||
import net.bioclipse.twitter.business.ITwitterManager; | ||
import net.bioclipse.twitter.business.TwitterManager; | ||
|
||
/** | ||
* JUnit tests for checking if the tested Manager is properly tested. | ||
* | ||
* @author egonw | ||
*/ | ||
public class APITest extends AbstractManagerTest { | ||
|
||
private static TwitterManager manager = new TwitterManager(); | ||
|
||
@Override | ||
public IBioclipseManager getManager() { | ||
return manager; | ||
} | ||
|
||
@Override | ||
public Class<? extends IBioclipseManager> getManagerInterface() { | ||
return ITwitterManager.class; | ||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
...tter.tests/src/net/bioclipse/twitter/tests/business/AbstractTwitterManagerPluginTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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: http://www.bioclipse.net/ | ||
******************************************************************************/ | ||
package net.bioclipse.twitter.tests.business; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.InputStreamReader; | ||
import java.net.URI; | ||
import java.net.URL; | ||
import java.util.List; | ||
|
||
import net.bioclipse.core.ResourcePathTransformer; | ||
import net.bioclipse.twitter.business.ITwitterManager; | ||
|
||
import org.eclipse.core.resources.IFile; | ||
import org.eclipse.core.runtime.FileLocator; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
public abstract class AbstractTwitterManagerPluginTest { | ||
|
||
protected static ITwitterManager twitter; | ||
|
||
@Test public void testDoSomething() { | ||
// FIXME: twitter.doSomething(); | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
....twitter.tests/src/net/bioclipse/twitter/tests/business/AllTwitterManagerPluginTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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 | ||
* www.eclipse.org—epl-v10.html <http://www.eclipse.org/legal/epl-v10.html> | ||
* | ||
* Contact: http://www.bioclipse.net/ | ||
******************************************************************************/ | ||
package net.bioclipse.twitter.tests.business; | ||
|
||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Suite; | ||
import org.junit.runners.Suite.SuiteClasses; | ||
|
||
@RunWith(Suite.class) | ||
@SuiteClasses({ | ||
JavaTwitterManagerPluginTest.class, | ||
JavaScriptTwitterManagerPluginTest.class | ||
}) | ||
public class AllTwitterManagerPluginTests { | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...clipse.twitter.tests/src/net/bioclipse/twitter/tests/business/AllTwitterManagerTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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 | ||
* www.eclipse.org—epl-v10.html <http://www.eclipse.org/legal/epl-v10.html> | ||
* | ||
* Contact: http://www.bioclipse.net/ | ||
******************************************************************************/ | ||
package net.bioclipse.twitter.tests.business; | ||
|
||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Suite; | ||
import org.junit.runners.Suite.SuiteClasses; | ||
|
||
@RunWith(Suite.class) | ||
@SuiteClasses({ | ||
APITest.class, | ||
CoverageTest.class | ||
}) | ||
public class AllTwitterManagerTests { | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
...ns/net.bioclipse.twitter.tests/src/net/bioclipse/twitter/tests/business/CoverageTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2008 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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.twitter.tests.business; | ||
|
||
import net.bioclipse.core.tests.coverage.AbstractCoverageTest; | ||
import net.bioclipse.managers.business.IBioclipseManager; | ||
import net.bioclipse.twitter.business.ITwitterManager; | ||
import net.bioclipse.twitter.business.TwitterManager; | ||
|
||
/** | ||
* JUnit tests for checking if the tested Manager is properly tested. | ||
*/ | ||
public class CoverageTest extends AbstractCoverageTest { | ||
|
||
private static TwitterManager manager = new TwitterManager(); | ||
|
||
@Override | ||
public IBioclipseManager getManager() { | ||
return manager; | ||
} | ||
|
||
@Override | ||
public Class<? extends IBioclipseManager> getManagerInterface() { | ||
return ITwitterManager.class; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...er.tests/src/net/bioclipse/twitter/tests/business/JavaScriptTwitterManagerPluginTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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 | ||
* www.eclipse.org—epl-v10.html <http://www.eclipse.org/legal/epl-v10.html> | ||
* | ||
* Contact: http://www.bioclipse.net/ | ||
******************************************************************************/ | ||
package net.bioclipse.twitter.tests.business; | ||
|
||
import net.bioclipse.twitter.Activator; | ||
|
||
import org.junit.BeforeClass; | ||
|
||
public class JavaScriptTwitterManagerPluginTest | ||
extends AbstractTwitterManagerPluginTest { | ||
|
||
@BeforeClass public static void setup() { | ||
twitter = Activator.getDefault().getJavaScriptTwitterManager(); | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
....twitter.tests/src/net/bioclipse/twitter/tests/business/JavaTwitterManagerPluginTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2009 Egon Willighagen <egonw@users.sf.net> | ||
* | ||
* 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 | ||
* www.eclipse.org—epl-v10.html <http://www.eclipse.org/legal/epl-v10.html> | ||
* | ||
* Contact: http://www.bioclipse.net/ | ||
******************************************************************************/ | ||
package net.bioclipse.twitter.tests.business; | ||
|
||
import net.bioclipse.twitter.Activator; | ||
|
||
import org.junit.BeforeClass; | ||
|
||
public class JavaTwitterManagerPluginTest | ||
extends AbstractTwitterManagerPluginTest { | ||
|
||
@BeforeClass public static void setup() { | ||
twitter = Activator.getDefault().getJavaTwitterManager(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>net.bioclipse.twitter</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: net.bioclipse.twitter | ||
Bundle-SymbolicName: net.bioclipse.twitter;singleton:=true | ||
Bundle-Version: 0.1.0 | ||
Bundle-Activator: net.bioclipse.twitter.Activator | ||
Bundle-Vendor: The Bioclipse Team | ||
Require-Bundle: | ||
org.eclipse.ui, | ||
org.eclipse.core.runtime, | ||
net.bioclipse.core, | ||
net.bioclipse.scripting, | ||
net.bioclipse.ui, | ||
org.springframework.bundle.spring.aop, | ||
net.sf.cglib, | ||
org.springframework.osgi.aopalliance.osgi | ||
Bundle-ActivationPolicy: lazy | ||
Export-Package: net.bioclipse.twitter, | ||
net.bioclipse.twitter.business | ||
Import-Package: org.apache.log4j |
Oops, something went wrong.