Skip to content

Commit

Permalink
Changed convertReturnIFileToString() to compare the resulting string to
Browse files Browse the repository at this point in the history
the actual location of the file resource.
  • Loading branch information
goglepox committed May 10, 2012
1 parent 3358fce commit 9ecf07a
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -2,13 +2,11 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import net.bioclipse.managers.business.JavaScriptManagerMethodDispatcher;

import org.junit.Ignore;
import org.junit.Test;

import net.bioclipse.managers.business.JavaScriptManagerMethodDispatcher;
import net.bioclipse.managers.tests.AbstractManagerMethodDispatcherTest.MyInvocation;

/**
* @author jonalv
*
Expand All @@ -24,7 +22,7 @@ public JavaScriptManagerMethodTest() {
public void convertReturnIFileToString() throws Throwable {
assertTrue( file.exists() );

assertEquals( PATH + FILENAME,
assertEquals( file.getLocation().toOSString(),
dispatcher.invoke(
new MyInvocation(
ITestManager.class.getMethod( "returnsAFile",
Expand Down

0 comments on commit 9ecf07a

Please sign in to comment.