Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted the test in main() into a separate test class
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
plugins/net.bioclipse.opentox.test/src/net/bioclipse/opentox/test/api/TaskTest.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,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); | ||
} | ||
|
||
} |
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
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