
com.fimet.stress.creator.DefaultVariator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fimet-exe Show documentation
Show all versions of fimet-exe Show documentation
Execution implementarion of usecases and stress test for ISO8583
The newest version!
package com.fimet.stress.creator;
import com.fimet.parser.IMessage;
import com.fimet.parser.Message;
public class DefaultVariator implements IVariator {
public static final IVariator INSTANCE = new DefaultVariator();
@Override
public IMessage variate(IMessage message, FieldVariation[] variation) {
for (FieldVariation v : variation) {
if (Message.MTI.equals(v.idField)) {
message.setProperty(Message.MTI, v.value);
} else if (Message.HEADER.equals(v.idField)) {
message.setProperty(Message.HEADER, v.value);
} else {
message.setValue(v.idField, v.value);
}
}
return message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy