Created
April 29, 2009 15:48
-
-
Save jonalv/103857 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package net.bioclipse.managers.tests; | |
import org.eclipse.core.resources.IFile; | |
import org.eclipse.core.runtime.IProgressMonitor; | |
import net.bioclipse.core.domain.BioObject; | |
import net.bioclipse.core.domain.IBioObject; | |
import net.bioclipse.jobs.BioclipseJob; | |
import net.bioclipse.jobs.IPartialReturner; | |
import net.bioclipse.managers.business.IBioclipseManager; | |
import static org.junit.Assert.*; | |
/** | |
* @author jonalv | |
*/ | |
public class TestManager implements IBioclipseManager { | |
public String getNamespace() { | |
return "test"; | |
} | |
public void getBioObjects( IFile file, | |
IPartialReturner returner, | |
IProgressMonitor monitor ) { | |
assertNotNull( file ); | |
assertNotNull( monitor ); | |
returner.partialReturn( new BioObject(){} ); | |
returner.partialReturn( new BioObject(){} ); | |
} | |
public String getGreeting(String name) { | |
return "OH HAI " + name; | |
} | |
public void runAsJob(IFile file, IProgressMonitor monitor) { | |
monitor.beginTask( "bla", 2 ); | |
monitor.worked( 1 ); | |
monitor.worked( 1 ); | |
monitor.done(); | |
} | |
public void dontRunAsJob(IFile file) { | |
} | |
public String getPath(IFile file) { | |
return file.getFullPath().toPortableString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment