Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated tests for changed qsar model API; value stored as String.

  • Loading branch information...
commit ec5907e15cc9e35514950a0dbbac81586c614ec6 1 parent 23241bc
@olas authored
View
6 plugins/net.bioclipse.qsar.test/src/net/bioclipse/qsar/test/TestWrite.java
@@ -297,7 +297,7 @@ public static void main(String[] args) {
//=======================
ResponseType response1=QsarFactory.eINSTANCE.createResponseType();
response1.setStructureID( res1.getId());
- response1.setValue((float)11.45);
+ response1.setValue("11.45");
response1.setUnit( unit1.getId() );
//Add to responselist
cmd=AddCommand.create(editingDomain, reslist, QsarPackage.Literals.RESPONSES_LIST_TYPE__RESPONSE, response1);
@@ -305,7 +305,7 @@ public static void main(String[] args) {
ResponseType response2=QsarFactory.eINSTANCE.createResponseType();
response2.setStructureID( res2.getId());
- response2.setValue((float)15.45);
+ response2.setValue("15.45");
response2.setUnit( unit1.getId() );
//Add to responselist
cmd=AddCommand.create(editingDomain, reslist, QsarPackage.Literals.RESPONSES_LIST_TYPE__RESPONSE, response2);
@@ -313,7 +313,7 @@ public static void main(String[] args) {
ResponseType response3=QsarFactory.eINSTANCE.createResponseType();
response3.setStructureID( res3.getId());
- response3.setArrayValues("12.56,23.45,34.56");
+ response3.setValue( "12.56,23.45,34.56");
response3.setUnit( unit1.getId() );
//Add to responselist
cmd=AddCommand.create(editingDomain, reslist, QsarPackage.Literals.RESPONSES_LIST_TYPE__RESPONSE, response3);
Please sign in to comment.
Something went wrong with that request. Please try again.