Removed hardcoded channel

This commit is contained in:
ebner
2011-10-25 09:19:56 +02:00
parent e5279024ca
commit 4b61d1bcac

View File

@@ -33,6 +33,7 @@ import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import ch.psi.fda.TestChannels;
import ch.psi.fda.core.manipulator.JythonManipulation;
import ch.psi.fda.core.manipulator.Manipulation;
import ch.psi.fda.core.manipulator.Manipulator;
@@ -402,10 +403,9 @@ public class ManipulatorTest {
@Test
public void testRunMultipleParameterAndChannel() throws InterruptedException, CAException {
String testChannel = "MTEST-PC-X10:AO";
Double setValue = 12.22;
ChannelBean<Double> cbean = ChannelBeanFactory.getFactory().createChannelBean(Double.class, testChannel, false);
ChannelBean<Double> cbean = ChannelBeanFactory.getFactory().createChannelBean(Double.class, TestChannels.ANALOG_OUT, false);
DataMessageMetadata dmm = new DataMessageMetadata();
dmm.getComponents().add(new ComponentMetadata("myid"));
@@ -423,7 +423,7 @@ public class ManipulatorTest {
List<JythonParameterMapping> mapping = new ArrayList<JythonParameterMapping>();
mapping.add(new JythonParameterMappingID("o", "myid"));
mapping.add(new JythonParameterMappingID("c", "myid2"));
mapping.add(new JythonParameterMappingChannel("d", testChannel, Double.class));
mapping.add(new JythonParameterMappingChannel("d", TestChannels.ANALOG_OUT, Double.class));
JythonManipulation manipulation = new JythonManipulation(id, script, mapping);
List<Manipulation> manipulations = new ArrayList<Manipulation>();