Skip to content
Snippets Groups Projects
Commit 92d0f734 authored by LEMERCIER Denis's avatar LEMERCIER Denis
Browse files

Merge branch 'cherry-pick-2ada84c8' into 'main'

[SOY] bug corrected

See merge request !24
parents 7b9f69f5 c36e22f7
No related branches found
No related tags found
1 merge request!24[SOY] bug corrected
Pipeline #314618 passed
......@@ -72,7 +72,9 @@ public class DemandeCalculImpactOperationNonIT {
return facteurCaracterisations.stream()
.filter(Objects::nonNull)
.filter(fc -> Constants.ELECTRICITY_MIX_CATEGORY.equals(fc.getCategorie()) &&
localisation.equals(fc.getLocalisation()))
localisation.equals(fc.getLocalisation()) &&
critere.getNomCritere().equals(fc.getCritere())
)
.findFirst();
}
......
......@@ -247,6 +247,14 @@ class CalculImpactOperationNonITServiceTest {
"valeur": 10,
"source": "SSG"
},
{
"nom": "Electricty Mix FR",
"etape": "FABRICATION",
"critere": "Acidification",
"categorie" : "electricity-mix",
"localisation": "France",
"valeur" : 0.02
},
{
"nom": "Electricty Mix FR",
"etape": "FABRICATION",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment