Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 2745 → Rev 2746

/branches/AMB/AdapterFramework/javasrc/tool/org/etsi/ttcn/tool/elvior/adapter/PluginAdapter.java
73,7 → 73,7
// Load TA settings
try {
_properties.load(TestAdapterMain.class.getResourceAsStream("./ta.properties"));
_properties.load(TestAdapterMain.class.getResourceAsStream("./etc/ta.properties"));
} catch (IOException e) {
e.printStackTrace();
}
136,7 → 136,7
for(int i = 0; i < tsiPorts.size(); i++) {
TriTciChannel.getInstance().enableXTriForPort(tsiPorts.get(i), false);
}
return _itsTestAdapter.triExecuteTestcase(testCaseId, tsiPorts);
return _itsTestAdapter.triExecuteTestCase(testCaseId, tsiPorts);
}
 
public TriStatus triMap(TriPortId compPortId, TriPortId tsiPortId) {
/branches/AMB/AdapterFramework/javasrc/tool/org/etsi/ttcn/tool/elvior/adapter/TeRequiredImpl.java
52,60 → 52,8
* It does not work with TestcatT3 because of TCI is only available during test case execution (from triExecuteTestCase method call till triEndTestCase method call)
*/
@Override
public Value getTaParameter(String param) {
CharstringValue string = new CharstringValue() {
private String _value = "";
@Override
public boolean notPresent() {
return _value.isEmpty();
}
@Override
public String getValueEncodingVariant() {
return null;
}
@Override
public String getValueEncoding() {
return null;
}
@Override
public Type getType() {
return null;
}
@Override
public void setString(String value) {
_value = value;
}
@Override
public void setLength(int length) {
}
@Override
public void setChar(int index, char arg1) {
}
@Override
public String getString() {
return _value;
}
@Override
public int getLength() {
return _value.length();
}
@Override
public char getChar(int index) {
return _value.charAt(index);
}
};
string.setString(_properties.getProperty(param, ""));
return string;
public String getTaParameter(String param) {
return _properties.getProperty(param, "");
}
 
@Override
/branches/AMB/AdapterFramework/javasrc/tool/org/etsi/ttcn/tool/elvior/adapter/TestAdapter.java
1,5 → 1,32
package org.etsi.ttcn.tool.elvior.adapter;
 
import org.etsi.ttcn.tri.TriAddress;
import org.etsi.ttcn.tri.TriComponentId;
import org.etsi.ttcn.tri.TriMessage;
import org.etsi.ttcn.tri.TriPortId;
import org.etsi.ttcn.tri.TriPortIdList;
import org.etsi.ttcn.tri.TriStatus;
import org.etsi.ttcn.tri.TriTestCaseId;
 
public class TestAdapter extends org.etsi.ttcn.adapter.core.TestAdapter {
 
@Override
public TriStatus triExecuteTestCase(final TriTestCaseId tcId, final TriPortIdList portList) {
return required.getTriStatus(TriStatus.TRI_OK);
}
@Override
public TriStatus triGetStreamValue(TriComponentId triComponentId, TriPortId triPortId, TriAddress triAddress, TriMessage triMessage) {
return required.getTriStatus(TriStatus.TRI_OK);
}
@Override
public TriStatus triSetStreamValue(TriComponentId triComponentId, TriPortId triPortId, TriAddress triAddress, TriMessage triMessage) {
return required.getTriStatus(TriStatus.TRI_OK);
}
@Override
public TriStatus triStaticMap(TriPortId triPortId1, TriPortId triPortId2) {
return required.getTriStatus(TriStatus.TRI_OK);
}
}
/branches/AMB/AdapterFramework/javasrc/tool/org/etsi/ttcn/tool/elvior/codec/Its_CodecProvider.java
30,7 → 30,7
_cdReq = null;
_cf = null;
try {
_properties.load(CodecMain.class.getResourceAsStream("./codec.properties"));
_properties.load(CodecMain.class.getResourceAsStream("./etc/codec.properties"));
} catch (IOException e) {
e.printStackTrace();
}
46,7 → 46,7
initializeCodecs();
}
private void initializeCodecs() {
private void initializeCodecs() { // FIXME: ASN.1Codecs => ExternalCodecs + remove LibIts_asn1 stuff
TciCDWrapperFactory.getInstance().setImpl(new TciCDWrapper());
_cdReq = TciCDWrapperFactory.getTciCDInstance();