Navigation Menu

Skip to content

Commit

Permalink
Extracted the test in main() into a separate test class
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Aug 11, 2012
1 parent a9393d5 commit 8a7e7c2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
@@ -0,0 +1,28 @@
/* Copyright (c) 2012 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: http://www.bioclipse.net/
*/
package net.bioclipse.opentox.test.api;

import net.bioclipse.opentox.api.Task;
import net.bioclipse.opentox.api.TaskState;

import org.junit.Assert;
import org.junit.Test;

public class TaskTest {

@Test
public void testGetState() throws Exception {
String task = "http://apps.ideaconsult.net:8080/ambit2/task/1";
// getListOfAvailableDatasets(service);
TaskState state = Task.getState(task);
Assert.assertNotNull(state);
}

}
1 change: 1 addition & 0 deletions plugins/net.bioclipse.opentox/META-INF/MANIFEST.MF
Expand Up @@ -5,6 +5,7 @@ Bundle-SymbolicName: net.bioclipse.opentox; singleton:=true
Bundle-Version: 2.5.0.qualifier
Bundle-Activator: net.bioclipse.opentox.Activator
Export-Package: net.bioclipse.opentox,
net.bioclipse.opentox.api,
net.bioclipse.opentox.business,
net.bioclipse.opentox.prefs
Require-Bundle: org.eclipse.ui,
Expand Down
Expand Up @@ -212,10 +212,4 @@ private static String getResultSetURI(IRDFStore store) {
);
}

public static void main(String[] args) throws Exception {
String task = "http://apps.ideaconsult.net:8080/ambit2/task/1";
// getListOfAvailableDatasets(service);
TaskState state = getState(task);
}

}

0 comments on commit 8a7e7c2

Please sign in to comment.