Search in sources :

Example 1 with Function

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;
        }
    };
}
Also used : Function(rp.com.google.common.base.Function) SaveLogRQ(com.epam.ta.reportportal.ws.model.log.SaveLogRQ)

Example 2 with Function

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;
        }
    };
}
Also used : Function(rp.com.google.common.base.Function) SaveLogRQ(com.epam.ta.reportportal.ws.model.log.SaveLogRQ)

Aggregations

SaveLogRQ (com.epam.ta.reportportal.ws.model.log.SaveLogRQ)2 Function (rp.com.google.common.base.Function)2