blob: 58282233c1e33b4b3090414b2610e746a38ad84b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require 'test/unit'
$LOAD_PATH << File.join(File.dirname(__FILE__),'..','lib')
require File.join File.dirname(__FILE__),'..','lib','opentox-client.rb'
#require "./validate-owl.rb"
#
TASK_SERVICE_URI = "http://ot-dev.in-silico.ch/task"
class TaskTest < Test::Unit::TestCase
def setup
end
def teardown
end
def test_create_and_complete
task = OpenTox::Task.create TASK_SERVICE_URI
assert_equal "Running", task.hasStatus
task.completed "http://test.org"
assert_equal "Completed", task.hasStatus
assert_equal "http://test.org", task.resultURI
end
def test_rdf
task = OpenTox::Task.all(TASK_SERVICE_URI).last
assert_equal OpenTox::Task, task.class
#validate_owl(task.uri)
#puts task.uri
end
=begin
=end
end
|