File tree Expand file tree Collapse file tree
src/test/java/io/github/isagroup Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 java-version : ' 17'
1717 distribution : ' temurin'
1818
19+ - name : Print test file
20+ run : cat src/test/java/io/github/isagroup/PricingEvaluatorUtilTests.java
21+
1922 - name : Build with Maven
2023 run : mvn test
2124
Original file line number Diff line number Diff line change 11package io .github .isagroup ;
22
33import java .util .HashMap ;
4+ import java .util .List ;
45import java .util .Map ;
56
67import org .junit .jupiter .api .BeforeEach ;
@@ -20,6 +21,7 @@ public class PricingEvaluatorUtilTests {
2021 private static final String JWT_EXPRESSION_TEST = "userContext['pets']*4 < planContext['usageLimits']['pets']" ;
2122
2223 private static final String USER_PLAN = "ADVANCED" ;
24+ private static final List <String > USER_ADDONS = List .of ("addOnFeature" , "extraPets" );
2325 private static final String YAML_CONFIG_PATH = "pricing/petclinic.yml" ;
2426
2527 private PricingContext pricingContext ;
@@ -41,6 +43,7 @@ public void setUp() {
4143 pricingContext .setJwtSecret (JWT_SECRET_TEST );
4244 pricingContext .setUserContext (userContext );
4345 pricingContext .setUserPlan (USER_PLAN );
46+ pricingContext .setUserAddOns (USER_ADDONS );
4447 pricingContext .setConfigFilePath (YAML_CONFIG_PATH );
4548
4649 this .pricingContext = pricingContext ;
You can’t perform that action at this time.
0 commit comments