| 1 | package com.jsql.model.injection.method; | |
| 2 | ||
| 3 | import com.jsql.model.InjectionModel; | |
| 4 | ||
| 5 | import java.util.AbstractMap.SimpleEntry; | |
| 6 | import java.util.Arrays; | |
| 7 | import java.util.List; | |
| 8 | ||
| 9 | public class MediatorMethod { | |
| 10 | ||
| 11 | private final AbstractMethodInjection query; | |
| 12 | private final AbstractMethodInjection request; | |
| 13 | private final AbstractMethodInjection header; | |
| 14 | | |
| 15 | private final List<AbstractMethodInjection> methods; | |
| 16 | | |
| 17 | public MediatorMethod(InjectionModel injectionModel) { | |
| 18 | | |
| 19 | this.query = new AbstractMethodInjection(injectionModel) { | |
| 20 | @Override | |
| 21 | public boolean isCheckingAllParam() { | |
| 22 |
2
1. isCheckingAllParam : replaced boolean return with false for com/jsql/model/injection/method/MediatorMethod$1::isCheckingAllParam → NO_COVERAGE 2. isCheckingAllParam : replaced boolean return with true for com/jsql/model/injection/method/MediatorMethod$1::isCheckingAllParam → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getPreferencesUtil().isCheckingAllURLParam(); |
| 23 | } | |
| 24 | @Override | |
| 25 | public String getParamsAsString() { | |
| 26 |
1
1. getParamsAsString : replaced return value with "" for com/jsql/model/injection/method/MediatorMethod$1::getParamsAsString → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getParameterUtil().getQueryStringFromEntries(); |
| 27 | } | |
| 28 | @Override | |
| 29 | public List<SimpleEntry<String, String>> getParams() { | |
| 30 |
1
1. getParams : replaced return value with Collections.emptyList for com/jsql/model/injection/method/MediatorMethod$1::getParams → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getParameterUtil().getListQueryString(); |
| 31 | } | |
| 32 | @Override | |
| 33 | public String name() { | |
| 34 |
1
1. name : replaced return value with "" for com/jsql/model/injection/method/MediatorMethod$1::name → NO_COVERAGE |
return "Query"; |
| 35 | } | |
| 36 | }; | |
| 37 | ||
| 38 | this.request = new AbstractMethodInjection(injectionModel) { | |
| 39 | @Override | |
| 40 | public boolean isCheckingAllParam() { | |
| 41 |
2
1. isCheckingAllParam : replaced boolean return with true for com/jsql/model/injection/method/MediatorMethod$2::isCheckingAllParam → NO_COVERAGE 2. isCheckingAllParam : replaced boolean return with false for com/jsql/model/injection/method/MediatorMethod$2::isCheckingAllParam → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getPreferencesUtil().isCheckingAllRequestParam(); |
| 42 | } | |
| 43 | @Override | |
| 44 | public String getParamsAsString() { | |
| 45 |
1
1. getParamsAsString : replaced return value with "" for com/jsql/model/injection/method/MediatorMethod$2::getParamsAsString → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getParameterUtil().getRequestFromEntries(); |
| 46 | } | |
| 47 | @Override | |
| 48 | public List<SimpleEntry<String, String>> getParams() { | |
| 49 |
1
1. getParams : replaced return value with Collections.emptyList for com/jsql/model/injection/method/MediatorMethod$2::getParams → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getParameterUtil().getListRequest(); |
| 50 | } | |
| 51 | @Override | |
| 52 | public String name() { | |
| 53 |
1
1. name : replaced return value with "" for com/jsql/model/injection/method/MediatorMethod$2::name → NO_COVERAGE |
return "Request"; |
| 54 | } | |
| 55 | }; | |
| 56 | | |
| 57 | this.header = new AbstractMethodInjection(injectionModel) { | |
| 58 | @Override | |
| 59 | public boolean isCheckingAllParam() { | |
| 60 |
2
1. isCheckingAllParam : replaced boolean return with false for com/jsql/model/injection/method/MediatorMethod$3::isCheckingAllParam → NO_COVERAGE 2. isCheckingAllParam : replaced boolean return with true for com/jsql/model/injection/method/MediatorMethod$3::isCheckingAllParam → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getPreferencesUtil().isCheckingAllHeaderParam(); |
| 61 | } | |
| 62 | @Override | |
| 63 | public String getParamsAsString() { | |
| 64 |
1
1. getParamsAsString : replaced return value with "" for com/jsql/model/injection/method/MediatorMethod$3::getParamsAsString → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getParameterUtil().getHeaderFromEntries(); |
| 65 | } | |
| 66 | @Override | |
| 67 | public List<SimpleEntry<String, String>> getParams() { | |
| 68 |
1
1. getParams : replaced return value with Collections.emptyList for com/jsql/model/injection/method/MediatorMethod$3::getParams → NO_COVERAGE |
return this.injectionModel.getMediatorUtils().getParameterUtil().getListHeader(); |
| 69 | } | |
| 70 | @Override | |
| 71 | public String name() { | |
| 72 |
1
1. name : replaced return value with "" for com/jsql/model/injection/method/MediatorMethod$3::name → NO_COVERAGE |
return "Header"; |
| 73 | } | |
| 74 | }; | |
| 75 | | |
| 76 | this.methods = Arrays.asList(this.query, this.request, this.header); | |
| 77 | } | |
| 78 | ||
| 79 | public AbstractMethodInjection getQuery() { | |
| 80 |
1
1. getQuery : replaced return value with null for com/jsql/model/injection/method/MediatorMethod::getQuery → SURVIVED |
return this.query; |
| 81 | } | |
| 82 | ||
| 83 | public AbstractMethodInjection getRequest() { | |
| 84 |
1
1. getRequest : replaced return value with null for com/jsql/model/injection/method/MediatorMethod::getRequest → SURVIVED |
return this.request; |
| 85 | } | |
| 86 | ||
| 87 | public AbstractMethodInjection getHeader() { | |
| 88 |
1
1. getHeader : replaced return value with null for com/jsql/model/injection/method/MediatorMethod::getHeader → SURVIVED |
return this.header; |
| 89 | } | |
| 90 | ||
| 91 | public List<AbstractMethodInjection> getMethods() { | |
| 92 |
1
1. getMethods : replaced return value with Collections.emptyList for com/jsql/model/injection/method/MediatorMethod::getMethods → NO_COVERAGE |
return this.methods; |
| 93 | } | |
| 94 | } | |
Mutations | ||
| 22 |
1.1 2.2 |
|
| 26 |
1.1 |
|
| 30 |
1.1 |
|
| 34 |
1.1 |
|
| 41 |
1.1 2.2 |
|
| 45 |
1.1 |
|
| 49 |
1.1 |
|
| 53 |
1.1 |
|
| 60 |
1.1 2.2 |
|
| 64 |
1.1 |
|
| 68 |
1.1 |
|
| 72 |
1.1 |
|
| 80 |
1.1 |
|
| 84 |
1.1 |
|
| 88 |
1.1 |
|
| 92 |
1.1 |