use of rp.com.google.common.base.Function in project agent-java-soapui by reportportal.
the class TestBasedSoapUIServiceImpl method asFunctionFile.
public static Function<String, SaveLogRQ> asFunctionFile(final String message, final SaveLogRQ.File file, final String level, final Date time) {
return new Function<String, SaveLogRQ>() {
@Override
public SaveLogRQ apply(String id) {
SaveLogRQ rq = new SaveLogRQ();
rq.setLevel(level);
rq.setLogTime(time);
rq.setTestItemId(id);
rq.setMessage(message);
rq.setFile(file);
return rq;
}
};
}
use of rp.com.google.common.base.Function in project agent-java-soapui by reportportal.
the class TestBasedSoapUIServiceImpl method asFunction.
public static Function<String, SaveLogRQ> asFunction(final String message, final String level, final Date time) {
return new Function<String, SaveLogRQ>() {
@Override
public SaveLogRQ apply(String id) {
SaveLogRQ rq = new SaveLogRQ();
rq.setLevel(level);
rq.setLogTime(time);
rq.setTestItemId(id);
rq.setMessage(message);
return rq;
}
};
}