All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.web.model.mapper.ScriptInfoMapperImpl Maven / Gradle / Ivy

The newest version!
package com.arextest.web.model.mapper;

import com.arextest.web.model.contract.contracts.config.replay.ComparisonScriptConfiguration;
import com.arextest.web.model.contract.contracts.config.replay.ComparisonSummaryConfiguration;

/*
@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-12-23T06:09:21+0000",
    comments = "version: 1.5.5.Final, compiler: javac, environment: Java 21.0.5 (Eclipse Adoptium)"
)
*/
public class ScriptInfoMapperImpl implements ScriptInfoMapper {

    @Override
    public ComparisonSummaryConfiguration.ReplayScriptMethod toScriptMethodInfo(ComparisonScriptConfiguration.ScriptMethod scriptMethod) {
        if ( scriptMethod == null ) {
            return null;
        }

        ComparisonSummaryConfiguration.ReplayScriptMethod replayScriptMethod = new ComparisonSummaryConfiguration.ReplayScriptMethod();

        replayScriptMethod.setFunctionName( functionIdToFunctionName( scriptMethod.getFunctionId() ) );
        replayScriptMethod.setFunctionArgs( scriptMethod.getFunctionArgs() );

        return replayScriptMethod;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy