diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-02-08 13:14:11 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-02-08 13:14:11 +0100 |
commit | 354aaa649e9eeed5d81793e09d9714b45063c147 (patch) | |
tree | 230fd99569bcec503b61e6336263ca1edec397d1 /test/task.rb | |
parent | ac54997dccc571471a0cdf62939e2fcbc42e06e2 (diff) |
toxbank-investigation compatible version
Diffstat (limited to 'test/task.rb')
-rw-r--r-- | test/task.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/task.rb b/test/task.rb new file mode 100644 index 0000000..1f0c9c2 --- /dev/null +++ b/test/task.rb @@ -0,0 +1,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.status + task.completed "http://test.org" + assert_equal "Completed", task.status + assert_equal "http://test.org", task.result_uri + 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 |